aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/gl/GrGLInterface.h
diff options
context:
space:
mode:
authorGravatar cdalton <cdalton@nvidia.com>2015-06-23 13:23:44 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-23 13:23:44 -0700
commitd416a5b10ff9e6d4f55a1f5b0419722132d68ff3 (patch)
treef9f39528fd8fd7c033882c137d711e12939c6fa2 /include/gpu/gl/GrGLInterface.h
parentb607767703ff7898611cf88c1218d5d69535e984 (diff)
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
Diffstat (limited to 'include/gpu/gl/GrGLInterface.h')
-rw-r--r--include/gpu/gl/GrGLInterface.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/gpu/gl/GrGLInterface.h b/include/gpu/gl/GrGLInterface.h
index e510551395..8c7252685e 100644
--- a/include/gpu/gl/GrGLInterface.h
+++ b/include/gpu/gl/GrGLInterface.h
@@ -30,6 +30,8 @@
* comments in GrGLConfig.h
*/
+typedef void(*GrGLFuncPtr)();
+
struct GrGLInterface;
const GrGLInterface* GrGLDefaultInterface();