drm_hwcomposer: Stop using HWC2 hooks for displayFrame
Add a display_frame member to LayerProperties, and set the display frame
along with other LayerCommand properties.
Change-Id: Ia3549fb9d1750f3d08896d60c7d962f1c3b085b5
Signed-off-by: Drew Davenport <ddavenport@google.com>
diff --git a/hwc2_device/HwcLayer.h b/hwc2_device/HwcLayer.h
index ad53097..953e589 100644
--- a/hwc2_device/HwcLayer.h
+++ b/hwc2_device/HwcLayer.h
@@ -34,6 +34,7 @@
std::optional<BufferColorSpace> color_space;
std::optional<BufferSampleRange> sample_range;
std::optional<HWC2::Composition> composition_type;
+ std::optional<hwc_rect_t> display_frame;
};
explicit HwcLayer(HwcDisplay *parent_display) : parent_(parent_display){};