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

Unified Diff: include/gpu/gl/SkGLContext.h

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
« no previous file with comments | « no previous file | src/gpu/gl/SkGLContext.cpp » ('j') | tools/kilobench/kilobench.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/gl/SkGLContext.h
diff --git a/include/gpu/gl/SkGLContext.h b/include/gpu/gl/SkGLContext.h
index 63c3e9ca7ba515836ac2bd6871f6deb30754f184..dac4d778436b54fc2ccb002669f789eaee0bbe5a 100644
--- a/include/gpu/gl/SkGLContext.h
+++ b/include/gpu/gl/SkGLContext.h
@@ -65,7 +65,7 @@ public:
* not perform some sort of synchronization, depending on whether the
* drawing surface provided by the platform is double buffered.
*/
- void swapBuffers();
+ void swapBuffers(bool usePlatformSwapBuffers = false);
bsalomon 2016/01/20 18:54:52 Can we just undo the swap-as-fence-sync hack befor
/**
* This notifies the context that we are deliberately testing abandoning
@@ -83,6 +83,11 @@ public:
class GLFenceSync; // SkGpuFenceSync implementation that uses the OpenGL functionality.
+ /*
+ * returns the fencesync object owned by this SkGLContext
+ */
+ SkGpuFenceSync* fenceSync() { return fFenceSync.get(); }
+
protected:
SkGLContext();
« no previous file with comments | « no previous file | src/gpu/gl/SkGLContext.cpp » ('j') | tools/kilobench/kilobench.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698