From 9fa364dc72613f4301b0783f0547fe6b01abac39 Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Fri, 19 Sep 2014 16:04:45 -0700 Subject: Account for alpha in hasShadow() bug:17587220 Change-Id: Ic7f2dea95302b713dc93edb4a0193a7be77fb2eb --- libs/hwui/RenderProperties.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libs') diff --git a/libs/hwui/RenderProperties.h b/libs/hwui/RenderProperties.h index 46eeb6a..b936d4b 100644 --- a/libs/hwui/RenderProperties.h +++ b/libs/hwui/RenderProperties.h @@ -570,7 +570,9 @@ public: } bool hasShadow() const { - return getZ() >= 0.0f && getOutline().getPath() != NULL; + return getZ() >= 0.0f + && getOutline().getPath() != NULL + && getOutline().getAlpha() != 0.0f; } private: -- cgit v1.1