summaryrefslogtreecommitdiffstats
path: root/libs/hwui/DeferredDisplayList.cpp
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2014-05-23 00:03:46 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-05-23 00:03:46 +0000
commitd490aa426090fc358873821b47ef27ead0c97409 (patch)
tree72bc6fe950898174e6dc005505b02fba4be185d5 /libs/hwui/DeferredDisplayList.cpp
parent5ec9aed64cd03545eded622cca214c83c170ab22 (diff)
parentd1ad5e62fda248c6d185cde3cb6d9f01a223066c (diff)
downloadframeworks_base-d490aa426090fc358873821b47ef27ead0c97409.zip
frameworks_base-d490aa426090fc358873821b47ef27ead0c97409.tar.gz
frameworks_base-d490aa426090fc358873821b47ef27ead0c97409.tar.bz2
Merge "Inspect SkShader to determine hw shader."
Diffstat (limited to 'libs/hwui/DeferredDisplayList.cpp')
-rw-r--r--libs/hwui/DeferredDisplayList.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/hwui/DeferredDisplayList.cpp b/libs/hwui/DeferredDisplayList.cpp
index 3016814..937bf8d 100644
--- a/libs/hwui/DeferredDisplayList.cpp
+++ b/libs/hwui/DeferredDisplayList.cpp
@@ -230,6 +230,11 @@ public:
return false;
}
+ if (op->mPaint && mOps[0].op->mPaint &&
+ op->mPaint->getShader() != mOps[0].op->mPaint->getShader()) {
+ return false;
+ }
+
/* Draw Modifiers compatibility check
*
* Shadows are ignored, as only text uses them, and in that case they are drawn
@@ -244,7 +249,6 @@ public:
*/
const DrawModifiers& lhsMod = lhs->mDrawModifiers;
const DrawModifiers& rhsMod = rhs->mDrawModifiers;
- if (lhsMod.mShader != rhsMod.mShader) return false;
// Draw filter testing expects bit fields to be clear if filter not set.
if (lhsMod.mHasDrawFilter != rhsMod.mHasDrawFilter) return false;