summaryrefslogtreecommitdiff
path: root/libs/hwui/Debug.h
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2011-05-26 16:40:55 -0700
committerRomain Guy <romainguy@google.com>2011-05-26 16:40:55 -0700
commitf504a2fa144504ca1efd39a4ef9208e3d4d336c5 (patch)
tree3d797f8910ac7615bddfc073435d8a26fcb80e61 /libs/hwui/Debug.h
parent3453b1c584f456a18f17d74a72c044b4e39c6405 (diff)
Correctly implement the CLEAR xfermode.
The previous implementation was using glBlendFunc with the parameters GL_ZERO/GL_ZERO which doesn't work for text, paths and other alpha sources (anti-aliasing.) The correct implementation is GL_ZERO/ GL_ONE_MINUS_SRC_ALPHA. Change-Id: I4cca65e57b6a37bbf5a41d382cb0648ee8e11e79
Diffstat (limited to 'libs/hwui/Debug.h')
-rw-r--r--libs/hwui/Debug.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/hwui/Debug.h b/libs/hwui/Debug.h
index f74238e9e426..2cdc8c39e9f9 100644
--- a/libs/hwui/Debug.h
+++ b/libs/hwui/Debug.h
@@ -37,6 +37,8 @@
// Turn on to display debug info about 9patch objects
#define DEBUG_PATCHES 0
+// Turn on to "explode" 9patch objects
+#define DEBUG_EXPLODE_PATCHES 0
// Turn on to display vertex and tex coords data about 9patch objects
// This flag requires DEBUG_PATCHES to be turned on
#define DEBUG_PATCHES_VERTICES 0