Index: gm/strokes.cpp |
diff --git a/gm/strokes.cpp b/gm/strokes.cpp |
index 61f5a8af6aa770895e4c135c5ac7b04f4f3b3e64..afbe5ee4da60d5ace2f298258de649f301cf7e9d 100644 |
--- a/gm/strokes.cpp |
+++ b/gm/strokes.cpp |
@@ -290,12 +290,6 @@ protected: |
return SkISize::Make(W, H*2); |
} |
- static void rotate(SkScalar angle, SkScalar px, SkScalar py, SkCanvas* canvas) { |
- SkMatrix matrix; |
- matrix.setRotate(angle, px, py); |
- canvas->concat(matrix); |
- } |
- |
void onDraw(SkCanvas* canvas) override { |
canvas->drawColor(SK_ColorWHITE); |
@@ -316,7 +310,7 @@ protected: |
for (int i = 0; i < N/2; i++) { |
SkRect r; |
rnd_rect(&r, &paint, rand); |
- rotate(SkIntToScalar(15), SW/2, SH/2, canvas); |
+ canvas->rotate(SkIntToScalar(15), SW/2, SH/2); |
canvas->drawPath(fPath, paint); |
} |
} |