aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-11 18:46:43 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-11 18:46:43 +0000
commit420f74fa720272b1164eae55d7b6c10e07d41601 (patch)
tree411bacc02c2a21a6987adaacc5f289adb25d59ca /src
parent3d8cd175e18a7f0deb5b6740d0fe00e202e97f11 (diff)
only check for nearly-integral if we're a BW clip
git-svn-id: http://skia.googlecode.com/svn/trunk@3915 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r--src/core/SkRasterClip.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkRasterClip.cpp b/src/core/SkRasterClip.cpp
index 09da0f7bab..9a845de31e 100644
--- a/src/core/SkRasterClip.cpp
+++ b/src/core/SkRasterClip.cpp
@@ -161,7 +161,7 @@ static bool is_integral(SkScalar x) {
bool SkRasterClip::op(const SkRect& r, SkRegion::Op op, bool doAA) {
AUTO_RASTERCLIP_VALIDATE(*this);
- if (doAA) {
+ if (fIsBW && doAA) {
// check that the rect really needs aa
if (is_integral(r.fLeft) && is_integral(r.fTop) &&
is_integral(r.fRight) && is_integral(r.fBottom)) {