From 9ec70c6bd3dfe6338fbbae9c0447a5cbae770a75 Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Thu, 12 Jul 2018 13:30:47 -0400 Subject: Remove SkSafeSetNull. Update all users to sk_sp. Change-Id: I6453b9456b9a8f9e2b756381797f1382ef9e6561 Reviewed-on: https://skia-review.googlesource.com/141052 Commit-Queue: Ben Wagner Reviewed-by: Herb Derby --- tools/gpu/gl/win/CreatePlatformGLTestContext_win.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/gpu') diff --git a/tools/gpu/gl/win/CreatePlatformGLTestContext_win.cpp b/tools/gpu/gl/win/CreatePlatformGLTestContext_win.cpp index 669d6d0182..c09f0b3258 100644 --- a/tools/gpu/gl/win/CreatePlatformGLTestContext_win.cpp +++ b/tools/gpu/gl/win/CreatePlatformGLTestContext_win.cpp @@ -39,7 +39,7 @@ private: HDC fDeviceContext; HGLRC fGlRenderContext; static ATOM gWC; - SkWGLPbufferContext* fPbufferContext; + sk_sp fPbufferContext; }; ATOM WinGLTestContext::gWC = 0; @@ -148,7 +148,7 @@ WinGLTestContext::~WinGLTestContext() { } void WinGLTestContext::destroyGLContext() { - SkSafeSetNull(fPbufferContext); + fPbufferContext = nullptr; if (fGlRenderContext) { // This deletes the context immediately even if it is current. wglDeleteContext(fGlRenderContext); -- cgit v1.2.3