summaryrefslogtreecommitdiff
path: root/Android.mk
diff options
context:
space:
mode:
authorSean Paul <seanpaul@chromium.org>2015-06-24 14:38:49 -0700
committerSean Paul <seanpaul@chromium.org>2015-07-13 11:57:56 -0400
commit98e73c89a683a92f44c99fb8dc85e51bdda243ba (patch)
tree80a9f44b9720622cb9fab3ec6f133a5bf5fbfe3b /Android.mk
parentd20b3190c28329914ad0c21c508cb3c9bb83ee02 (diff)
drm_hwcomposer: Split the drm compositor into per-display threads
This patch splits out the current single drm compositor with per-display compositors, each with their own thread. The per-display compositors are hidden behind a singleton drm compositor. This allows us to maintain a whole-world view of all displays involved in a frame. This becomes useful if we start switching up crtcs/encoders for the displays. This also allows us to issue one DrmComposition when the frame is being assembled. The single DrmComposition handles the plane allocation (since they might switch between displays), and contains per-display compositions which are used to store the layer->plane/crtc information for each frame. The display compositors use the per-display compositions to display the frame on their output. Each display compositor receives a shared pointer to the frame's DrmComposition on QueueComposition. As a result, both the composition, and the per-display compositions, live for as long as any one display is still using it. While this is sub-optimal (since a display might never update again), this is probably fine for now. Finally, splitting things up per-display will allow us to inject non-compositing jobs into the composite queue. An example would be turning the display off, or setting the mode. This ensures that all frames in the composite queue are displayed before the mode changes or the display is disabled. Signed-off-by: Sean Paul <seanpaul@chromium.org> Change-Id: I8a233ea64710b238f70acbcde1f6d771e297b069
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index e20615e..eadfe2b 100644
--- a/Android.mk
+++ b/Android.mk
@@ -44,6 +44,8 @@ LOCAL_SRC_FILES := \
drmcompositorworker.cpp \
drmconnector.cpp \
drmcrtc.cpp \
+ drmdisplaycomposition.cpp \
+ drmdisplaycompositor.cpp \
drmencoder.cpp \
drmmode.cpp \
drmplane.cpp \