diff options
author | 2015-06-23 13:23:44 -0700 | |
---|---|---|
committer | 2015-06-23 13:23:44 -0700 | |
commit | d416a5b10ff9e6d4f55a1f5b0419722132d68ff3 (patch) | |
tree | f9f39528fd8fd7c033882c137d711e12939c6fa2 /include/gpu/gl/angle | |
parent | b607767703ff7898611cf88c1218d5d69535e984 (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/angle')
-rw-r--r-- | include/gpu/gl/angle/SkANGLEGLContext.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/gpu/gl/angle/SkANGLEGLContext.h b/include/gpu/gl/angle/SkANGLEGLContext.h index f54f29ecba..8850cd0bb5 100644 --- a/include/gpu/gl/angle/SkANGLEGLContext.h +++ b/include/gpu/gl/angle/SkANGLEGLContext.h @@ -15,8 +15,6 @@ class SkANGLEGLContext : public SkGLContext { public: ~SkANGLEGLContext() override; - void makeCurrent() const override; - void swapBuffers() const override; static SkANGLEGLContext* Create(GrGLStandard forcedGpuAPI) { if (kGL_GrGLStandard == forcedGpuAPI) { @@ -37,6 +35,10 @@ private: SkANGLEGLContext(); void destroyGLContext(); + void onPlatformMakeCurrent() const override; + void onPlatformSwapBuffers() const override; + GrGLFuncPtr onPlatformGetProcAddress(const char* name) const override; + void* fContext; void* fDisplay; void* fSurface; |