aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/unix
diff options
context:
space:
mode:
authorGravatar djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-09 18:25:38 +0000
committerGravatar djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-09 18:25:38 +0000
commitc9542ca3d00878a18a57af80037060d6374d5650 (patch)
treedffaa6a224392fa3806f18336ac54d3ee6a23ea5 /src/gpu/gl/unix
parent338a49fc55be8555e171419d079a1b6317060a38 (diff)
Add swapBuffer call to SkGLContextHelper.
R=bsalomon@google.com Review URL: https://codereview.chromium.org/26701002 git-svn-id: http://skia.googlecode.com/svn/trunk@11682 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl/unix')
-rw-r--r--src/gpu/gl/unix/SkNativeGLContext_unix.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/gl/unix/SkNativeGLContext_unix.cpp b/src/gpu/gl/unix/SkNativeGLContext_unix.cpp
index e6fae8ed7b..c4bd6f937d 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);
+}