diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2019-04-18 03:06:30 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2019-04-18 03:06:30 +0000 |
commit | 61205cae489f047258eac40719af1b04af1b1a1e (patch) | |
tree | a29a02244c001213b37847717ae6fcaa55b6d218 | |
parent | fdb72b9aab9d47446eebf9db3f0f36854549e715 (diff) | |
parent | 252fd9dfe83b621ae0cdcb279af0f6624aea05d6 (diff) | |
download | libhardware-61205cae489f047258eac40719af1b04af1b1a1e.tar.gz |
Snap for 5480912 from 252fd9dfe83b621ae0cdcb279af0f6624aea05d6 to qt-release
Change-Id: I174da8439157a8aba53ae74e96cec0d9a81b4d79
-rw-r--r-- | include/hardware/hwcomposer2.h | 6 |
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 |