drm_hwcomposer: Stop using HWC2 hooks for source crop
Add source_crop to LayerProperties and set it together with other layer
properties.
Change-Id: I2153037b6df3ad2ecf1008d8bafe09d62ef59116
Signed-off-by: Drew Davenport <ddavenport@google.com>
diff --git a/hwc2_device/HwcLayer.h b/hwc2_device/HwcLayer.h
index 6b234f7..31bafed 100644
--- a/hwc2_device/HwcLayer.h
+++ b/hwc2_device/HwcLayer.h
@@ -36,6 +36,7 @@
std::optional<HWC2::Composition> composition_type;
std::optional<hwc_rect_t> display_frame;
std::optional<float> alpha;
+ std::optional<hwc_frect_t> source_crop;
};
explicit HwcLayer(HwcDisplay *parent_display) : parent_(parent_display){};