summaryrefslogtreecommitdiffstats
path: root/libs/hwui/ShadowTessellator.cpp
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2015-10-01 16:49:16 -0700
committerChris Craik <ccraik@google.com>2015-11-04 18:31:50 +0000
commitcdce35a7e877ae51e194b03033bbd35b5c10ce06 (patch)
tree1eefda1826ff4dee3b0babe155f7280d276b08d2 /libs/hwui/ShadowTessellator.cpp
parent8e7ab07ce76c20da653e098adfe38da867753305 (diff)
downloadframeworks_base-cdce35a7e877ae51e194b03033bbd35b5c10ce06.zip
frameworks_base-cdce35a7e877ae51e194b03033bbd35b5c10ce06.tar.gz
frameworks_base-cdce35a7e877ae51e194b03033bbd35b5c10ce06.tar.bz2
Early return when the scale is 0.
b/24534579 Change-Id: Ib3581ec99387ca70ca036026f64857a49657d94b (cherry picked from commit 8d0ec389531d071529fb0a800f10733b057205d9)
Diffstat (limited to 'libs/hwui/ShadowTessellator.cpp')
-rw-r--r--libs/hwui/ShadowTessellator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/ShadowTessellator.cpp b/libs/hwui/ShadowTessellator.cpp
index 09d1258..1bca3e7 100644
--- a/libs/hwui/ShadowTessellator.cpp
+++ b/libs/hwui/ShadowTessellator.cpp
@@ -77,8 +77,8 @@ void ShadowTessellator::tessellateSpotShadow(bool isCasterOpaque,
}
#if DEBUG_SHADOW
- ALOGD("light center %f %f %f",
- adjustedLightCenter.x, adjustedLightCenter.y, adjustedLightCenter.z);
+ ALOGD("light center %f %f %f %d",
+ adjustedLightCenter.x, adjustedLightCenter.y, adjustedLightCenter.z, lightRadius);
#endif
// light position (because it's in local space) needs to compensate for receiver transform