Loading services/surfaceflinger/RenderEngine/GLES20RenderEngine.cpp +10 −4 Original line number Diff line number Diff line Loading @@ -321,10 +321,16 @@ void GLES20RenderEngine::drawMesh(const Mesh& mesh) { default: // treat all other dataspaces as sRGB wideColorState.setColorMatrix(mState.getColorMatrix() * mSrgbToDisplayP3); if ((mDataSpace & Dataspace::TRANSFER_MASK) & Dataspace::TRANSFER_LINEAR) { wideColorState.setInputTransferFunction(Description::TransferFunction::LINEAR); } else { wideColorState.setInputTransferFunction(Description::TransferFunction::SRGB); switch (static_cast<Dataspace>(mDataSpace & Dataspace::TRANSFER_MASK)) { case Dataspace::TRANSFER_LINEAR: wideColorState.setInputTransferFunction( Description::TransferFunction::LINEAR); break; default: // treat all other transfer functions as sRGB wideColorState.setInputTransferFunction( Description::TransferFunction::SRGB); break; } wideColorState.setOutputTransferFunction(Description::TransferFunction::SRGB); ALOGV("drawMesh: gamut transform applied"); Loading Loading
services/surfaceflinger/RenderEngine/GLES20RenderEngine.cpp +10 −4 Original line number Diff line number Diff line Loading @@ -321,10 +321,16 @@ void GLES20RenderEngine::drawMesh(const Mesh& mesh) { default: // treat all other dataspaces as sRGB wideColorState.setColorMatrix(mState.getColorMatrix() * mSrgbToDisplayP3); if ((mDataSpace & Dataspace::TRANSFER_MASK) & Dataspace::TRANSFER_LINEAR) { wideColorState.setInputTransferFunction(Description::TransferFunction::LINEAR); } else { wideColorState.setInputTransferFunction(Description::TransferFunction::SRGB); switch (static_cast<Dataspace>(mDataSpace & Dataspace::TRANSFER_MASK)) { case Dataspace::TRANSFER_LINEAR: wideColorState.setInputTransferFunction( Description::TransferFunction::LINEAR); break; default: // treat all other transfer functions as sRGB wideColorState.setInputTransferFunction( Description::TransferFunction::SRGB); break; } wideColorState.setOutputTransferFunction(Description::TransferFunction::SRGB); ALOGV("drawMesh: gamut transform applied"); Loading