Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6333af55 authored by Chia-I Wu's avatar Chia-I Wu
Browse files

surfaceflinger: silence an error for non-WCG displays

This happens when a non-WCG display is plugged in to a color
managed device.

Bug: 117814643
Test: manual
Change-Id: I30930903f8dd897ff7ff4e1e4c5ff46f9d438b5b
parent c7e86caf
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -781,9 +781,12 @@ void DisplayDevice::getBestColorMode(Dataspace dataspace, RenderIntent intent,
        *outMode = iter->second.colorMode;
        *outIntent = iter->second.renderIntent;
    } else {
        // 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;