summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Alec Mouri <alecmouri@google.com> 2023-05-17 18:07:38 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-05-17 18:07:38 +0000
commit12baa2e688e7a2cb8fbb3480220d0142815ef7d1 (patch)
treecdc84600dfb6bc0842c9fa4647609817688df3c3
parentf982044859e939e488967562b2d64f00f7ec1504 (diff)
parent2964072dd866b76fe3b42c925271e930cbdb3ca7 (diff)
Merge "Disable HDR screenshots" into udc-dev
-rw-r--r--services/surfaceflinger/SurfaceFlinger.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index d55ec990d9..5d96fc45be 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -6992,7 +6992,8 @@ ui::Dataspace pickBestDataspace(ui::Dataspace requestedDataspace, const DisplayD
const auto dataspaceForColorMode = ui::pickDataspaceFor(state.colorMode);
- if (capturingHdrLayers && !hintForSeamlessTransition) {
+ // TODO: Enable once HDR screenshots are ready.
+ if constexpr (/* DISABLES CODE */ (false)) {
// For now since we only support 8-bit screenshots, just use HLG and
// assume that 1.0 >= display max luminance. This isn't quite as future
// proof as PQ is, but is good enough.