Disable HDR screenshots
Bug: 282823628
Change-Id: I60867302eaf968f6b756e3ec37dd55caddf98a49
Test: screencap
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index dfe8c72..799652b 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -6952,7 +6952,8 @@
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.