Index: gm/image_pict.cpp |
diff --git a/gm/image_pict.cpp b/gm/image_pict.cpp |
index b5eb522dfa665d322fc108993ac5b46b08e4ef02..32092213dc1593a01a1f906079f89a3a669bdf5d 100644 |
--- a/gm/image_pict.cpp |
+++ b/gm/image_pict.cpp |
@@ -211,8 +211,7 @@ public: |
: SkImageGenerator(info) |
, fCtx(SkRef(ctx)) |
{ |
- SkAutoTUnref<SkSurface> surface(SkSurface::NewRenderTarget(ctx, SkBudgeted::kNo, |
- info, 0)); |
+ auto surface(SkSurface::MakeRenderTarget(ctx, SkBudgeted::kNo, info)); |
surface->getCanvas()->clear(0); |
surface->getCanvas()->translate(-100, -100); |
surface->getCanvas()->drawPicture(pic); |