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