drm_hwcomposer: Stop using HWC2 hooks for CompositionType

Add a member to LayerProperties for composition_type, and set
composition type along with other layer properties.

If the client requests an unsupported CompositionType, it's expected
that the HWC will detect this and return an error, and not proceed with
further validation of LayerCommand parameters.

Change-Id: Icf6d4becb53267f470226ed63b311ac7704d9e12
Signed-off-by: Drew Davenport <ddavenport@google.com>
diff --git a/hwc2_device/HwcLayer.h b/hwc2_device/HwcLayer.h
index eb02798..ad53097 100644
--- a/hwc2_device/HwcLayer.h
+++ b/hwc2_device/HwcLayer.h
@@ -33,6 +33,7 @@
     std::optional<BufferBlendMode> blend_mode;
     std::optional<BufferColorSpace> color_space;
     std::optional<BufferSampleRange> sample_range;
+    std::optional<HWC2::Composition> composition_type;
   };
 
   explicit HwcLayer(HwcDisplay *parent_display) : parent_(parent_display){};