Index: src/gpu/gl/GrGLTextureRenderTarget.cpp |
diff --git a/src/gpu/gl/GrGLTextureRenderTarget.cpp b/src/gpu/gl/GrGLTextureRenderTarget.cpp |
index 2ba469a9f2aa86c533afa72a173206ba3f08acf0..9b37fbb343eea97bbf74557f00f7e99f4b195f85 100644 |
--- a/src/gpu/gl/GrGLTextureRenderTarget.cpp |
+++ b/src/gpu/gl/GrGLTextureRenderTarget.cpp |
@@ -44,9 +44,10 @@ bool GrGLTextureRenderTarget::canAttemptStencilAttachment() const { |
return true; |
} |
-GrGLTextureRenderTarget* GrGLTextureRenderTarget::CreateWrapped(GrGLGpu* gpu, |
- const GrSurfaceDesc& desc, |
- const GrGLTexture::IDDesc& texIDDesc, |
- const GrGLRenderTarget::IDDesc& rtIDDesc) { |
- return new GrGLTextureRenderTarget(gpu, desc, texIDDesc, rtIDDesc); |
+sk_sp<GrGLTextureRenderTarget> GrGLTextureRenderTarget::MakeWrapped( |
+ GrGLGpu* gpu, const GrSurfaceDesc& desc, |
+ const GrGLTexture::IDDesc& texIDDesc, const GrGLRenderTarget::IDDesc& rtIDDesc) |
+{ |
+ return sk_sp<GrGLTextureRenderTarget>( |
+ new GrGLTextureRenderTarget(gpu, desc, texIDDesc, rtIDDesc)); |
} |