Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / skia / src / gpu / gl / debug / SkDebugGLContext.cpp
index 8ea5466..c021c7a 100644 (file)
@@ -8,10 +8,10 @@
 
 #include "gl/SkDebugGLContext.h"
 
-const GrGLInterface* SkDebugGLContext::createGLContext(GrGLStandard forcedGpuAPI) {
-    if (kGLES_GrGLStandard == forcedGpuAPI) {
-        return NULL;
-    }
+SkDebugGLContext::SkDebugGLContext() {
+    fGL.reset(GrGLCreateDebugInterface());
+}
 
-    return GrGLCreateDebugInterface();
+SkDebugGLContext::~SkDebugGLContext() {
+    fGL.reset(NULL);
 }