aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/path_stroke_with_zero_length.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-09-21 11:15:07 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-21 11:15:07 -0700
commit669983856d99b9312be3166b7dd1f8483a90c315 (patch)
treea0a65286af33fae8a77e0d5e8a06f064bb656575 /gm/path_stroke_with_zero_length.cpp
parentdf55827ae6291e44d4da54bdcbb8505538b3c54d (diff)
allow clip calls w/o op param, remove unnecessary kReplace ops
Diffstat (limited to 'gm/path_stroke_with_zero_length.cpp')
-rw-r--r--gm/path_stroke_with_zero_length.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/path_stroke_with_zero_length.cpp b/gm/path_stroke_with_zero_length.cpp
index 9c05541877..0f6d200b6f 100644
--- a/gm/path_stroke_with_zero_length.cpp
+++ b/gm/path_stroke_with_zero_length.cpp
@@ -167,7 +167,7 @@ private:
} else {
fClipS.transform(clipM, &clip);
}
- canvas->clipPath(clip, SkCanvas::kIntersect_Op, true);
+ canvas->clipPath(clip, true);
canvas->scale(scale, scale);
canvas->drawBitmap(offscreen, (bounds.fLeft - 17) / scale,
(bounds.fTop - 20 + 420) / scale);
@@ -180,7 +180,7 @@ private:
clipM.postTranslate(bounds.fLeft - 17 - 275, bounds.fTop - 24.5f + 420);
SkPath clip;
fClipR.transform(clipM, &clip);
- canvas->clipPath(clip, SkCanvas::kIntersect_Op, true);
+ canvas->clipPath(clip, true);
canvas->scale(10.f, 10.f);
canvas->drawBitmap(offscreen, (bounds.fLeft - 17 - 275
+ (index >= 5 ? 5 : 0)) / scale, (bounds.fTop - 20 + 420) / scale);