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

Side by Side Diff: src/gpu/gl/angle/SkANGLEGLContext.cpp

Issue 1733323002: Clean up EGL thread state at thread exit in nanobench and DM (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix main thread usage also Created 4 years, 9 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
« no previous file with comments | « src/gpu/GrContextFactory.cpp ('k') | src/gpu/gl/command_buffer/SkCommandBufferGLContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « src/gpu/GrContextFactory.cpp ('k') | src/gpu/gl/command_buffer/SkCommandBufferGLContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698