OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * 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 |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef GrGLInterface_DEFINED | 8 #ifndef GrGLInterface_DEFINED |
9 #define GrGLInterface_DEFINED | 9 #define GrGLInterface_DEFINED |
10 | 10 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 /** | 77 /** |
78 * Creates a GrGLInterface for an ANGLE context. | 78 * Creates a GrGLInterface for an ANGLE context. |
79 */ | 79 */ |
80 const GrGLInterface* GrGLCreateANGLEInterface(); | 80 const GrGLInterface* GrGLCreateANGLEInterface(); |
81 #endif | 81 #endif |
82 | 82 |
83 /** | 83 /** |
84 * Creates a null GrGLInterface that doesn't draw anything. Used for measuring | 84 * Creates a null GrGLInterface that doesn't draw anything. Used for measuring |
85 * CPU overhead. | 85 * CPU overhead. |
86 */ | 86 */ |
87 const GrGLInterface* GrGLCreateNullInterface(); | 87 const SK_API GrGLInterface* GrGLCreateNullInterface(); |
88 | 88 |
89 /** | 89 /** |
90 * Creates a debugging GrGLInterface that doesn't draw anything. Used for | 90 * Creates a debugging GrGLInterface that doesn't draw anything. Used for |
91 * finding memory leaks and invalid memory accesses. | 91 * finding memory leaks and invalid memory accesses. |
92 */ | 92 */ |
93 const GrGLInterface* GrGLCreateDebugInterface(); | 93 const GrGLInterface* GrGLCreateDebugInterface(); |
94 | 94 |
95 #if GR_GL_PER_GL_FUNC_CALLBACK | 95 #if GR_GL_PER_GL_FUNC_CALLBACK |
96 typedef void (*GrGLInterfaceCallbackProc)(const GrGLInterface*); | 96 typedef void (*GrGLInterfaceCallbackProc)(const GrGLInterface*); |
97 typedef intptr_t GrGLInterfaceCallbackData; | 97 typedef intptr_t GrGLInterfaceCallbackData; |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 | 354 |
355 // Per-GL func callback | 355 // Per-GL func callback |
356 #if GR_GL_PER_GL_FUNC_CALLBACK | 356 #if GR_GL_PER_GL_FUNC_CALLBACK |
357 GrGLInterfaceCallbackProc fCallback; | 357 GrGLInterfaceCallbackProc fCallback; |
358 GrGLInterfaceCallbackData fCallbackData; | 358 GrGLInterfaceCallbackData fCallbackData; |
359 #endif | 359 #endif |
360 | 360 |
361 }; | 361 }; |
362 | 362 |
363 #endif | 363 #endif |
OLD | NEW |