diff options
author | 2023-07-13 19:40:53 +0000 | |
---|---|---|
committer | 2023-07-14 21:58:21 +0000 | |
commit | 7dae9c10f1588f48da9ce8015b75ebdc54be8a8d (patch) | |
tree | 14b46ea2ceb63e92073a9a94e8ce5295273b5227 /services/surfaceflinger/ScreenCaptureOutput.h | |
parent | 1c5a29c71795e30e9dc8ec08415d1eba9a1071cc (diff) |
Propagate the 170M->sRGB lie everywhere.
If the device is configured to decode SDR video standards as sRGB, then
we need to do this for screenshots and caching as well.
See patch I64fc8f2ea77f8e595333de36fb9da2979d8316ca for why we allow for reinterpreting 170M as sRGB.
Bug: 288330598
Test: Netflix full screen, disable HW overlays, then swipe to home
Change-Id: Ie4eabd6301826fcb9e302ba6079f7f6b94e5a8b8
Diffstat (limited to 'services/surfaceflinger/ScreenCaptureOutput.h')
-rw-r--r-- | services/surfaceflinger/ScreenCaptureOutput.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/surfaceflinger/ScreenCaptureOutput.h b/services/surfaceflinger/ScreenCaptureOutput.h index 3c307b0733..159c2bf903 100644 --- a/services/surfaceflinger/ScreenCaptureOutput.h +++ b/services/surfaceflinger/ScreenCaptureOutput.h @@ -36,6 +36,7 @@ struct ScreenCaptureOutputArgs { // Counterintuitively, when targetBrightness > 1.0 then dim the scene. float targetBrightness; bool regionSampling; + bool treat170mAsSrgb; }; // ScreenCaptureOutput is used to compose a set of layers into a preallocated buffer. |