summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/ScreenCaptureOutput.cpp
diff options
context:
space:
mode:
author Alec Mouri <alecmouri@google.com> 2023-09-06 02:10:05 +0000
committer Alec Mouri <alecmouri@google.com> 2023-12-06 00:16:02 +0000
commitf97df4d8a6e4ef1364244b0e9adefc08c3f95c06 (patch)
treebd5a54efeda611d597c67dca073abe995b928feb /services/surfaceflinger/ScreenCaptureOutput.cpp
parentd6a6f38c2449d059e9ba2f90668b95145f6237b8 (diff)
Support fp16 in sf
* Make sure we don't dim SDR in renderengine, and instead map HDR to the correct relative luminance above 1.0 * Plumb the HDR/SDR ratio into HWC Bug: 236745178 Test: builds Change-Id: I325972a01280d287189d38dd6c5bf7f2d4b776bb
Diffstat (limited to 'services/surfaceflinger/ScreenCaptureOutput.cpp')
-rw-r--r--services/surfaceflinger/ScreenCaptureOutput.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/services/surfaceflinger/ScreenCaptureOutput.cpp b/services/surfaceflinger/ScreenCaptureOutput.cpp
index a4a5ce2b46..dd03366bcc 100644
--- a/services/surfaceflinger/ScreenCaptureOutput.cpp
+++ b/services/surfaceflinger/ScreenCaptureOutput.cpp
@@ -75,10 +75,10 @@ void ScreenCaptureOutput::updateColorProfile(const compositionengine::Compositio
outputState.renderIntent = mColorProfile.renderIntent;
}
-renderengine::DisplaySettings ScreenCaptureOutput::generateClientCompositionDisplaySettings()
- const {
+renderengine::DisplaySettings ScreenCaptureOutput::generateClientCompositionDisplaySettings(
+ const std::shared_ptr<renderengine::ExternalTexture>& buffer) const {
auto clientCompositionDisplay =
- compositionengine::impl::Output::generateClientCompositionDisplaySettings();
+ compositionengine::impl::Output::generateClientCompositionDisplaySettings(buffer);
clientCompositionDisplay.clip = mRenderArea.getSourceCrop();
auto renderIntent = static_cast<ui::RenderIntent>(clientCompositionDisplay.renderIntent);