summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2014-09-05 14:08:08 -0700
committerChris Craik <ccraik@google.com>2014-09-05 15:23:08 -0700
commit5c75c52e048a01c23b18f4e31ae624b5fe43e23c (patch)
treee507692fd4fd667356cf7c22cecc64733dcb3969 /libs
parentf634c08b57256bf236c00ce1e917f6299d34e8a1 (diff)
Add shadow/clipping properties to HierarchyViewer
bug:15777980 Change-Id: Ic3d24326f585d2d2b9889486f0ed322eb98b5af8
Diffstat (limited to 'libs')
-rw-r--r--libs/hwui/RenderProperties.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/RenderProperties.h b/libs/hwui/RenderProperties.h
index 0c8d07f83e28..46eeb6afa444 100644
--- a/libs/hwui/RenderProperties.h
+++ b/libs/hwui/RenderProperties.h
@@ -569,6 +569,10 @@ public:
return getClipToBounds() && (getZ() <= 0 || getOutline().isEmpty());
}
+ bool hasShadow() const {
+ return getZ() >= 0.0f && getOutline().getPath() != NULL;
+ }
+
private:
// Rendering properties
struct PrimitiveFields {