diff options
author | 2023-09-06 02:11:56 +0000 | |
---|---|---|
committer | 2023-11-03 15:51:35 +0000 | |
commit | 22ab7f32617e9facbfb2ad8a1c37bd852e677688 (patch) | |
tree | b1235737fefccf5de3d3f04fbdd6fa2ef77c013f /libs/hwui/Properties.cpp | |
parent | 55e03013762786108bfc07d0d72c20428a299c71 (diff) |
Support fp16 in hwui for HDR
Picking sRGB primaries and transfer with extended range bit as the
dataspace, because that's straightforward for EGL.
Then, rather than dimming SDR content, we instead just render as normal
so that we take advantage of the full bit depth
Bug: 236745178
Test: builds
Change-Id: Ica39a2c81be508effb97a8850b0c8e272c10a084
Diffstat (limited to 'libs/hwui/Properties.cpp')
-rw-r--r-- | libs/hwui/Properties.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/hwui/Properties.cpp b/libs/hwui/Properties.cpp index ad600d0bab93..6d5b5937f473 100644 --- a/libs/hwui/Properties.cpp +++ b/libs/hwui/Properties.cpp @@ -38,6 +38,9 @@ namespace hwui_flags { constexpr bool clip_surfaceviews() { return false; } +constexpr bool hdr_10bit_plus() { + return false; +} } // namespace hwui_flags #endif @@ -104,6 +107,7 @@ bool Properties::isSystemOrPersistent = false; float Properties::maxHdrHeadroomOn8bit = 5.f; // TODO: Refine this number bool Properties::clipSurfaceViews = false; +bool Properties::hdr10bitPlus = false; StretchEffectBehavior Properties::stretchEffectBehavior = StretchEffectBehavior::ShaderHWUI; @@ -174,6 +178,7 @@ bool Properties::load() { clipSurfaceViews = base::GetBoolProperty("debug.hwui.clip_surfaceviews", hwui_flags::clip_surfaceviews()); + hdr10bitPlus = hwui_flags::hdr_10bit_plus(); return (prevDebugLayersUpdates != debugLayersUpdates) || (prevDebugOverdraw != debugOverdraw); } |