Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Unified Diff: bench/nanobench.cpp

Issue 345063004: Hey, maybe we should _call_ glFinish. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/nanobench.cpp
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index a3dbf22306105e9754df5fec0ed6c3cdcef4429f..0a374cac8dd15b044e5e7b475016e03ccfa435ac 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -112,7 +112,7 @@ static int gpu_bench(SkGLContextHelper* gl,
SkCanvas* canvas,
double* samples) {
// Make sure we're done with whatever came before.
- SK_GL(*gl, Finish);
+ SK_GL(*gl, Finish());
// First, figure out how many loops it'll take to get a frame up to FLAGS_gpuMs.
int loops = 1;
@@ -131,7 +131,7 @@ static int gpu_bench(SkGLContextHelper* gl,
loops = (int)ceil(loops * FLAGS_gpuMs / elapsed);
// Might as well make sure we're not still timing our calibration.
- SK_GL(*gl, Finish);
+ SK_GL(*gl, Finish());
// Pretty much the same deal as the calibration: do some warmup to make
// sure we're timing steady-state pipelined frames.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698