diff options
| author | 2014-09-05 14:08:08 -0700 | |
|---|---|---|
| committer | 2014-09-05 15:23:08 -0700 | |
| commit | 5c75c52e048a01c23b18f4e31ae624b5fe43e23c (patch) | |
| tree | e507692fd4fd667356cf7c22cecc64733dcb3969 /libs/hwui/RenderProperties.h | |
| parent | f634c08b57256bf236c00ce1e917f6299d34e8a1 (diff) | |
Add shadow/clipping properties to HierarchyViewer
bug:15777980
Change-Id: Ic3d24326f585d2d2b9889486f0ed322eb98b5af8
Diffstat (limited to 'libs/hwui/RenderProperties.h')
| -rw-r--r-- | libs/hwui/RenderProperties.h | 4 |
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 { |