summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/SurfaceFlinger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.cpp')
-rw-r--r--services/surfaceflinger/SurfaceFlinger.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index 87fd2f1e72..c8025b37c5 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -2739,7 +2739,7 @@ bool SurfaceFlinger::doComposeSurfaces(const sp<const DisplayDevice>& displayDev
ALOGV("hasClientComposition");
android_dataspace outputDataspace = HAL_DATASPACE_UNKNOWN;
- if (!mForceNativeColorMode && displayDevice->getWideColorSupport() &&
+ if (displayDevice->getWideColorSupport() &&
displayDevice->getActiveColorMode() == HAL_COLOR_MODE_DISPLAY_P3) {
outputDataspace = HAL_DATASPACE_DISPLAY_P3;
}
@@ -4600,7 +4600,7 @@ void SurfaceFlinger::renderScreenImplLocked(const RenderArea& renderArea,
}
android_dataspace outputDataspace = HAL_DATASPACE_UNKNOWN;
- if (!mForceNativeColorMode && renderArea.getWideColorSupport() &&
+ if (renderArea.getWideColorSupport() &&
renderArea.getActiveColorMode() == HAL_COLOR_MODE_DISPLAY_P3) {
outputDataspace = HAL_DATASPACE_DISPLAY_P3;
}