aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--bench/benchmain.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp
index c988e12db1..e12f274637 100644
--- a/bench/benchmain.cpp
+++ b/bench/benchmain.cpp
@@ -502,10 +502,12 @@ int main (int argc, char * const argv[]) {
if (repeatDraw > 1) {
SkAutoCanvasRestore acr(&canvas, true);
bench->draw(&canvas);
+#if !defined(SK_SCALAR_IS_FIXED)
if (gpu) {
context->flush();
SK_GL(glContext, Finish());
}
+#endif
}
timer.start();
@@ -516,10 +518,12 @@ int main (int argc, char * const argv[]) {
context->flush();
}
}
- if (gpu) {
+ #if !defined(SK_SCALAR_IS_FIXED)
+ if (gpu) {
SK_GL(glContext, Finish());
- }
- timer.end();
+ }
+ #endif
+ timer.end();
if (repeatDraw > 1) {
SkString str;