summaryrefslogtreecommitdiff
path: root/libs/hwui/Debug.h
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2013-03-04 10:19:31 -0800
committerChris Craik <ccraik@google.com>2013-04-15 13:53:02 -0700
commit527a3aace1dd72432c2e0472a570e030ad04bf16 (patch)
tree24f8cca71f0377a88b35fbe060a3247040b3de9f /libs/hwui/Debug.h
parent8d4c23b9c32f8c0328ebca538bb801716fe4478a (diff)
Draw Operation merging
Merge simple bitmap draw operations and text operations to avoid issuing individual gl draws for each operation. Merging other ops to be done eventually. The methods are different - the bitmap merging generates a single mesh for reused, unclipped images (esp. repeated images in a listview) The text approach queries just defers the normal font rendering until the last drawText in the sequence that can share the same shader. Patches are sorted and merged, but don't yet have a multiDraw implementation. For now, the pretending-to-merge gives better sorting behavior by keeping similar patches together. Change-Id: Ic300cdab0a53814cf7b09c58bf54b1bf0f58ccd6
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 46beb94fecd2..790c4f46643f 100644
--- a/libs/hwui/Debug.h
+++ b/libs/hwui/Debug.h
@@ -84,6 +84,9 @@
// Turn on to insert an event marker for each display list op
#define DEBUG_DISPLAY_LIST_OPS_AS_EVENTS 0
+// Turn on to highlight drawing batches and merged batches with different colors
+#define DEBUG_MERGE_BEHAVIOR 0
+
#if DEBUG_INIT
#define INIT_LOGD(...) ALOGD(__VA_ARGS__)
#else