Index: samplecode/SampleDither.cpp |
diff --git a/samplecode/SampleDither.cpp b/samplecode/SampleDither.cpp |
index 99b33f0f0ef6dfafe18106e255e157b733267a7a..a1b751b96f2d29b9bdc0a125e9467264711b000b 100644 |
--- a/samplecode/SampleDither.cpp |
+++ b/samplecode/SampleDither.cpp |
@@ -37,10 +37,7 @@ static void draw_sweep(SkCanvas* c, int width, int height, SkScalar angle) { |
colors, nullptr, SK_ARRAY_COUNT(colors))); |
SkAutoCanvasRestore acr(c, true); |
- |
- c->translate(r.centerX(), r.centerY()); |
- c->rotate(angle); |
- c->translate(-r.centerX(), -r.centerY()); |
+ c->rotate(angle, r.centerX(), r.centerY()); |
SkRect bounds = r; |
r.inset(p.getStrokeWidth(), p.getStrokeWidth()); |