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

Unified Diff: src/gpu/gl/win/SkNativeGLContext_win.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/unix/SkNativeGLContext_unix.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/win/SkNativeGLContext_win.cpp
diff --git a/src/gpu/gl/win/SkNativeGLContext_win.cpp b/src/gpu/gl/win/SkNativeGLContext_win.cpp
index 4c736994fe20441e682c8b014c691faec8945469..d8777274bcc6925a1dfffa73446888890961f129 100644
--- a/src/gpu/gl/win/SkNativeGLContext_win.cpp
+++ b/src/gpu/gl/win/SkNativeGLContext_win.cpp
@@ -112,3 +112,9 @@ void SkNativeGLContext::makeCurrent() const {
SkDebugf("Could not create rendering context.\n");
}
}
+
+void SkNativeGLContext::swapBuffers() const {
+ if (!SwapBuffers(fDeviceContext)) {
+ SkDebugf("Could not complete SwapBuffers.\n");
+ }
+}
« no previous file with comments | « src/gpu/gl/unix/SkNativeGLContext_unix.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698