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