Index: samplecode/SampleApp.cpp |
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp |
index ffa507bc17d519d15c7b31f3c872b5ae22004da3..7afaa969721a9c0d0ad7666ecf0ae714e6ef8856 100644 |
--- a/samplecode/SampleApp.cpp |
+++ b/samplecode/SampleApp.cpp |
@@ -1372,9 +1372,7 @@ void SampleWindow::beforeChild(SkView* child, SkCanvas* canvas) { |
if (fRotate) { |
SkScalar cx = this->width() / 2; |
SkScalar cy = this->height() / 2; |
- canvas->translate(cx, cy); |
- canvas->rotate(gAnimTimer.scaled(10)); |
- canvas->translate(-cx, -cy); |
+ canvas->rotate(gAnimTimer.scaled(10), cx, cy); |
} |
if (fPerspAnim) { |