aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/SkRGBAToYUV.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/SkRGBAToYUV.cpp')
-rw-r--r--src/utils/SkRGBAToYUV.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/SkRGBAToYUV.cpp b/src/utils/SkRGBAToYUV.cpp
index eebbda4869..63d9152362 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;