summaryrefslogtreecommitdiffstats
path: root/libs/hwui/DeferredDisplayList.cpp
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2013-12-10 12:28:58 -0500
committerDerek Sollenberger <djsollen@google.com>2014-02-07 17:06:14 -0500
commit76d3a1b8d035d27bc80b0f2fc480a903bd001514 (patch)
treea6346bbf593d565d89990f0bddecd2a5df92de9d /libs/hwui/DeferredDisplayList.cpp
parent8852ab4357ffb653bafb36f3b9272866834f7a72 (diff)
downloadframeworks_base-76d3a1b8d035d27bc80b0f2fc480a903bd001514.zip
frameworks_base-76d3a1b8d035d27bc80b0f2fc480a903bd001514.tar.gz
frameworks_base-76d3a1b8d035d27bc80b0f2fc480a903bd001514.tar.bz2
Removing SkiaColorFilter and inspecting the native object directly.
bug: 10650594 Change-Id: I4fcf66d008765afa0e35d011f58bc792183cb74f
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 7eb7028..3d58964 100644
--- a/libs/hwui/DeferredDisplayList.cpp
+++ b/libs/hwui/DeferredDisplayList.cpp
@@ -224,6 +224,11 @@ public:
if (op->getPaintAlpha() != mOps[0].op->getPaintAlpha()) return false;
+ if (op->mPaint && mOps[0].op->mPaint &&
+ op->mPaint->getColorFilter() != mOps[0].op->mPaint->getColorFilter()) {
+ return false;
+ }
+
/* Draw Modifiers compatibility check
*
* Shadows are ignored, as only text uses them, and in that case they are drawn
@@ -239,7 +244,6 @@ public:
const DrawModifiers& lhsMod = lhs->mDrawModifiers;
const DrawModifiers& rhsMod = rhs->mDrawModifiers;
if (lhsMod.mShader != rhsMod.mShader) return false;
- if (lhsMod.mColorFilter != rhsMod.mColorFilter) return false;
// Draw filter testing expects bit fields to be clear if filter not set.
if (lhsMod.mHasDrawFilter != rhsMod.mHasDrawFilter) return false;