| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 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 | 8 |
| 9 #include "gl/SkANGLEGLContext.h" | 9 #include "gl/SkANGLEGLContext.h" |
| 10 | 10 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 } | 98 } |
| 99 | 99 |
| 100 return interface; | 100 return interface; |
| 101 } | 101 } |
| 102 | 102 |
| 103 void SkANGLEGLContext::makeCurrent() const { | 103 void SkANGLEGLContext::makeCurrent() const { |
| 104 if (!eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { | 104 if (!eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { |
| 105 SkDebugf("Could not set the context.\n"); | 105 SkDebugf("Could not set the context.\n"); |
| 106 } | 106 } |
| 107 } | 107 } |
| 108 |
| 109 void SkANGLEGLContext::swapBuffers() const { |
| 110 if (!eglSwapBuffers(fDisplay, fSurface)) { |
| 111 SkDebugf("Could not complete eglSwapBuffers.\n"); |
| 112 } |
| 113 } |
| OLD | NEW |