| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 * CPU overhead. | 69 * CPU overhead. |
| 70 */ | 70 */ |
| 71 const SK_API GrGLInterface* GrGLCreateNullInterface(); | 71 const SK_API GrGLInterface* GrGLCreateNullInterface(); |
| 72 | 72 |
| 73 /** | 73 /** |
| 74 * Creates a debugging GrGLInterface that doesn't draw anything. Used for | 74 * Creates a debugging GrGLInterface that doesn't draw anything. Used for |
| 75 * finding memory leaks and invalid memory accesses. | 75 * finding memory leaks and invalid memory accesses. |
| 76 */ | 76 */ |
| 77 const GrGLInterface* GrGLCreateDebugInterface(); | 77 const GrGLInterface* GrGLCreateDebugInterface(); |
| 78 | 78 |
| 79 #if GR_GL_PER_GL_FUNC_CALLBACK | |
| 80 typedef void (*GrGLInterfaceCallbackProc)(const GrGLInterface*); | |
| 81 typedef intptr_t GrGLInterfaceCallbackData; | |
| 82 #endif | |
| 83 | |
| 84 /** Function that returns a new interface identical to "interface" but without s
upport for | 79 /** Function that returns a new interface identical to "interface" but without s
upport for |
| 85 GL_NV_path_rendering. */ | 80 GL_NV_path_rendering. */ |
| 86 const GrGLInterface* GrGLInterfaceRemoveNVPR(const GrGLInterface*); | 81 const GrGLInterface* GrGLInterfaceRemoveNVPR(const GrGLInterface*); |
| 87 | 82 |
| 88 /** Function that returns a new interface identical to "interface" but with supp
ort for | 83 /** Function that returns a new interface identical to "interface" but with supp
ort for |
| 89 test version of GL_EXT_debug_marker. */ | 84 test version of GL_EXT_debug_marker. */ |
| 90 const GrGLInterface* GrGLInterfaceAddTestDebugMarker(const GrGLInterface*, | 85 const GrGLInterface* GrGLInterfaceAddTestDebugMarker(const GrGLInterface*, |
| 91 GrGLInsertEventMarkerProc i
nsertEventMarkerFn, | 86 GrGLInsertEventMarkerProc i
nsertEventMarkerFn, |
| 92 GrGLPushGroupMarkerProc pus
hGroupMarkerFn, | 87 GrGLPushGroupMarkerProc pus
hGroupMarkerFn, |
| 93 GrGLPopGroupMarkerProc popG
roupMarkerFn); | 88 GrGLPopGroupMarkerProc popG
roupMarkerFn); |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 GrGLFunction<GrGLGetDebugMessageLogProc> fGetDebugMessageLog; | 480 GrGLFunction<GrGLGetDebugMessageLogProc> fGetDebugMessageLog; |
| 486 GrGLFunction<GrGLPushDebugGroupProc> fPushDebugGroup; | 481 GrGLFunction<GrGLPushDebugGroupProc> fPushDebugGroup; |
| 487 GrGLFunction<GrGLPopDebugGroupProc> fPopDebugGroup; | 482 GrGLFunction<GrGLPopDebugGroupProc> fPopDebugGroup; |
| 488 GrGLFunction<GrGLObjectLabelProc> fObjectLabel; | 483 GrGLFunction<GrGLObjectLabelProc> fObjectLabel; |
| 489 | 484 |
| 490 /* EGL functions */ | 485 /* EGL functions */ |
| 491 GrGLFunction<GrEGLCreateImageProc> fEGLCreateImage; | 486 GrGLFunction<GrEGLCreateImageProc> fEGLCreateImage; |
| 492 GrGLFunction<GrEGLDestroyImageProc> fEGLDestroyImage; | 487 GrGLFunction<GrEGLDestroyImageProc> fEGLDestroyImage; |
| 493 } fFunctions; | 488 } fFunctions; |
| 494 | 489 |
| 495 // Per-GL func callback | |
| 496 #if GR_GL_PER_GL_FUNC_CALLBACK | |
| 497 GrGLInterfaceCallbackProc fCallback; | |
| 498 GrGLInterfaceCallbackData fCallbackData; | |
| 499 #endif | |
| 500 | |
| 501 // This exists for internal testing. | 490 // This exists for internal testing. |
| 502 virtual void abandon() const {} | 491 virtual void abandon() const {} |
| 503 }; | 492 }; |
| 504 | 493 |
| 505 #endif | 494 #endif |
| OLD | NEW |