Index: gm/coloremoji.cpp |
diff --git a/gm/coloremoji.cpp b/gm/coloremoji.cpp |
index 4be8202d1932fc3bf7c82444bef21a752db6e943..78c347c079655442cafa65903fd6656fb24b5773 100644 |
--- a/gm/coloremoji.cpp |
+++ b/gm/coloremoji.cpp |
@@ -34,8 +34,8 @@ |
matrix[1] = matrix[6] = matrix[11] = 0.7152f; |
matrix[2] = matrix[7] = matrix[12] = 0.0722f; |
matrix[18] = 1.0f; |
- auto filter(SkColorFilter::MakeMatrixFilterRowMajor255(matrix)); |
- return SkColorFilterImageFilter::Create(filter.get(), input); |
+ SkAutoTUnref<SkColorFilter> filter(SkColorMatrixFilter::Create(matrix)); |
+ return SkColorFilterImageFilter::Create(filter, input); |
} |
static SkImageFilter* make_blur(float amount, SkImageFilter* input = nullptr) { |