Index: src/core/SkReadBuffer.h |
diff --git a/src/core/SkReadBuffer.h b/src/core/SkReadBuffer.h |
index cd570e18f3b79cb6af420ce0d4808af918d22f7f..7b12194fc03558a70dba98c2b36c4aae2bcf3bbe 100644 |
--- a/src/core/SkReadBuffer.h |
+++ b/src/core/SkReadBuffer.h |
@@ -126,9 +126,9 @@ |
virtual void readPath(SkPath* path); |
void readPaint(SkPaint* paint) { paint->unflatten(*this); } |
- virtual SkFlattenable* readFlattenable(); |
+ virtual SkFlattenable* readFlattenable(SkFlattenable::Type); |
template <typename T> sk_sp<T> readFlattenable() { |
- return sk_sp<T>((T*)this->readFlattenable()); |
+ return sk_sp<T>((T*)this->readFlattenable(T::GetFlattenableType())); |
} |
sk_sp<SkColorFilter> readColorFilter() { return this->readFlattenable<SkColorFilter>(); } |
sk_sp<SkDrawLooper> readDrawLooper() { return this->readFlattenable<SkDrawLooper>(); } |