Index: src/effects/SkTableMaskFilter.cpp |
diff --git a/src/effects/SkTableMaskFilter.cpp b/src/effects/SkTableMaskFilter.cpp |
index ddf9f33f54265fef4fdc9a74b6e9e26233998d32..d83465296212fa5ed7c498fb98a3127b35a1653b 100644 |
--- a/src/effects/SkTableMaskFilter.cpp |
+++ b/src/effects/SkTableMaskFilter.cpp |
@@ -73,12 +73,12 @@ void SkTableMaskFilter::flatten(SkWriteBuffer& wb) const { |
wb.writeByteArray(fTable, 256); |
} |
-SkFlattenable* SkTableMaskFilter::CreateProc(SkReadBuffer& buffer) { |
+sk_sp<SkFlattenable> SkTableMaskFilter::CreateProc(SkReadBuffer& buffer) { |
uint8_t table[256]; |
if (!buffer.readByteArray(table, 256)) { |
return nullptr; |
} |
- return Create(table); |
+ return sk_sp<SkFlattenable>(Create(table)); |
} |
/////////////////////////////////////////////////////////////////////////////// |