Add DISPLAY_DECORATION to HWC3 HAL
Bug: 193170859
Test: TODO
Change-Id: I90543850d57323be485a0fa8562f4e965aed28ab
diff --git a/graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/Composition.aidl b/graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/Composition.aidl
index e327e87..d2d8f04 100644
--- a/graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/Composition.aidl
+++ b/graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/Composition.aidl
@@ -40,4 +40,5 @@
SOLID_COLOR = 3,
CURSOR = 4,
SIDEBAND = 5,
+ DISPLAY_DECORATION = 6,
}
diff --git a/graphics/composer/aidl/android/hardware/graphics/composer3/Composition.aidl b/graphics/composer/aidl/android/hardware/graphics/composer3/Composition.aidl
index ea22af2..2f1c62c 100644
--- a/graphics/composer/aidl/android/hardware/graphics/composer3/Composition.aidl
+++ b/graphics/composer/aidl/android/hardware/graphics/composer3/Composition.aidl
@@ -73,4 +73,17 @@
* will display correctly in these cases.
*/
SIDEBAND = 5,
+ /**
+ * A display decoration layer contains a buffer which is an 8 bit
+ * alpha mask. Pixels in the mask with an alpha of 0 (transparent) will
+ * show the content underneath, and pixels with an alpha of 255 will be
+ * be rendered in black. An alpha in between will show the content
+ * blended with black. This is useful, for example, to provide
+ * anti-aliasing on the cutout region/rounded corners on the top and
+ * bottom of a display.
+ *
+ * Upon validateDisplay, the device may request a change from this type
+ * to CLIENT.
+ */
+ DISPLAY_DECORATION = 6,
}