diff options
author | 2024-07-29 21:59:20 +0000 | |
---|---|---|
committer | 2024-07-29 21:59:20 +0000 | |
commit | 4b71d1fcc3275f90c4f3865059c3c8cbe0ae6c05 (patch) | |
tree | c31780328535524c8eb733969933aa7dd650df7f /libs/hwui/Properties.cpp | |
parent | 78a648212abfb266ffb0ed6f8cc72f9d4221b068 (diff) | |
parent | 2eb7e9d8a863187fabfcee7949f882ffeb50ed68 (diff) |
Merge "Use ro.hw_timeout_multiplier in Readback deadline" into main am: 2eb7e9d8a8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3198371
Change-Id: I0c06b96ac45a93d161f16c4b3b931fb3167feaf5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'libs/hwui/Properties.cpp')
-rw-r--r-- | libs/hwui/Properties.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/Properties.cpp b/libs/hwui/Properties.cpp index 5d3bc89b40dd..d184f64b1c2c 100644 --- a/libs/hwui/Properties.cpp +++ b/libs/hwui/Properties.cpp @@ -101,6 +101,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; @@ -174,6 +176,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); } |