surfaceflinger: re-saturate all legacy dataspaces
We changed HIDL interface to re-saturate any legacy dataspace.
Update SurfaceFlinger to match the behavior.
Bug: 78303195
Test: videos are re-saturated as well in GPU fallback
Change-Id: Idfa74783061a62d79ca5d9f38e50f4095ce38322
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index cdf7cca..da64476 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -2989,7 +2989,7 @@
bool restore = false;
mat4 savedMatrix;
if (mDisplayColorSetting == DisplayColorSetting::ENHANCED &&
- layer->isLegacySrgbDataSpace()) {
+ layer->isLegacyDataSpace()) {
savedMatrix =
getRenderEngine().setupColorTransform(legacySrgbSaturationMatrix);
restore = true;