Index: src/effects/SkEmbossMaskFilter.cpp |
diff --git a/src/effects/SkEmbossMaskFilter.cpp b/src/effects/SkEmbossMaskFilter.cpp |
index aacc191ff7ddfb6645683b047de904589c0cb9d7..aa93e5a5942b9b6f77d27d9a7589c6661d582f17 100644 |
--- a/src/effects/SkEmbossMaskFilter.cpp |
+++ b/src/effects/SkEmbossMaskFilter.cpp |
@@ -112,12 +112,12 @@ bool SkEmbossMaskFilter::filterMask(SkMask* dst, const SkMask& src, |
return true; |
} |
-SkFlattenable* SkEmbossMaskFilter::CreateProc(SkReadBuffer& buffer) { |
+sk_sp<SkFlattenable> SkEmbossMaskFilter::CreateProc(SkReadBuffer& buffer) { |
Light light; |
if (buffer.readByteArray(&light, sizeof(Light))) { |
light.fPad = 0; // for the font-cache lookup to be clean |
const SkScalar sigma = buffer.readScalar(); |
- return Create(sigma, light); |
+ return sk_sp<SkFlattenable>(Create(sigma, light)); |
} |
return nullptr; |
} |