diff options
Diffstat (limited to 'tools/gpu/gl/egl/CreatePlatformGLTestContext_egl.cpp')
-rw-r--r-- | tools/gpu/gl/egl/CreatePlatformGLTestContext_egl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/gpu/gl/egl/CreatePlatformGLTestContext_egl.cpp b/tools/gpu/gl/egl/CreatePlatformGLTestContext_egl.cpp index 4a09d2202a..03a211d603 100644 --- a/tools/gpu/gl/egl/CreatePlatformGLTestContext_egl.cpp +++ b/tools/gpu/gl/egl/CreatePlatformGLTestContext_egl.cpp @@ -186,8 +186,8 @@ EGLGLTestContext::EGLGLTestContext(GrGLStandard forcedGpuAPI, EGLGLTestContext* continue; } - gl.reset(GrGLCreateNativeInterface()); - if (nullptr == gl.get()) { + gl = GrGLMakeNativeInterface(); + if (!gl) { SkDebugf("Failed to create gl interface.\n"); this->destroyGLContext(); continue; @@ -199,7 +199,7 @@ EGLGLTestContext::EGLGLTestContext(GrGLStandard forcedGpuAPI, EGLGLTestContext* continue; } - this->init(gl.release(), EGLFenceSync::MakeIfSupported(fDisplay)); + this->init(std::move(gl), EGLFenceSync::MakeIfSupported(fDisplay)); break; } } |