Implement SkGLContext swapBuffers with fence syncs
authorcdalton <cdalton@nvidia.com>
Tue, 23 Jun 2015 20:23:44 +0000 (13:23 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 23 Jun 2015 20:23:44 +0000 (13:23 -0700)
commitd416a5b10ff9e6d4f55a1f5b0419722132d68ff3
treef9f39528fd8fd7c033882c137d711e12939c6fa2
parentb607767703ff7898611cf88c1218d5d69535e984
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
22 files changed:
bench/nanobench.cpp
bench/nanobench.h
bench/nanobenchAndroid.cpp
bench/nanobenchAndroid.h
include/gpu/gl/GrGLInterface.h
include/gpu/gl/SkGLContext.h
include/gpu/gl/SkNullGLContext.h
include/gpu/gl/angle/SkANGLEGLContext.h
src/gpu/SkGpuFenceSync.h [new file with mode: 0644]
src/gpu/gl/GrGLAssembleInterface.h
src/gpu/gl/SkGLContext.cpp
src/gpu/gl/SkNullGLContext.cpp
src/gpu/gl/angle/SkANGLEGLContext.cpp
src/gpu/gl/debug/SkDebugGLContext.cpp
src/gpu/gl/debug/SkDebugGLContext.h
src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp
src/gpu/gl/glx/SkCreatePlatformGLContext_glx.cpp
src/gpu/gl/iOS/SkCreatePlatformGLContext_iOS.mm
src/gpu/gl/mac/SkCreatePlatformGLContext_mac.cpp
src/gpu/gl/mesa/SkMesaGLContext.cpp
src/gpu/gl/mesa/SkMesaGLContext.h
src/gpu/gl/win/SkCreatePlatformGLContext_win.cpp