aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLInterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/gl/GrGLInterface.cpp')
-rw-r--r--src/gpu/gl/GrGLInterface.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/gpu/gl/GrGLInterface.cpp b/src/gpu/gl/GrGLInterface.cpp
index 8ce8af7098..2e7924d786 100644
--- a/src/gpu/gl/GrGLInterface.cpp
+++ b/src/gpu/gl/GrGLInterface.cpp
@@ -12,37 +12,10 @@
#include <stdio.h>
-const GrGLInterface* GrGLInterfaceAddTestDebugMarker(const GrGLInterface* interface,
- GrGLInsertEventMarkerProc insertEventMarkerFn,
- GrGLPushGroupMarkerProc pushGroupMarkerFn,
- GrGLPopGroupMarkerProc popGroupMarkerFn) {
- GrGLInterface* newInterface = GrGLInterface::NewClone(interface);
-
- if (!newInterface->fExtensions.has("GL_EXT_debug_marker")) {
- newInterface->fExtensions.add("GL_EXT_debug_marker");
- }
-
- newInterface->fFunctions.fInsertEventMarker = insertEventMarkerFn;
- newInterface->fFunctions.fPushGroupMarker = pushGroupMarkerFn;
- newInterface->fFunctions.fPopGroupMarker = popGroupMarkerFn;
-
- return newInterface;
-}
-
GrGLInterface::GrGLInterface() {
fStandard = kNone_GrGLStandard;
}
-GrGLInterface* GrGLInterface::NewClone(const GrGLInterface* interface) {
- SkASSERT(interface);
-
- GrGLInterface* clone = new GrGLInterface;
- clone->fStandard = interface->fStandard;
- clone->fExtensions = interface->fExtensions;
- clone->fFunctions = interface->fFunctions;
- return clone;
-}
-
#ifdef SK_DEBUG
static int kIsDebug = 1;
#else