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 | 7 |
9 #include "gl/SkGLContext.h" | 8 #include "gl/SkGLContext.h" |
10 | 9 |
11 #include <windows.h> | 10 #include <windows.h> |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 if (shareContext) { | 191 if (shareContext) { |
193 return nullptr; | 192 return nullptr; |
194 } | 193 } |
195 WinGLContext* ctx = new WinGLContext(forcedGpuAPI); | 194 WinGLContext* ctx = new WinGLContext(forcedGpuAPI); |
196 if (!ctx->isValid()) { | 195 if (!ctx->isValid()) { |
197 delete ctx; | 196 delete ctx; |
198 return nullptr; | 197 return nullptr; |
199 } | 198 } |
200 return ctx; | 199 return ctx; |
201 } | 200 } |
202 | |
OLD | NEW |