diff options
Diffstat (limited to 'libs')
-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 0c8d07f..46eeb6a 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 { |