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

Commit 0fea1147 authored by Peiyong Lin's avatar Peiyong Lin Committed by Android (Google) Code Review
Browse files

Merge "[RenderEngine] Support extended SRGB transform."

parents c8569352 b0094482
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -330,6 +330,11 @@ void GLES20RenderEngine::drawMesh(const Mesh& mesh) {
            case HAL_DATASPACE_DISPLAY_P3:
                // input matches output
                break;
            case HAL_DATASPACE_V0_SCRGB_LINEAR:
                wideColorState.setColorMatrix(mState.getColorMatrix() * mSrgbToDisplayP3);
                wideColorState.setInputTransferFunction(Description::TransferFunction::LINEAR);
                wideColorState.setOutputTransferFunction(Description::TransferFunction::SRGB);
                break;
            case HAL_DATASPACE_BT2020_PQ:
            case HAL_DATASPACE_BT2020_ITU_PQ:
                wideColorState.setColorMatrix(mState.getColorMatrix() * mBt2020ToDisplayP3);