From 798b78c656b5542789ddaf83bc6e02285e797a29 Mon Sep 17 00:00:00 2001 From: Daniel Solomon Date: Thu, 11 Jul 2019 19:16:24 -0700 Subject: [PATCH] sm7250-common: Add config for display composition color spaces * Currently we use the Display-P3 color space for display composition across all color modes on op8. We do this to facilitate a new version of Adaptive color mode; this forces display to always use P3 color calibration. * It turns out that in op8's case using P3 color calibration for sRGB content, even when the content is accurately converted to P3, degrades color accuracy for certain sRGB colors. To fix this, we revert back to pre-op8 behavior, where we let SurfaceFlinger choose the most appropriate color space for composition, for all color modes used on op8 *except* for Adaptive color mode. Bug: 137140317 Bug: 137053654 Change-Id: I8670f76aa8c7c513e5a6db291c970a20609d032d --- .../base/core/res/res/values/config.xml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 63ba94f..d9d27dc 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -327,4 +327,28 @@ 2 3 + + + + 0 + 1 + 2 + 3 + + + 0 + 0 + 0 + 9 +