Index: gm/imagetoyuvplanes.cpp |
diff --git a/gm/imagetoyuvplanes.cpp b/gm/imagetoyuvplanes.cpp |
index ddead1be42cea4b242f3fd41be2e15569eed1017..63d3fa92dafe8cfe1051e2757c9d9000197e19ad 100644 |
--- a/gm/imagetoyuvplanes.cpp |
+++ b/gm/imagetoyuvplanes.cpp |
@@ -13,12 +13,12 @@ |
#include "SkImage.h" |
static sk_sp<SkImage> create_image(GrContext* context, int width, int height) { |
- SkAutoTUnref<SkSurface> surface; |
+ sk_sp<SkSurface> surface; |
SkImageInfo info = SkImageInfo::MakeN32Premul(width, height); |
if (context) { |
- surface.reset(SkSurface::NewRenderTarget(context, SkBudgeted::kYes, info, 0)); |
+ surface = SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, info); |
} else { |
- surface.reset(SkSurface::NewRaster(info)); |
+ surface = SkSurface::MakeRaster(info); |
} |
if (!surface) { |
return nullptr; |