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.cpp b/hwc2_device/HwcLayer.cpp
index 9f2888e..a993acf 100644
--- a/hwc2_device/HwcLayer.cpp
+++ b/hwc2_device/HwcLayer.cpp
@@ -37,6 +37,9 @@
   if (layer_properties.composition_type) {
     sf_type_ = layer_properties.composition_type.value();
   }
+  if (layer_properties.display_frame) {
+    layer_data_.pi.display_frame = layer_properties.display_frame.value();
+  }
 }
 
 // NOLINTNEXTLINE(readability-convert-member-functions-to-static)
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){};