Index: src/effects/SkColorMatrixFilter.cpp |
diff --git a/src/effects/SkColorMatrixFilter.cpp b/src/effects/SkColorMatrixFilter.cpp |
index 82bd45b73ddd759bb0d19ec1bc56f9f4518a6bfa..e122b6ac8e8aef1bed2171dac4173ac7f484c67b 100644 |
--- a/src/effects/SkColorMatrixFilter.cpp |
+++ b/src/effects/SkColorMatrixFilter.cpp |
@@ -16,7 +16,7 @@ |
} |
} |
-sk_sp<SkColorFilter> SkColorMatrixFilter::MakeLightingFilter(SkColor mul, SkColor add) { |
+SkColorFilter* SkColorMatrixFilter::CreateLightingFilter(SkColor mul, SkColor add) { |
SkColorMatrix matrix; |
matrix.setScale(byte_to_scale(SkColorGetR(mul)), |
byte_to_scale(SkColorGetG(mul)), |
@@ -26,5 +26,5 @@ |
SkIntToScalar(SkColorGetG(add)), |
SkIntToScalar(SkColorGetB(add)), |
0); |
- return SkColorFilter::MakeMatrixFilterRowMajor255(matrix.fMat); |
+ return SkColorMatrixFilter::Create(matrix); |
} |