Index: src/gpu/GrLayerHoister.cpp |
diff --git a/src/gpu/GrLayerHoister.cpp b/src/gpu/GrLayerHoister.cpp |
index 5638d8a6b23da7993d8cb934db14a5708a34cf63..f1a51a8feef3d5707b4cc05e38dd368636e978b6 100644 |
--- a/src/gpu/GrLayerHoister.cpp |
+++ b/src/gpu/GrLayerHoister.cpp |
@@ -232,7 +232,7 @@ void GrLayerHoister::DrawLayersToAtlas(GrContext* context, |
if (atlased.count() > 0) { |
// All the atlased layers are rendered into the same GrTexture |
SkSurfaceProps props(0, kUnknown_SkPixelGeometry); |
- SkAutoTUnref<SkSurface> surface(SkSurface::NewRenderTargetDirect( |
+ auto surface(SkSurface::MakeRenderTargetDirect( |
atlased[0].fLayer->texture()->asRenderTarget(), &props)); |
SkCanvas* atlasCanvas = surface->getCanvas(); |
@@ -334,7 +334,7 @@ void GrLayerHoister::DrawLayers(GrContext* context, const SkTDArray<GrHoistedLay |
// Each non-atlased layer has its own GrTexture |
SkSurfaceProps props(0, kUnknown_SkPixelGeometry); |
- SkAutoTUnref<SkSurface> surface(SkSurface::NewRenderTargetDirect( |
+ auto surface(SkSurface::MakeRenderTargetDirect( |
layer->texture()->asRenderTarget(), &props)); |
SkCanvas* layerCanvas = surface->getCanvas(); |