Index: src/core/SkReadBuffer.h |
diff --git a/src/core/SkReadBuffer.h b/src/core/SkReadBuffer.h |
index 575375edede670cbb56d4dd4d63cb2d2a6775755..46f6b818daf5b6149308c697d82cdbc9e6b9a762 100644 |
--- a/src/core/SkReadBuffer.h |
+++ b/src/core/SkReadBuffer.h |
@@ -130,7 +130,9 @@ |
template <typename T> T* readFlattenable() { |
return (T*) this->readFlattenable(T::GetFlattenableType()); |
} |
- SkColorFilter* readColorFilter() { return this->readFlattenable<SkColorFilter>(); } |
+ sk_sp<SkColorFilter> readColorFilter() { |
+ return sk_sp<SkColorFilter>(this->readFlattenable<SkColorFilter>()); |
+ } |
sk_sp<SkDrawLooper> readDrawLooper() { |
return sk_sp<SkDrawLooper>(this->readFlattenable<SkDrawLooper>()); |
} |