From d416a5b10ff9e6d4f55a1f5b0419722132d68ff3 Mon Sep 17 00:00:00 2001 From: cdalton Date: Tue, 23 Jun 2015 13:23:44 -0700 Subject: Implement SkGLContext swapBuffers with fence syncs Improves the GPU measuring accuracy of nanobench by using fence syncs. Fence syncs are very widely supported and available on almost every platform. NO_MERGE_BUILDS BUG=skia: Review URL: https://codereview.chromium.org/1194783003 --- bench/nanobench.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bench/nanobench.h') diff --git a/bench/nanobench.h b/bench/nanobench.h index 1dc0b8b90a..f556f7dc14 100644 --- a/bench/nanobench.h +++ b/bench/nanobench.h @@ -63,7 +63,7 @@ struct Target { /** CPU-like targets can just be timed, but GPU-like targets need to pay attention to frame boundaries or other similar details. */ - virtual bool needsFrameTiming() const { return false; } + virtual bool needsFrameTiming(int* frameLag) const { return false; } /** Called once per target, during program initialization. Returns false if initialization fails. */ -- cgit v1.2.3