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 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 const GLProcGetter* getter = (const GLProcGetter*) ctx; | 52 const GLProcGetter* getter = (const GLProcGetter*) ctx; |
54 return getter->getProc(name); | 53 return getter->getProc(name); |
55 } | 54 } |
56 | 55 |
57 const GrGLInterface* GrGLCreateNativeInterface() { | 56 const GrGLInterface* GrGLCreateNativeInterface() { |
58 GLProcGetter getter; | 57 GLProcGetter getter; |
59 return GrGLAssembleGLInterface(&getter, mac_get_gl_proc); | 58 return GrGLAssembleGLInterface(&getter, mac_get_gl_proc); |
60 } | 59 } |
61 | 60 |
62 #endif//defined(SK_BUILD_FOR_MAC) | 61 #endif//defined(SK_BUILD_FOR_MAC) |
OLD | NEW |