| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #if GR_GL_PER_GL_FUNC_CALLBACK | 46 #if GR_GL_PER_GL_FUNC_CALLBACK |
| 47 typedef void (*GrGLInterfaceCallbackProc)(const GrGLInterface*); | 47 typedef void (*GrGLInterfaceCallbackProc)(const GrGLInterface*); |
| 48 typedef intptr_t GrGLInterfaceCallbackData; | 48 typedef intptr_t GrGLInterfaceCallbackData; |
| 49 #endif | 49 #endif |
| 50 | 50 |
| 51 /** | 51 /** |
| 52 * Creates a null GrGLInterface that doesn't draw anything. Used for measuring | 52 * Creates a null GrGLInterface that doesn't draw anything. Used for measuring |
| 53 * CPU overhead. TODO: We would like to move this to tools/gpu/gl/null but curre
ntly | 53 * CPU overhead. TODO: We would like to move this to tools/gpu/gl/null but curre
ntly |
| 54 * Chromium is using it in its unit tests. | 54 * Chromium is using it in its unit tests. |
| 55 */ | 55 */ |
| 56 const SK_API GrGLInterface* GrGLCreateNullInterface(); | 56 const SK_API GrGLInterface* GrGLCreateNullInterface(bool enableNVPR = false); |
| 57 | 57 |
| 58 /** Function that returns a new interface identical to "interface" but without s
upport for | 58 /** Function that returns a new interface identical to "interface" but without s
upport for |
| 59 GL_NV_path_rendering. */ | 59 GL_NV_path_rendering. */ |
| 60 const GrGLInterface* GrGLInterfaceRemoveNVPR(const GrGLInterface*); | 60 const GrGLInterface* GrGLInterfaceRemoveNVPR(const GrGLInterface*); |
| 61 | 61 |
| 62 /** Function that returns a new interface identical to "interface" but with supp
ort for | 62 /** Function that returns a new interface identical to "interface" but with supp
ort for |
| 63 test version of GL_EXT_debug_marker. */ | 63 test version of GL_EXT_debug_marker. */ |
| 64 const GrGLInterface* GrGLInterfaceAddTestDebugMarker(const GrGLInterface*, | 64 const GrGLInterface* GrGLInterfaceAddTestDebugMarker(const GrGLInterface*, |
| 65 GrGLInsertEventMarkerProc i
nsertEventMarkerFn, | 65 GrGLInsertEventMarkerProc i
nsertEventMarkerFn, |
| 66 GrGLPushGroupMarkerProc pus
hGroupMarkerFn, | 66 GrGLPushGroupMarkerProc pus
hGroupMarkerFn, |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 /* EGL functions */ | 465 /* EGL functions */ |
| 466 GrGLFunction<GrEGLCreateImageProc> fEGLCreateImage; | 466 GrGLFunction<GrEGLCreateImageProc> fEGLCreateImage; |
| 467 GrGLFunction<GrEGLDestroyImageProc> fEGLDestroyImage; | 467 GrGLFunction<GrEGLDestroyImageProc> fEGLDestroyImage; |
| 468 } fFunctions; | 468 } fFunctions; |
| 469 | 469 |
| 470 // This exists for internal testing. | 470 // This exists for internal testing. |
| 471 virtual void abandon() const {} | 471 virtual void abandon() const {} |
| 472 }; | 472 }; |
| 473 | 473 |
| 474 #endif | 474 #endif |
| OLD | NEW |