diff options
author | Sean Paul <seanpaul@chromium.org> | 2015-09-19 09:14:34 -0400 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2015-10-01 14:11:24 -0400 |
commit | 573554106db499d323bea12ff00363b1816f8c8a (patch) | |
tree | d9f5fe8cace780a4c44fb964474ca9f9560663b9 /drmdisplaycompositor.h | |
parent | 7acc59be7f12ad45b9abfa56c2d21726edf6224e (diff) |
drm_hwcomposer: Process modesets via compositor
This patch queues modeset in the compositor for application on
the next frame. This allows us to perform the modeset atomically
with the first frame that comes in after the mode is changed.
Change-Id: I6bb9edd17bbdd6dbee5c0474f2e43599781cc7a7
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Diffstat (limited to 'drmdisplaycompositor.h')
-rw-r--r-- | drmdisplaycompositor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drmdisplaycompositor.h b/drmdisplaycompositor.h index 4aadc68..c9973c6 100644 --- a/drmdisplaycompositor.h +++ b/drmdisplaycompositor.h @@ -70,6 +70,9 @@ class DrmDisplayCompositor { bool initialized_; bool active_; + DrmMode next_mode_; + bool needs_modeset_; + int framebuffer_index_; DrmFramebuffer framebuffers_[DRM_DISPLAY_BUFFERS]; std::unique_ptr<GLWorkerCompositor> pre_compositor_; |