X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2Fskia%2Fsrc%2Fgpu%2Fgl%2Fdebug%2FSkDebugGLContext.cpp;h=c021c7a7a884fb96d55704d9fa1b4fa7f06a78f1;hb=1afa4dd80ef85af7c90efaea6959db1d92330844;hp=8ea546699ca0fd906cc026f8007743bb101906db;hpb=90762837333c13ccf56f2ad88e4481fc71e8d281;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/skia/src/gpu/gl/debug/SkDebugGLContext.cpp b/src/third_party/skia/src/gpu/gl/debug/SkDebugGLContext.cpp index 8ea5466..c021c7a 100644 --- a/src/third_party/skia/src/gpu/gl/debug/SkDebugGLContext.cpp +++ b/src/third_party/skia/src/gpu/gl/debug/SkDebugGLContext.cpp @@ -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); }