summaryrefslogtreecommitdiff
path: root/libs/hwui/Debug.h
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2012-12-03 12:34:51 -0800
committerRomain Guy <romainguy@google.com>2013-01-14 14:27:54 -0800
commit735738c4ddf3229caa5f6e634bf591953ac29944 (patch)
tree4e972e943ffefc5bc268629ed45e8a5783ffe7c5 /libs/hwui/Debug.h
parent57b59e025bc10056daf42cd741b626843ff344f5 (diff)
Preliminary Support for region clipping
Region clipping, using Canvas.clipPath or Canvas.clipRegion, requires a stencil buffer to be always present. In addition, extra wiring is required in JNI and display lists. This change only adds the necessary JNI/C++ APIs and some extra plumbing to start the real work on properly supporting region clipping. A new debug define called DEBUG_CLIP_REGIONS can be used to draw the current clip region. It is off by default, as is region clipping. The default implementation of clipPath() and clipRegion(), now in native, mimics the previous Dalvik implementation to prevent regressions. Change-Id: I7903e7cfd7412b9b9b622566d4dbfce7bdcec00c
Diffstat (limited to 'libs/hwui/Debug.h')
-rw-r--r--libs/hwui/Debug.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/hwui/Debug.h b/libs/hwui/Debug.h
index 6795ac3205d1..dfc4e25cc085 100644
--- a/libs/hwui/Debug.h
+++ b/libs/hwui/Debug.h
@@ -35,6 +35,9 @@
// Turn on to enable layers debugging when rendered as regions
#define DEBUG_LAYERS_AS_REGIONS 0
+// Turn on to enable debugging when the clip is not a rect
+#define DEBUG_CLIP_REGIONS 0
+
// Turn on to display debug info about vertex/fragment shaders
#define DEBUG_PROGRAMS 0