diff options
Diffstat (limited to 'samplecode/SampleFontScalerTest.cpp')
-rw-r--r-- | samplecode/SampleFontScalerTest.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/samplecode/SampleFontScalerTest.cpp b/samplecode/SampleFontScalerTest.cpp index bd9309790e..2b4a46d00c 100644 --- a/samplecode/SampleFontScalerTest.cpp +++ b/samplecode/SampleFontScalerTest.cpp @@ -44,7 +44,6 @@ public: fFaces[i] = SkTypeface::MakeFromName( gFaces[i].fName, SkFontStyle::FromOldStyle(gFaces[i].fStyle)); } -// this->setBGColor(0xFFDDDDDD); } protected: @@ -57,12 +56,6 @@ protected: return this->INHERITED::onQuery(evt); } - static void rotate_about(SkCanvas* canvas, SkScalar degrees, SkScalar px, SkScalar py) { - canvas->translate(px, py); - canvas->rotate(degrees); - canvas->translate(-px, -py); - } - virtual void onDrawContent(SkCanvas* canvas) { SkPaint paint; @@ -100,7 +93,7 @@ protected: SkAutoCanvasRestore acr(canvas, true); canvas->translate(SkIntToScalar(50 + i * 230), SkIntToScalar(20)); - rotate_about(canvas, SkIntToScalar(i * 5), x, y * 10); + canvas->rotate(SkIntToScalar(i * 5), x, y * 10); { SkPaint p; |