Index: src/utils/SkRGBAToYUV.cpp |
diff --git a/src/utils/SkRGBAToYUV.cpp b/src/utils/SkRGBAToYUV.cpp |
index eebbda4869e4baa4ce5914f2798c3060548732f1..63d91523620f05b1863526ac931e90d1a423693d 100644 |
--- a/src/utils/SkRGBAToYUV.cpp |
+++ b/src/utils/SkRGBAToYUV.cpp |
@@ -38,7 +38,7 @@ bool SkRGBAToYUV(const SkImage* image, const SkISize sizes[3], void* const plane |
for (int i = 0; i < 3; ++i) { |
size_t rb = rowBytes[i] ? rowBytes[i] : sizes[i].fWidth; |
- SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterDirect( |
+ auto surface(SkSurface::MakeRasterDirect( |
SkImageInfo::MakeA8(sizes[i].fWidth, sizes[i].fHeight), planes[i], rb)); |
if (!surface) { |
return false; |