From 437dee048f92842f2b849225250545153baaa51e Mon Sep 17 00:00:00 2001 From: Leon Scroggins III Date: Wed, 1 Dec 2021 10:30:13 -0500 Subject: [PATCH] Add DISPLAY_DECORATION to HWC3 HAL Bug: 193170859 Test: TODO Change-Id: I90543850d57323be485a0fa8562f4e965aed28ab --- .../hardware/graphics/composer3/Composition.aidl | 1 + .../hardware/graphics/composer3/Composition.aidl | 13 +++++++++++++ 2 files changed, 14 insertions(+) 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 e327e8722c..d2d8f0486a 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 @@ enum Composition { 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 ea22af2a68..2f1c62c537 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 @@ enum Composition { * 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, }