diff options
author | 2023-07-15 03:12:23 +0000 | |
---|---|---|
committer | 2023-07-15 03:12:23 +0000 | |
commit | 50c4d046579f17906452b5e54aa05c75bd7172b4 (patch) | |
tree | d63d51855d4fa845b731f395954d0275737e9261 /services/surfaceflinger/ScreenCaptureOutput.cpp | |
parent | f9f4c9b61c6edd0dfb41d401be815d4f3a77a72e (diff) | |
parent | 7dae9c10f1588f48da9ce8015b75ebdc54be8a8d (diff) |
Propagate the 170M->sRGB lie everywhere. am: 7dae9c10f1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/24060658
Change-Id: I370e6d8d3cd115adb34a9900a873e0b2529f173d
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.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/surfaceflinger/ScreenCaptureOutput.cpp b/services/surfaceflinger/ScreenCaptureOutput.cpp index 09dac23410..ee87687eea 100644 --- a/services/surfaceflinger/ScreenCaptureOutput.cpp +++ b/services/surfaceflinger/ScreenCaptureOutput.cpp @@ -37,6 +37,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() |