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