summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeiyong Lin <lpy@google.com>2019-04-11 13:25:24 -0700
committerPeiyong Lin <lpy@google.com>2019-04-15 13:59:18 -0700
commit59dedc31e89a320e52879e06d53be60645e4aa06 (patch)
treeda0cffe209473a0fe32c74be1b3063b4ad232ff7
parentf9539ce315082b3c756213153eb8b6ad991e5977 (diff)
downloadlibhardware-59dedc31e89a320e52879e06d53be60645e4aa06.tar.gz
Deprecate getDisplayBrightnessSupport.
Brightness is already a per display capability, we don't need this API. BUG: 130313275 Test: build Change-Id: If1ddf2a6224c9aa86f250178fc5cae3b01334b57
-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