summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/ScreenCaptureOutput.cpp
diff options
context:
space:
mode:
author Alec Mouri <alecmouri@google.com> 2023-07-15 03:58:24 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2023-07-15 03:58:24 +0000
commit9b639a5d4ae8ba2f1f82c443db430db9fdfe7961 (patch)
tree25a81402c2be729b189e9b9e13984e95cd32fb1b /services/surfaceflinger/ScreenCaptureOutput.cpp
parentedf1e1e6fd021ece6b594f820b89f43349a08a6d (diff)
parent50c4d046579f17906452b5e54aa05c75bd7172b4 (diff)
Propagate the 170M->sRGB lie everywhere. am: 7dae9c10f1 am: 50c4d04657
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/24060658 Change-Id: Ib29f0d1925e77ef07fd8252bbf2c10ee1923ae40 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'services/surfaceflinger/ScreenCaptureOutput.cpp')
-rw-r--r--services/surfaceflinger/ScreenCaptureOutput.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/surfaceflinger/ScreenCaptureOutput.cpp b/services/surfaceflinger/ScreenCaptureOutput.cpp
index b3459134cc..01038432de 100644
--- a/services/surfaceflinger/ScreenCaptureOutput.cpp
+++ b/services/surfaceflinger/ScreenCaptureOutput.cpp
@@ -55,6 +55,7 @@ std::shared_ptr<ScreenCaptureOutput> createScreenCaptureOutput(ScreenCaptureOutp
output->setRenderSurface(std::make_unique<ScreenCaptureRenderSurface>(std::move(args.buffer)));
output->setDisplayBrightness(args.sdrWhitePointNits, args.displayBrightnessNits);
output->editState().clientTargetBrightness = args.targetBrightness;
+ output->editState().treat170mAsSrgb = args.treat170mAsSrgb;
output->setDisplayColorProfile(std::make_unique<compositionengine::impl::DisplayColorProfile>(
compositionengine::DisplayColorProfileCreationArgsBuilder()