Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(301)

Unified Diff: src/gpu/gl/SkGLContext.cpp

Issue 1612513002: Add a background timing thread to kilobench (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweaks Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/gl/SkGLContext.cpp
diff --git a/src/gpu/gl/SkGLContext.cpp b/src/gpu/gl/SkGLContext.cpp
index ad119aee6a30fa99ee2c8a31767bff0c62d6e320..3169c27ab7afec6cd9d93246d628bf7c26ecc36f 100644
--- a/src/gpu/gl/SkGLContext.cpp
+++ b/src/gpu/gl/SkGLContext.cpp
@@ -77,8 +77,8 @@ void SkGLContext::makeCurrent() const {
this->onPlatformMakeCurrent();
}
-void SkGLContext::swapBuffers() {
- if (!fFenceSync) {
+void SkGLContext::swapBuffers(bool usePlatformSwapBuffers) {
+ if (!fFenceSync || usePlatformSwapBuffers) {
// Fallback on the platform SwapBuffers method for synchronization. This may have no effect.
this->onPlatformSwapBuffers();
return;

Powered by Google App Engine
This is Rietveld 408576698