diff options
author | 2016-01-20 13:09:12 -0800 | |
---|---|---|
committer | 2016-01-20 13:09:12 -0800 | |
commit | 01836add2ab778ed085735fa8a206b54d5fc4f23 (patch) | |
tree | 4f61d2a733fe37fd6466135f0ac795fa6a189b7b /include/gpu/gl | |
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 'include/gpu/gl')
-rw-r--r-- | include/gpu/gl/SkGLContext.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/gpu/gl/SkGLContext.h b/include/gpu/gl/SkGLContext.h index 63c3e9ca7b..992edf4efd 100644 --- a/include/gpu/gl/SkGLContext.h +++ b/include/gpu/gl/SkGLContext.h @@ -52,6 +52,8 @@ public: */ virtual GrGLuint eglImageToExternalTexture(GrEGLImage) const { return 0; } + void swapBuffers(); + /** * The only purpose of this function it to provide a means of scheduling * work on the GPU (since all of the subclasses create primary buffers for @@ -65,7 +67,7 @@ public: * not perform some sort of synchronization, depending on whether the * drawing surface provided by the platform is double buffered. */ - void swapBuffers(); + void waitOnSyncOrSwap(); /** * This notifies the context that we are deliberately testing abandoning |