diff options
author | 2024-01-16 22:58:49 +0000 | |
---|---|---|
committer | 2024-01-16 22:58:49 +0000 | |
commit | 475aee8beb7bf16ad92c10cf00219ec919e17b86 (patch) | |
tree | 1d7bb41f5de58b54850b83f74f7874d14cd8bea0 /libs/hwui/Properties.cpp | |
parent | 5f7657c4d4a736c463f9f844b0aea5cd08549949 (diff) | |
parent | 22ab7f32617e9facbfb2ad8a1c37bd852e677688 (diff) |
Merge "Support fp16 in hwui for HDR" into main
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 d58c872dbc56..755332ff66fd 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 @@ -105,6 +108,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; @@ -177,6 +181,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); } |