| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 #endif | 49 #endif |
| 50 | 50 |
| 51 #if SK_ANGLE | 51 #if SK_ANGLE |
| 52 /** | 52 /** |
| 53 * Creates a GrGLInterface for an ANGLE context. | 53 * Creates a GrGLInterface for an ANGLE context. |
| 54 */ | 54 */ |
| 55 const GrGLInterface* GrGLCreateANGLEInterface(); | 55 const GrGLInterface* GrGLCreateANGLEInterface(); |
| 56 #endif | 56 #endif |
| 57 | 57 |
| 58 /** | 58 /** |
| 59 * Creates a null GrGLInterface that doesn't draw anything. Used for measuring | |
| 60 * CPU overhead. | |
| 61 */ | |
| 62 const SK_API GrGLInterface* GrGLCreateNullInterface(); | |
| 63 | |
| 64 /** | |
| 65 * Creates a debugging GrGLInterface that doesn't draw anything. Used for | 59 * Creates a debugging GrGLInterface that doesn't draw anything. Used for |
| 66 * finding memory leaks and invalid memory accesses. | 60 * finding memory leaks and invalid memory accesses. |
| 67 */ | 61 */ |
| 68 const GrGLInterface* GrGLCreateDebugInterface(); | 62 const GrGLInterface* GrGLCreateDebugInterface(); |
| 69 | 63 |
| 70 #if GR_GL_PER_GL_FUNC_CALLBACK | 64 #if GR_GL_PER_GL_FUNC_CALLBACK |
| 71 typedef void (*GrGLInterfaceCallbackProc)(const GrGLInterface*); | 65 typedef void (*GrGLInterfaceCallbackProc)(const GrGLInterface*); |
| 72 typedef intptr_t GrGLInterfaceCallbackData; | 66 typedef intptr_t GrGLInterfaceCallbackData; |
| 73 #endif | 67 #endif |
| 74 | 68 |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 #if GR_GL_PER_GL_FUNC_CALLBACK | 348 #if GR_GL_PER_GL_FUNC_CALLBACK |
| 355 GrGLInterfaceCallbackProc fCallback; | 349 GrGLInterfaceCallbackProc fCallback; |
| 356 GrGLInterfaceCallbackData fCallbackData; | 350 GrGLInterfaceCallbackData fCallbackData; |
| 357 #endif | 351 #endif |
| 358 | 352 |
| 359 // This exists for internal testing. | 353 // This exists for internal testing. |
| 360 virtual void abandon() const {} | 354 virtual void abandon() const {} |
| 361 }; | 355 }; |
| 362 | 356 |
| 363 #endif | 357 #endif |
| OLD | NEW |