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

Side by Side Diff: src/gpu/gl/egl/SkCreatePlatformGLContext_egl.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, 10 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
OLDNEW
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/SkGLContext.h" 8 #include "gl/SkGLContext.h"
9 9
10 #include <GLES2/gl2.h> 10 #include <GLES2/gl2.h>
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 return nullptr; 324 return nullptr;
325 } 325 }
326 EGLGLContext* ctx = new EGLGLContext(forcedGpuAPI); 326 EGLGLContext* ctx = new EGLGLContext(forcedGpuAPI);
327 if (!ctx->isValid()) { 327 if (!ctx->isValid()) {
328 delete ctx; 328 delete ctx;
329 return nullptr; 329 return nullptr;
330 } 330 }
331 return ctx; 331 return ctx;
332 } 332 }
333 333
334 void SkReleasePlatformGLAPIsInThread() {
335 eglReleaseThread();
336 }
OLDNEW
« no previous file with comments | « src/gpu/gl/command_buffer/SkCommandBufferGLContext.cpp ('k') | src/gpu/gl/glx/SkCreatePlatformGLContext_glx.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698