From 95f017990ba70ba3ed22eac4f61c4f02cfc79045 Mon Sep 17 00:00:00 2001 From: Dan Stoza Date: Mon, 31 Aug 2015 12:08:57 -0700 Subject: HWC: Add a color transform attribute per display Adds a color transform option to the queryable display attributes, which allows a different vendor-specific color transform (e.g., wide gamut, sRGB, etc.) per display configuration. This does not increase the HWC version, and is considered a part of HWC 1.5, though if getDisplayAttributes returns an error code as a result of being passed an unsupported attribute, the call will be retried without the new color transform option. Bug: 20853317 Change-Id: Iab1605bc073ed4caa780e55ddf396efeeff3aff1 --- include/hardware/hwcomposer_defs.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/hardware/hwcomposer_defs.h b/include/hardware/hwcomposer_defs.h index e650bd2..a19a26c 100644 --- a/include/hardware/hwcomposer_defs.h +++ b/include/hardware/hwcomposer_defs.h @@ -192,6 +192,10 @@ enum { */ HWC_DISPLAY_DPI_X = 4, HWC_DISPLAY_DPI_Y = 5, + + /* Indicates which of the vendor-defined color transforms is provided by + * this configuration. */ + HWC_DISPLAY_COLOR_TRANSFORM = 6, }; /* Allowed events for hwc_methods::eventControl() */ -- cgit v1.1 From 147d5404f5958133c291cc26adb5a781d7ac2ea8 Mon Sep 17 00:00:00 2001 From: Michael Wright Date: Wed, 16 Sep 2015 23:28:19 +0100 Subject: Define the data parameter for POWER_HINT_INTERACTION. Change-Id: I86857c1ea92082de109c612080e47c9c9835726b --- include/hardware/power.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/hardware/power.h b/include/hardware/power.h index af7799e..10612f3 100644 --- a/include/hardware/power.h +++ b/include/hardware/power.h @@ -116,7 +116,8 @@ typedef struct power_module { * User is interacting with the device, for example, touchscreen * events are incoming. CPU and GPU load may be expected soon, * and it may be appropriate to raise speeds of CPU, memory bus, - * etc. The data parameter is unused. + * etc. The data parameter is the estimated length of the interaction + * in milliseconds, or 0 if unknown. * * POWER_HINT_LOW_POWER * -- cgit v1.1