diff options
Diffstat (limited to 'tools/gpu/gl/debug')
-rw-r--r-- | tools/gpu/gl/debug/DebugGLTestContext.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/gpu/gl/debug/DebugGLTestContext.cpp b/tools/gpu/gl/debug/DebugGLTestContext.cpp index e28a3a7f13..4152997b4d 100644 --- a/tools/gpu/gl/debug/DebugGLTestContext.cpp +++ b/tools/gpu/gl/debug/DebugGLTestContext.cpp @@ -1195,11 +1195,9 @@ const char* DebugInterface::kExtensions[] = { class DebugGLContext : public sk_gpu_test::GLTestContext { public: - DebugGLContext() { - this->init(new DebugInterface()); - } + DebugGLContext() { this->init(sk_make_sp<DebugInterface>()); } - ~DebugGLContext() override { this->teardown(); } + ~DebugGLContext() override { this->teardown(); } private: void onPlatformMakeCurrent() const override {} |