summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Stoza <stoza@google.com>2015-08-31 12:08:57 -0700
committerDan Stoza <stoza@google.com>2015-08-31 13:36:06 -0700
commit95f017990ba70ba3ed22eac4f61c4f02cfc79045 (patch)
tree22e052e52e9951e8e9124843720e38cd6cc48954
parent569737c6b0301a1411bd02cc9eb59e9c64c8a7eb (diff)
downloadhardware_libhardware-95f017990ba70ba3ed22eac4f61c4f02cfc79045.zip
hardware_libhardware-95f017990ba70ba3ed22eac4f61c4f02cfc79045.tar.gz
hardware_libhardware-95f017990ba70ba3ed22eac4f61c4f02cfc79045.tar.bz2
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
-rw-r--r--include/hardware/hwcomposer_defs.h4
1 files changed, 4 insertions, 0 deletions
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() */