| OLD | NEW | 
|---|
| 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  Loading... | 
| 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 } | 
| OLD | NEW | 
|---|