aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Scroggo <Scroggo@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-11 20:25:01 +0000
committerGravatar Scroggo <Scroggo@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-11 20:25:01 +0000
commit0bad67303d57c1cc2532eb6fff673cc0101ecd81 (patch)
treebb15b0f7a00d92a44968726e2f8d478dffb973b9
parentdcf1b0b0abc8ad661448248fb815e71dc6944e9c (diff)
Allow blending if there is a color filter.
git-svn-id: http://skia.googlecode.com/svn/trunk@1309 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--gpu/src/GrDrawTarget.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/gpu/src/GrDrawTarget.cpp b/gpu/src/GrDrawTarget.cpp
index 695a2abdbb..668dc3a415 100644
--- a/gpu/src/GrDrawTarget.cpp
+++ b/gpu/src/GrDrawTarget.cpp
@@ -514,6 +514,13 @@ bool GrDrawTarget::canDisableBlend() const {
}
}
+ // ...and there isn't an interesting color filter...
+ // TODO: Consider being more aggressive with regards to disabling
+ // blending when a color filter is used.
+ if (SkXfermode::kDst_Mode != fCurrDrawState.fColorFilterXfermode) {
+ return false;
+ }
+
// ...then we disable blend.
return true;
}