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 "SkTypes.h" | 7 #include "SkTypes.h" |
9 #if defined(SK_BUILD_FOR_MAC) | 8 #if defined(SK_BUILD_FOR_MAC) |
10 | 9 |
11 #include "gl/SkGLContext.h" | 10 #include "gl/SkGLContext.h" |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 } | 119 } |
121 MacGLContext* ctx = new MacGLContext; | 120 MacGLContext* ctx = new MacGLContext; |
122 if (!ctx->isValid()) { | 121 if (!ctx->isValid()) { |
123 delete ctx; | 122 delete ctx; |
124 return nullptr; | 123 return nullptr; |
125 } | 124 } |
126 return ctx; | 125 return ctx; |
127 } | 126 } |
128 | 127 |
129 #endif//defined(SK_BUILD_FOR_MAC) | 128 #endif//defined(SK_BUILD_FOR_MAC) |
OLD | NEW |