Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index b9c2f7ceca9f21e14b6f76f832c9a3711000f8c6..fd03acc24012dc6a2a50e58778c645749a080d59 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -196,7 +196,7 @@ SkGpuDevice::SkGpuDevice(GrRenderTarget* rt, int width, int height, |
fLegacyBitmap.setInfo(info); |
fLegacyBitmap.setPixelRef(pr)->unref(); |
- fDrawContext.reset(SkRef(fContext->drawContext(&this->surfaceProps()))); |
+ fDrawContext.reset(fContext->drawContext(&this->surfaceProps())); |
} |
GrRenderTarget* SkGpuDevice::CreateRenderTarget(GrContext* context, SkSurface::Budgeted budgeted, |
@@ -373,7 +373,7 @@ void SkGpuDevice::replaceRenderTarget(bool shouldRetainContent) { |
SkPixelRef* pr = new SkGrPixelRef(fLegacyBitmap.info(), fRenderTarget); |
fLegacyBitmap.setPixelRef(pr)->unref(); |
- fDrawContext.reset(SkRef(fRenderTarget->getContext()->drawContext(&this->surfaceProps()))); |
+ fDrawContext.reset(fRenderTarget->getContext()->drawContext(&this->surfaceProps())); |
} |
/////////////////////////////////////////////////////////////////////////////// |