Index: src/core/SkSpecialSurface.cpp |
diff --git a/src/core/SkSpecialSurface.cpp b/src/core/SkSpecialSurface.cpp |
index eeefb2afa8897dac48f391c99afc153623d41533..335e206a6af374072762a11b96a6a79fea1f9f93 100644 |
--- a/src/core/SkSpecialSurface.cpp |
+++ b/src/core/SkSpecialSurface.cpp |
@@ -121,9 +121,9 @@ public: |
SkASSERT(fTexture->asRenderTarget()); |
- sk_sp<SkGpuDevice> device(SkGpuDevice::Create(fTexture->asRenderTarget(), width, height, |
- props, |
- SkGpuDevice::kUninit_InitContents)); |
+ sk_sp<SkGpuDevice> device(SkGpuDevice::Make(sk_ref_sp(fTexture->asRenderTarget()), |
+ width, height, props, |
+ SkGpuDevice::kUninit_InitContents)); |
if (!device) { |
return; |
} |