diff options
author | 2015-06-23 13:23:44 -0700 | |
---|---|---|
committer | 2015-06-23 13:23:44 -0700 | |
commit | d416a5b10ff9e6d4f55a1f5b0419722132d68ff3 (patch) | |
tree | f9f39528fd8fd7c033882c137d711e12939c6fa2 /src/gpu/gl/mesa/SkMesaGLContext.h | |
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 'src/gpu/gl/mesa/SkMesaGLContext.h')
-rw-r--r-- | src/gpu/gl/mesa/SkMesaGLContext.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpu/gl/mesa/SkMesaGLContext.h b/src/gpu/gl/mesa/SkMesaGLContext.h index bf0c7e9060..fa3df7b7c7 100644 --- a/src/gpu/gl/mesa/SkMesaGLContext.h +++ b/src/gpu/gl/mesa/SkMesaGLContext.h @@ -18,8 +18,6 @@ private: public: ~SkMesaGLContext() override; - void makeCurrent() const override; - void swapBuffers() const override; static SkMesaGLContext* Create(GrGLStandard forcedGpuAPI) { if (kGLES_GrGLStandard == forcedGpuAPI) { @@ -37,6 +35,10 @@ private: SkMesaGLContext(); void destroyGLContext(); + void onPlatformMakeCurrent() const override; + void onPlatformSwapBuffers() const override; + GrGLFuncPtr onPlatformGetProcAddress(const char*) const override; + Context fContext; GrGLubyte *fImage; }; |