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/angle/SkANGLEGLContext.h" | 9 #include "gl/angle/SkANGLEGLContext.h" |
10 | 10 |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 | 219 |
220 void SkANGLEGLContext::onPlatformSwapBuffers() const { | 220 void SkANGLEGLContext::onPlatformSwapBuffers() const { |
221 if (!eglSwapBuffers(fDisplay, fSurface)) { | 221 if (!eglSwapBuffers(fDisplay, fSurface)) { |
222 SkDebugf("Could not complete eglSwapBuffers.\n"); | 222 SkDebugf("Could not complete eglSwapBuffers.\n"); |
223 } | 223 } |
224 } | 224 } |
225 | 225 |
226 GrGLFuncPtr SkANGLEGLContext::onPlatformGetProcAddress(const char* name) const { | 226 GrGLFuncPtr SkANGLEGLContext::onPlatformGetProcAddress(const char* name) const { |
227 return eglGetProcAddress(name); | 227 return eglGetProcAddress(name); |
228 } | 228 } |
| 229 |
| 230 void SkANGLEGLContext::ReleaseGpuAPIsInThread() { |
| 231 eglReleaseThread(); |
| 232 } |
OLD | NEW |