aboutsummaryrefslogtreecommitdiffstats
path: root/bench/benchmain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bench/benchmain.cpp')
-rw-r--r--bench/benchmain.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp
index 2f8b006..3b6dfdf 100644
--- a/bench/benchmain.cpp
+++ b/bench/benchmain.cpp
@@ -368,6 +368,11 @@ int main (int argc, char * const argv[]) {
performRotate(&canvas, dim.fX, dim.fY);
}
+ if (repeatDraw > 1) {
+ SkAutoCanvasRestore acr(&canvas, true);
+ bench->draw(&canvas);
+ }
+
SkMSec now = SkTime::GetMSecs();
for (int i = 0; i < repeatDraw; i++) {
SkCanvas* c = &canvas;