Index: src/gpu/gl/SkGLContext.cpp |
diff --git a/src/gpu/gl/SkGLContext.cpp b/src/gpu/gl/SkGLContext.cpp |
index 9f373d6d474f15852bbfba6219afdd5162271a20..01f827c8fa0ee0572c1e28fdac0f7732df5795ce 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; |
} |