summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/SurfaceFlinger.cpp
diff options
context:
space:
mode:
authorDan Stoza <stoza@google.com>2015-08-31 12:06:48 -0700
committerDan Stoza <stoza@google.com>2015-08-31 13:41:24 -0700
commitf2699fc3a8c12b2bf95120c068801e050168bd96 (patch)
tree6d300943e8d30b006fa69ada87d7db3f12269297 /services/surfaceflinger/SurfaceFlinger.cpp
parentfb1c507b5e442fc8bac059816a3a1534152cd7c4 (diff)
downloadframeworks_native-f2699fc3a8c12b2bf95120c068801e050168bd96.zip
frameworks_native-f2699fc3a8c12b2bf95120c068801e050168bd96.tar.gz
frameworks_native-f2699fc3a8c12b2bf95120c068801e050168bd96.tar.bz2
SF: Add colorTransform to DisplayInfo
Adds the colorTransform field, which defines a vendor-specific color transform (e.g., wide gamut, sRGB, etc.) to the DisplayInfo class, and populates it from the HWC interface. Bug: 20853317 Change-Id: I153edc36a361407656f3eb5082b96c2da2ecbec7
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.cpp')
-rw-r--r--services/surfaceflinger/SurfaceFlinger.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index 01ffac2..fdc3650 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -632,6 +632,7 @@ status_t SurfaceFlinger::getDisplayConfigs(const sp<IBinder>& display,
info.ydpi = ydpi;
info.fps = float(1e9 / hwConfig.refresh);
info.appVsyncOffset = VSYNC_EVENT_PHASE_OFFSET_NS;
+ info.colorTransform = hwConfig.colorTransform;
// This is how far in advance a buffer must be queued for
// presentation at a given time. If you want a buffer to appear