From 5c75c52e048a01c23b18f4e31ae624b5fe43e23c Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Fri, 5 Sep 2014 14:08:08 -0700 Subject: Add shadow/clipping properties to HierarchyViewer bug:15777980 Change-Id: Ic3d24326f585d2d2b9889486f0ed322eb98b5af8 --- libs/hwui/RenderProperties.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/hwui/RenderProperties.h') 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 { -- cgit v1.2.3-59-g8ed1b