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

Commit 5e488f88 authored by Alec Mouri's avatar Alec Mouri
Browse files

Assign renderintent when making SDR screenshots.

This is a no-op since we only use it for HDR tonemapping but it makes
this code clearer.

Bug: 293560925
Bug: 298219334
Test: builds, boots
Test: HDR video playback and screen rotation
Change-Id: I9ba024d8d138d4c21178c98a961332073b98fc50
parent 95350b26
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -7814,13 +7814,12 @@ ftl::SharedFuture<FenceResult> SurfaceFlinger::renderScreenImpl(
                    displayBrightnessNits = std::min(sdrWhitePointNits * kMaxScreenshotHeadroom,
                                                     displayBrightnessNits);
                }

            }
            if (requestedDataspace == ui::Dataspace::UNKNOWN) {
                renderIntent = state.renderIntent;
            }
        }
    }
    }

    captureResults.buffer = capturedBuffer->getBuffer();