Allow blending if there is a color filter.
git-svn-id: http://skia.googlecode.com/svn/trunk@1309 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/src/GrDrawTarget.cpp b/gpu/src/GrDrawTarget.cpp
index 695a2ab..668dc3a 100644
--- a/gpu/src/GrDrawTarget.cpp
+++ b/gpu/src/GrDrawTarget.cpp
@@ -514,6 +514,13 @@
}
}
+ // ...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;
}