summaryrefslogtreecommitdiff
path: root/libs/hwui/Properties.h
diff options
context:
space:
mode:
author Nader Jawad <njawad@google.com> 2021-05-10 22:12:48 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-05-10 22:12:48 +0000
commit020efbc1a8feda5670f1b7b7cd75e79dcacbaa94 (patch)
tree47343aebfbb96daff0bb9bf62ba458410d49ec12 /libs/hwui/Properties.h
parentd825a07bc472f206a0066d6a11a32ac6deebe1f7 (diff)
parent8ed00dc56d5af7483ed053eb88c550cc1035b029 (diff)
Merge "Add a linear variant of the stretch effect" into sc-dev
Diffstat (limited to 'libs/hwui/Properties.h')
-rw-r--r--libs/hwui/Properties.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/hwui/Properties.h b/libs/hwui/Properties.h
index 01c157123c50..82ce5c6fb979 100644
--- a/libs/hwui/Properties.h
+++ b/libs/hwui/Properties.h
@@ -171,6 +171,8 @@ enum DebugLevel {
*/
#define PROPERTY_TARGET_CPU_TIME_PERCENTAGE "debug.hwui.target_cpu_time_percent"
+#define PROPERTY_STRETCH_EFFECT_TYPE "debug.hwui.stretch_mode"
+
/**
* Property for whether this is running in the emulator.
*/
@@ -197,6 +199,11 @@ enum class OverdrawColorSet { Default = 0, Deuteranomaly };
enum class RenderPipelineType { SkiaGL, SkiaVulkan, NotInitialized = 128 };
+enum class StretchEffectBehavior {
+ Shader,
+ LinearScale,
+};
+
/**
* Renderthread-only singleton which manages several static rendering properties. Most of these
* are driven by system properties which are queried once at initialization, and again if init()
@@ -270,6 +277,8 @@ public:
static bool useHintManager;
static int targetCpuTimePercentage;
+ static StretchEffectBehavior stretchEffectBehavior;
+
private:
static ProfileType sProfileType;
static bool sDisableProfileBars;