Index: src/utils/SkRGBAToYUV.cpp |
diff --git a/src/utils/SkRGBAToYUV.cpp b/src/utils/SkRGBAToYUV.cpp |
index b7f78bac14c08cc8110b0ca2935156d77b7ca2a1..eebbda4869e4baa4ce5914f2798c3060548732f1 100644 |
--- a/src/utils/SkRGBAToYUV.cpp |
+++ b/src/utils/SkRGBAToYUV.cpp |
@@ -49,7 +49,7 @@ bool SkRGBAToYUV(const SkImage* image, const SkISize sizes[3], void* const plane |
int rowStartIdx = 5 * i; |
const SkScalar* row = kYUVColorSpaceInvMatrices[colorSpace] + rowStartIdx; |
paint.setColorFilter( |
- SkColorMatrixFilterRowMajor255::CreateSingleChannelOutput(row))->unref(); |
+ SkColorMatrixFilterRowMajor255::MakeSingleChannelOutput(row)); |
surface->getCanvas()->drawImageRect(image, SkIRect::MakeWH(image->width(), image->height()), |
SkRect::MakeIWH(surface->width(), surface->height()), |
&paint); |