| OLD | NEW |
| 1 | |
| 2 /* | 1 /* |
| 3 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 #include "gl/SkGLContext.h" | 7 #include "gl/SkGLContext.h" |
| 9 | 8 |
| 10 #include <GLES2/gl2.h> | 9 #include <GLES2/gl2.h> |
| 11 | 10 |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 if (shareContext) { | 324 if (shareContext) { |
| 326 return nullptr; | 325 return nullptr; |
| 327 } | 326 } |
| 328 EGLGLContext* ctx = new EGLGLContext(forcedGpuAPI); | 327 EGLGLContext* ctx = new EGLGLContext(forcedGpuAPI); |
| 329 if (!ctx->isValid()) { | 328 if (!ctx->isValid()) { |
| 330 delete ctx; | 329 delete ctx; |
| 331 return nullptr; | 330 return nullptr; |
| 332 } | 331 } |
| 333 return ctx; | 332 return ctx; |
| 334 } | 333 } |
| 335 | |
| OLD | NEW |