summaryrefslogtreecommitdiff
path: root/drmdisplaycompositor.h
diff options
context:
space:
mode:
authorSean Paul <seanpaul@chromium.org>2015-09-19 09:14:34 -0400
committerSean Paul <seanpaul@chromium.org>2015-10-01 14:11:24 -0400
commit573554106db499d323bea12ff00363b1816f8c8a (patch)
treed9f5fe8cace780a4c44fb964474ca9f9560663b9 /drmdisplaycompositor.h
parent7acc59be7f12ad45b9abfa56c2d21726edf6224e (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.h3
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_;