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

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: ios 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..8a4faa35cffd299cbc26bc19ecd0c8fe74c64594 100644
--- a/include/gpu/gl/SkGLContextHelper.h
+++ b/include/gpu/gl/SkGLContextHelper.h
@@ -34,6 +34,14 @@ public:
virtual void makeCurrent() const = 0;
+ /**
+ * If the drawing surface provided by the platform is double buffered this
+ * call will cause the platform to swap with buffer is currently being
+ * targeted. If the current surface does not include a back buffer, this
+ * call has no effect.
bsalomon 2013/10/09 18:17:08 Maybe we should say that this is mostly used for s
+ */
+ 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