Index: src/effects/SkLumaColorFilter.cpp |
diff --git a/src/effects/SkLumaColorFilter.cpp b/src/effects/SkLumaColorFilter.cpp |
index 18b2485a30ced845ad912109988cfdbe8458974c..28b2e1eb445b4c3a9c2e2b61fa8ea209133d0219 100644 |
--- a/src/effects/SkLumaColorFilter.cpp |
+++ b/src/effects/SkLumaColorFilter.cpp |
@@ -43,7 +43,9 @@ sk_sp<SkColorFilter> SkLumaColorFilter::Make() { |
SkLumaColorFilter::SkLumaColorFilter() : INHERITED() {} |
-SkFlattenable* SkLumaColorFilter::CreateProc(SkReadBuffer&) { return new SkLumaColorFilter; } |
+sk_sp<SkFlattenable> SkLumaColorFilter::CreateProc(SkReadBuffer&) { |
+ return Make(); |
+} |
void SkLumaColorFilter::flatten(SkWriteBuffer&) const {} |