drm_hwcomposer: Cursor plane binding
This change adds cursor plane binding into DrmDisplayPipeline.
The signature of DrmDisplayPipeline::GetUsablePlanes is updated
to return a pair where the second element points to the bound
cursor plane (if it exists), and the first element points to
all other planes.
Change-Id: Ic6a623b10383b7dd0a0c2e79fc2d87329ebc6214
Signed-off-by: Andrew Wolfers <aswolfers@google.com>
diff --git a/drm/DrmDisplayPipeline.h b/drm/DrmDisplayPipeline.h
index cf64a36..0d05288 100644
--- a/drm/DrmDisplayPipeline.h
+++ b/drm/DrmDisplayPipeline.h
@@ -67,12 +67,15 @@
B *const bindable_;
};
+using UsablePlanes = std::pair<
+ std::vector<std::shared_ptr<BindingOwner<DrmPlane>>>,
+ std::shared_ptr<BindingOwner<DrmPlane>>>;
+
struct DrmDisplayPipeline {
static auto CreatePipeline(DrmConnector &connector)
-> std::unique_ptr<DrmDisplayPipeline>;
- auto GetUsablePlanes()
- -> std::vector<std::shared_ptr<BindingOwner<DrmPlane>>>;
+ auto GetUsablePlanes() -> UsablePlanes;
~DrmDisplayPipeline();