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

Unified Diff: src/gpu/gl/unix/SkNativeGLContext_unix.cpp

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 | « src/gpu/gl/nacl/SkNativeGLContext_nacl.cpp ('k') | src/gpu/gl/win/SkNativeGLContext_win.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/unix/SkNativeGLContext_unix.cpp
diff --git a/src/gpu/gl/unix/SkNativeGLContext_unix.cpp b/src/gpu/gl/unix/SkNativeGLContext_unix.cpp
index e6fae8ed7b2a7704494c7d5f14bb94a64c5fa80c..c4bd6f937d35142aeaa9e5c2d7f5c124c9deb9d3 100644
--- a/src/gpu/gl/unix/SkNativeGLContext_unix.cpp
+++ b/src/gpu/gl/unix/SkNativeGLContext_unix.cpp
@@ -285,3 +285,7 @@ void SkNativeGLContext::makeCurrent() const {
SkDebugf("Could not set the context.\n");
}
}
+
+void SkNativeGLContext::swapBuffers() const {
+ glXSwapBuffers(fDisplay, fGlxPixmap);
+}
« no previous file with comments | « src/gpu/gl/nacl/SkNativeGLContext_nacl.cpp ('k') | src/gpu/gl/win/SkNativeGLContext_win.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698