| OLD | NEW |
| 1 | |
| 2 /* | 1 /* |
| 3 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
| 4 * | 3 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 7 */ | 6 */ |
| 8 | 7 |
| 9 #include "gl/angle/SkANGLEGLContext.h" | 8 #include "gl/angle/SkANGLEGLContext.h" |
| 10 | 9 |
| 11 #include <EGL/egl.h> | 10 #include <EGL/egl.h> |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 | 220 |
| 222 void SkANGLEGLContext::onPlatformSwapBuffers() const { | 221 void SkANGLEGLContext::onPlatformSwapBuffers() const { |
| 223 if (!eglSwapBuffers(fDisplay, fSurface)) { | 222 if (!eglSwapBuffers(fDisplay, fSurface)) { |
| 224 SkDebugf("Could not complete eglSwapBuffers.\n"); | 223 SkDebugf("Could not complete eglSwapBuffers.\n"); |
| 225 } | 224 } |
| 226 } | 225 } |
| 227 | 226 |
| 228 GrGLFuncPtr SkANGLEGLContext::onPlatformGetProcAddress(const char* name) const { | 227 GrGLFuncPtr SkANGLEGLContext::onPlatformGetProcAddress(const char* name) const { |
| 229 return eglGetProcAddress(name); | 228 return eglGetProcAddress(name); |
| 230 } | 229 } |
| OLD | NEW |