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

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

Issue 26701002: Add swapBuffer call to SkGLContextHelper. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: comments Created 7 years, 2 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 | « include/gpu/gl/SkDebugGLContext.h ('k') | include/gpu/gl/SkMesaGLContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/gl/SkGLContextHelper.h
diff --git a/include/gpu/gl/SkGLContextHelper.h b/include/gpu/gl/SkGLContextHelper.h
index 97d416b34a7a5923c00ff1cbe9734787717134d0..44eb509a044262414b83cbb6379ad71f8b8d4a4c 100644
--- a/include/gpu/gl/SkGLContextHelper.h
+++ b/include/gpu/gl/SkGLContextHelper.h
@@ -34,6 +34,18 @@ public:
virtual void makeCurrent() const = 0;
+ /**
+ * The primary purpose of this function it to provide a means of scheduling
+ * work on the GPU (since all of the subclasses create primary buffers for
+ * testing that are small and not meant to be rendered to the screen).
+ *
+ * If the drawing surface provided by the platform is double buffered this
+ * call will cause the platform to swap which buffer is currently being
+ * targeted. If the current surface does not include a back buffer, this
+ * call has no effect.
+ */
+ virtual void swapBuffers() const = 0;
+
bool hasExtension(const char* extensionName) const {
SkASSERT(NULL != fGL);
return fExtensions.has(extensionName);
« no previous file with comments | « include/gpu/gl/SkDebugGLContext.h ('k') | include/gpu/gl/SkMesaGLContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698