summaryrefslogtreecommitdiff
path: root/libs/hwui/Properties.cpp
diff options
context:
space:
mode:
author Jason Macnak <natsu@google.com> 2024-07-29 21:45:07 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-07-29 21:45:07 +0000
commit2eb7e9d8a863187fabfcee7949f882ffeb50ed68 (patch)
tree411272c856a6bc15de49eeb4f7689c9fd880879b /libs/hwui/Properties.cpp
parent37d1bca662a0813e02717a449d9cfe385d7af3fd (diff)
parentc355c231e5a2bdef8ed4e5f6f0194b55ad45c947 (diff)
Merge "Use ro.hw_timeout_multiplier in Readback deadline" into main
Diffstat (limited to 'libs/hwui/Properties.cpp')
-rw-r--r--libs/hwui/Properties.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/Properties.cpp b/libs/hwui/Properties.cpp
index 755332ff66fd..f43a4f795319 100644
--- a/libs/hwui/Properties.cpp
+++ b/libs/hwui/Properties.cpp
@@ -110,6 +110,8 @@ float Properties::maxHdrHeadroomOn8bit = 5.f; // TODO: Refine this number
bool Properties::clipSurfaceViews = false;
bool Properties::hdr10bitPlus = false;
+int Properties::timeoutMultiplier = 1;
+
StretchEffectBehavior Properties::stretchEffectBehavior = StretchEffectBehavior::ShaderHWUI;
DrawingEnabled Properties::drawingEnabled = DrawingEnabled::NotInitialized;
@@ -183,6 +185,8 @@ bool Properties::load() {
base::GetBoolProperty("debug.hwui.clip_surfaceviews", hwui_flags::clip_surfaceviews());
hdr10bitPlus = hwui_flags::hdr_10bit_plus();
+ timeoutMultiplier = android::base::GetIntProperty("ro.hw_timeout_multiplier", 1);
+
return (prevDebugLayersUpdates != debugLayersUpdates) || (prevDebugOverdraw != debugOverdraw);
}