diff options
| author | 2018-10-17 22:26:27 +0000 | |
|---|---|---|
| committer | 2018-10-17 22:26:27 +0000 | |
| commit | 91fb4544357e97fb32a145cebde36312389a530b (patch) | |
| tree | 751e5c3055588b8c0f78b0184ee7e64256506f04 /services/surfaceflinger/DisplayDevice.cpp | |
| parent | 685610015180ebf3a454ef8bd9803e4f44889573 (diff) | |
| parent | 6333af55705231910e7a2179bc727204ad5e90de (diff) | |
Merge "surfaceflinger: silence an error for non-WCG displays"
Diffstat (limited to 'services/surfaceflinger/DisplayDevice.cpp')
| -rw-r--r-- | services/surfaceflinger/DisplayDevice.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/services/surfaceflinger/DisplayDevice.cpp b/services/surfaceflinger/DisplayDevice.cpp index db095a51d9..309fd0a791 100644 --- a/services/surfaceflinger/DisplayDevice.cpp +++ b/services/surfaceflinger/DisplayDevice.cpp @@ -781,9 +781,12 @@ void DisplayDevice::getBestColorMode(Dataspace dataspace, RenderIntent intent, *outMode = iter->second.colorMode; *outIntent = iter->second.renderIntent; } else { - ALOGE("map unknown (%s)/(%s) to default color mode", - dataspaceDetails(static_cast<android_dataspace_t>(dataspace)).c_str(), - decodeRenderIntent(intent).c_str()); + // this is unexpected on a WCG display + if (hasWideColorGamut()) { + ALOGE("map unknown (%s)/(%s) to default color mode", + dataspaceDetails(static_cast<android_dataspace_t>(dataspace)).c_str(), + decodeRenderIntent(intent).c_str()); + } *outDataspace = Dataspace::UNKNOWN; *outMode = ColorMode::NATIVE; |