aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/gpu/gl/null/NullGLTestContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gpu/gl/null/NullGLTestContext.cpp')
-rw-r--r--tools/gpu/gl/null/NullGLTestContext.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/gpu/gl/null/NullGLTestContext.cpp b/tools/gpu/gl/null/NullGLTestContext.cpp
index 9e7279b501..de33a40e08 100644
--- a/tools/gpu/gl/null/NullGLTestContext.cpp
+++ b/tools/gpu/gl/null/NullGLTestContext.cpp
@@ -17,8 +17,10 @@
namespace {
class NullGLContext : public sk_gpu_test::GLTestContext {
public:
- NullGLContext(bool enableNVPR) { this->init(GrGLCreateNullInterface(enableNVPR)); }
- ~NullGLContext() override { this->teardown(); }
+ NullGLContext(bool enableNVPR) {
+ this->init(sk_sp<const GrGLInterface>(GrGLCreateNullInterface(enableNVPR)));
+ }
+ ~NullGLContext() override { this->teardown(); }
private:
void onPlatformMakeCurrent() const override {}