Index: bench/BitmapBench.cpp |
diff --git a/bench/BitmapBench.cpp b/bench/BitmapBench.cpp |
index 812f8c32366ab6e0b60f24f69e73f4c06f3f2dc1..f756d4ca77ed6090e9581011368113f098e3666c 100644 |
--- a/bench/BitmapBench.cpp |
+++ b/bench/BitmapBench.cpp |
@@ -239,10 +239,7 @@ protected: |
if (fFlags & kRotate_Flag) { |
const SkScalar x = SkIntToScalar(dim.fWidth) / 2; |
const SkScalar y = SkIntToScalar(dim.fHeight) / 2; |
- |
- canvas->translate(x, y); |
- canvas->rotate(SkIntToScalar(35)); |
- canvas->translate(-x, -y); |
+ canvas->rotate(SkIntToScalar(35), x, y); |
} |
INHERITED::onDraw(loops, canvas); |
} |