diff options
author | joshualitt <joshualitt@chromium.org> | 2016-01-20 13:09:12 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-20 13:09:12 -0800 |
commit | 01836add2ab778ed085735fa8a206b54d5fc4f23 (patch) | |
tree | 4f61d2a733fe37fd6466135f0ac795fa6a189b7b /src | |
parent | ae473fdfc3db2d9dd82b05b2568767d6d4038fcd (diff) |
Revert to old behavior for swap buffers
New behavior is preserved with 'syncOrSwap' call
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1606883005
Review URL: https://codereview.chromium.org/1606883005
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/gl/SkGLContext.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gpu/gl/SkGLContext.cpp b/src/gpu/gl/SkGLContext.cpp index 9f373d6d47..01f827c8fa 100644 --- a/src/gpu/gl/SkGLContext.cpp +++ b/src/gpu/gl/SkGLContext.cpp @@ -78,9 +78,13 @@ void SkGLContext::makeCurrent() const { } void SkGLContext::swapBuffers() { + this->onPlatformSwapBuffers(); +} + +void SkGLContext::waitOnSyncOrSwap() { if (!fFenceSync) { // Fallback on the platform SwapBuffers method for synchronization. This may have no effect. - this->onPlatformSwapBuffers(); + this->swapBuffers(); return; } |