summaryrefslogtreecommitdiff
path: root/libs/hwui/Properties.h
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2023-10-24 20:43:22 -0400
committer John Reck <jreck@google.com> 2023-10-27 16:49:22 -0400
commit1b152e712159c0b82831a7567ce2f3c49cdc11bf (patch)
tree74c107d65ae11b92af840bcd985910ed7ec4dc42 /libs/hwui/Properties.h
parent57cca107540d12c63b10ba326483b9acc4fa7b45 (diff)
Implement automatic SV clipping
Clip SV to its ancestor clipping bounds. This enables Z-above SurfaceView + scrolling containers to work more naturally Replaces the hidden API of setEnableSurfaceClipping Fixes: 298621623 Test: Sample app Change-Id: Iaa862598e37065677f5ba163a5ac7a6fab2739ea
Diffstat (limited to 'libs/hwui/Properties.h')
-rw-r--r--libs/hwui/Properties.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/hwui/Properties.h b/libs/hwui/Properties.h
index bb477449fff0..bca57e9e4678 100644
--- a/libs/hwui/Properties.h
+++ b/libs/hwui/Properties.h
@@ -325,6 +325,8 @@ public:
static float maxHdrHeadroomOn8bit;
+ static bool clipSurfaceViews;
+
static StretchEffectBehavior getStretchEffectBehavior() {
return stretchEffectBehavior;
}