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

Side by Side Diff: src/gpu/gl/android/SkNativeGLContext_android.cpp

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #include "gl/SkNativeGLContext.h" 8 #include "gl/SkNativeGLContext.h"
9 9
10 SkNativeGLContext::AutoContextRestore::AutoContextRestore() { 10 SkNativeGLContext::AutoContextRestore::AutoContextRestore() {
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 } 158 }
159 159
160 return interface; 160 return interface;
161 } 161 }
162 162
163 void SkNativeGLContext::makeCurrent() const { 163 void SkNativeGLContext::makeCurrent() const {
164 if (!eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { 164 if (!eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) {
165 SkDebugf("Could not set the context.\n"); 165 SkDebugf("Could not set the context.\n");
166 } 166 }
167 } 167 }
168
169 void SkNativeGLContext::swapBuffers() const {
170 if (!eglSwapBuffers(fDisplay, fSurface)) {
171 SkDebugf("Could not complete eglSwapBuffers.\n");
172 }
173 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698