summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2014-09-19 23:36:20 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-09-19 23:36:22 +0000
commit9e7c91919159050f397e28ba8df04d0b42b96e01 (patch)
treeaf9cfbe7f8e2e09d9b8a2a9379a4a16418e38e9e /libs
parentcf456e3c225fa736914cca1f51eb5311fa16fb88 (diff)
parent9fa364dc72613f4301b0783f0547fe6b01abac39 (diff)
downloadframeworks_base-9e7c91919159050f397e28ba8df04d0b42b96e01.zip
frameworks_base-9e7c91919159050f397e28ba8df04d0b42b96e01.tar.gz
frameworks_base-9e7c91919159050f397e28ba8df04d0b42b96e01.tar.bz2
Merge "Account for alpha in hasShadow()" into lmp-dev
Diffstat (limited to 'libs')
-rw-r--r--libs/hwui/RenderProperties.h4
1 files changed, 3 insertions, 1 deletions
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: