diff options
| author | 2018-12-11 23:39:21 +0000 | |
|---|---|---|
| committer | 2018-12-11 23:39:21 +0000 | |
| commit | ba4d1d22c9c521aa004f7a5e476b2ef1cd920adc (patch) | |
| tree | 9769eca3bb695d03f8c6d0d3800cc01f1dcb125e /services/surfaceflinger/DisplayDevice.cpp | |
| parent | 0b647b2fade9cc60aefeb685b67d4f9d79f85e3d (diff) | |
| parent | c1ccb0bf1ec523b67745890874a2e605e603538c (diff) | |
Merge changes I09f4a157,I738be45b
* changes:
[SurfaceFlinger] Remove saturation matrix of Adaptive mode.
[SurfaceFlinger] Remove usage of legacy data spaces.
Diffstat (limited to 'services/surfaceflinger/DisplayDevice.cpp')
| -rw-r--r-- | services/surfaceflinger/DisplayDevice.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/surfaceflinger/DisplayDevice.cpp b/services/surfaceflinger/DisplayDevice.cpp index 48fd47fdbe..2963a97608 100644 --- a/services/surfaceflinger/DisplayDevice.cpp +++ b/services/surfaceflinger/DisplayDevice.cpp @@ -98,7 +98,7 @@ const std::array<RenderIntent, 2> sHdrRenderIntents = { Dataspace colorModeToDataspace(ColorMode mode) { switch (mode) { case ColorMode::SRGB: - return Dataspace::SRGB; + return Dataspace::V0_SRGB; case ColorMode::DISPLAY_P3: return Dataspace::DISPLAY_P3; case ColorMode::DISPLAY_BT2020: @@ -817,7 +817,7 @@ void DisplayDevice::populateColorModes( bool DisplayDevice::hasRenderIntent(RenderIntent intent) const { // assume a render intent is supported when SRGB supports it; we should // get rid of that assumption. - auto iter = mColorModes.find(getColorModeKey(Dataspace::SRGB, intent)); + auto iter = mColorModes.find(getColorModeKey(Dataspace::V0_SRGB, intent)); return iter != mColorModes.end() && iter->second.renderIntent == intent; } |