summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeiyong Lin <lpy@google.com>2019-04-17 20:13:42 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2019-04-17 20:13:42 +0000
commit252fd9dfe83b621ae0cdcb279af0f6624aea05d6 (patch)
treea29a02244c001213b37847717ae6fcaa55b6d218
parent71832e785ca8a596907f627635331553c9c2d721 (diff)
parent59dedc31e89a320e52879e06d53be60645e4aa06 (diff)
downloadlibhardware-252fd9dfe83b621ae0cdcb279af0f6624aea05d6.tar.gz
Merge "Deprecate getDisplayBrightnessSupport." into qt-dev
-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