commit | 9fa364dc72613f4301b0783f0547fe6b01abac39 | [log] [tgz] |
---|---|---|
author | Chris Craik <ccraik@google.com> | Fri Sep 19 16:04:45 2014 -0700 |
committer | Chris Craik <ccraik@google.com> | Fri Sep 19 16:04:45 2014 -0700 |
tree | 7293e8cafe80015f4a9d1c7b8c905d85c4ed25c1 | |
parent | 8f8f5f579fa6448a2ed370c5bd48af35a30f4944 [diff] [blame] |
Account for alpha in hasShadow() bug:17587220 Change-Id: Ic7f2dea95302b713dc93edb4a0193a7be77fb2eb
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 @@ } bool hasShadow() const { - return getZ() >= 0.0f && getOutline().getPath() != NULL; + return getZ() >= 0.0f + && getOutline().getPath() != NULL + && getOutline().getAlpha() != 0.0f; } private: