summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-04-18 14:37:58 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-04-18 14:37:58 +0000
commitb4f8f7d1c01019a80bf267cc034b0f33a502bf4e (patch)
treea29a02244c001213b37847717ae6fcaa55b6d218
parentc04e242bdcaec6c0f8bdef657bbc296bb839374b (diff)
parent61205cae489f047258eac40719af1b04af1b1a1e (diff)
downloadlibhardware-b4f8f7d1c01019a80bf267cc034b0f33a502bf4e.tar.gz
Snap for 5481301 from 61205cae489f047258eac40719af1b04af1b1a1e to qt-aml-release
Change-Id: I09c90261a92bc991eb6655b22bcd34fd5fb7f72e
-rw-r--r--include/hardware/hwcomposer2.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/hardware/hwcomposer2.h b/include/hardware/hwcomposer2.h
index ab0922eb..c70aef64 100644
--- a/include/hardware/hwcomposer2.h
+++ b/include/hardware/hwcomposer2.h
@@ -2687,7 +2687,11 @@ typedef int32_t /*hwc2_error_t*/ (*HWC2_PFN_GET_DISPLAY_CAPABILITIES)(
hwc2_device_t* device, hwc2_display_t display, uint32_t* outNumCapabilities,
uint32_t* outCapabilities);
-/* getDisplayBrightnessSupport(displayToken)
+/* Use getDisplayCapabilities instead. If brightness is supported, must return
+ * DisplayCapability::BRIGHTNESS as one of the display capabilities via getDisplayCapabilities.
+ * Only use getDisplayCapabilities as the source of truth to query brightness support.
+ *
+ * getDisplayBrightnessSupport(displayToken)
* Descriptor: HWC2_FUNCTION_GET_DISPLAY_BRIGHTNESS_SUPPORT
* Required for HWC2 devices for composer 2.3
* Optional for HWC2 devices for composer 2.1 and 2.2