aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-10-19 20:56:30 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-10-19 20:56:30 +0000
commit788e2474846fd2136ea7f05ca41f7e46c652d508 (patch)
treea07b5e815d394b92d5ebea0c7ba8015fa8aa914c /bench
parent373a6635b7190b4af4d265fdd4b70f102ec3a6fd (diff)
Fix benchmain to build w/ scalar=fixed
git-svn-id: http://skia.googlecode.com/svn/trunk@2500 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench')
-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;