From 93d6e248de0fc4afc266e9a3b19c9add3944e09b Mon Sep 17 00:00:00 2001 From: Nader Jawad Date: Mon, 17 May 2021 18:12:29 -0700 Subject: Add support to toggle different shader behaviors Updated HWUI to toggle overscroll stretch implementation based on whether the device supports high end graphics or not Bug: 187718492 Test: manual Change-Id: I13a91a8861c07bec8af43268ba22d0f5b7060b4f --- libs/hwui/Properties.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libs/hwui/Properties.cpp') diff --git a/libs/hwui/Properties.cpp b/libs/hwui/Properties.cpp index a4614a9076c8..f0995c4f324b 100644 --- a/libs/hwui/Properties.cpp +++ b/libs/hwui/Properties.cpp @@ -137,10 +137,6 @@ bool Properties::load() { targetCpuTimePercentage = base::GetIntProperty(PROPERTY_TARGET_CPU_TIME_PERCENTAGE, 70); if (targetCpuTimePercentage <= 0 || targetCpuTimePercentage > 100) targetCpuTimePercentage = 70; - int stretchType = base::GetIntProperty(PROPERTY_STRETCH_EFFECT_TYPE, 0); - stretchType = std::clamp(stretchType, 0, static_cast(StretchEffectBehavior::UniformScale)); - stretchEffectBehavior = static_cast(stretchType); - return (prevDebugLayersUpdates != debugLayersUpdates) || (prevDebugOverdraw != debugOverdraw); } -- cgit v1.2.3-59-g8ed1b