summaryrefslogtreecommitdiff
path: root/libs/hwui/Debug.h
diff options
context:
space:
mode:
authorztenghui <ztenghui@google.com>2013-12-03 10:38:55 -0800
committerztenghui <ztenghui@google.com>2013-12-13 17:25:47 -0800
commit55bfb4e728fe1db619af5d2c287f4abe711b3343 (patch)
tree3b9c9eb0902fdb0f8991259a04c342f89f65bcaa /libs/hwui/Debug.h
parentd08eadd287991ec18eafe620b24e2b1bf0ce1f2d (diff)
Calculate and show Ambient shadow.
Basically we compute the shadow as a strip of triangles, whose alpha value is the strength of the shadow. We use the normal to extend the geometry. And we use static function and try to avoid new/malloc in the computation. Change-Id: I382286f1cad351bd5ff983f76f446c075819dcaf
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 79afad13e898..f619205083fd 100644
--- a/libs/hwui/Debug.h
+++ b/libs/hwui/Debug.h
@@ -88,6 +88,9 @@
// Turn on to enable 3D support in the renderer (off by default until API for control exists)
#define DEBUG_ENABLE_3D 0
+// Turn on to enable debugging shadow
+#define DEBUG_SHADOW 0
+
#if DEBUG_INIT
#define INIT_LOGD(...) ALOGD(__VA_ARGS__)
#else