Index: gm/fontscalerdistortable.cpp |
diff --git a/gm/fontscalerdistortable.cpp b/gm/fontscalerdistortable.cpp |
index b4f2ca370ce6175ec99027b682a4122e7fe04621..be6a7ebc58dca12b31d360418aedb8301f6899a3 100644 |
--- a/gm/fontscalerdistortable.cpp |
+++ b/gm/fontscalerdistortable.cpp |
@@ -19,8 +19,6 @@ public: |
this->setBGColor(0xFFFFFFFF); |
} |
- virtual ~FontScalerDistortableGM() { } |
- |
protected: |
SkString onShortName() override { |
@@ -31,12 +29,6 @@ protected: |
return SkISize::Make(550, 700); |
} |
- static void rotate_about(SkCanvas* canvas, SkScalar degrees, SkScalar px, SkScalar py) { |
- canvas->translate(px, py); |
- canvas->rotate(degrees); |
- canvas->translate(-px, -py); |
- } |
- |
void onDraw(SkCanvas* canvas) override { |
SkPaint paint; |
paint.setAntiAlias(true); |
@@ -63,7 +55,7 @@ protected: |
SkAutoCanvasRestore acr(canvas, true); |
canvas->translate(SkIntToScalar(30 + i * 100), SkIntToScalar(20)); |
- rotate_about(canvas, SkIntToScalar(i * 5), x, y * 10); |
+ canvas->rotate(SkIntToScalar(i * 5), x, y * 10); |
{ |
SkPaint p; |