| OLD | NEW |
| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 if (!eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { | 173 if (!eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { |
| 174 SkDebugf("Could not set the context.\n"); | 174 SkDebugf("Could not set the context.\n"); |
| 175 } | 175 } |
| 176 } | 176 } |
| 177 | 177 |
| 178 void SkNativeGLContext::swapBuffers() const { | 178 void SkNativeGLContext::swapBuffers() const { |
| 179 if (!eglSwapBuffers(fDisplay, fSurface)) { | 179 if (!eglSwapBuffers(fDisplay, fSurface)) { |
| 180 SkDebugf("Could not complete eglSwapBuffers.\n"); | 180 SkDebugf("Could not complete eglSwapBuffers.\n"); |
| 181 } | 181 } |
| 182 } | 182 } |
| OLD | NEW |