Chromium Code Reviews| Index: src/core/SkValidatingReadBuffer.cpp |
| diff --git a/src/core/SkValidatingReadBuffer.cpp b/src/core/SkValidatingReadBuffer.cpp |
| index 0112f18ec44d5b922d9a0e4455e6975b371577df..96f20a24833b7e23b7e34d54aa58fa28f45a848d 100644 |
| --- a/src/core/SkValidatingReadBuffer.cpp |
| +++ b/src/core/SkValidatingReadBuffer.cpp |
| @@ -273,3 +273,15 @@ SkFlattenable* SkValidatingReadBuffer::readFlattenable(SkFlattenable::Type type) |
| } |
| return obj; |
| } |
| + |
| +void SkValidatingReadBuffer::skipFlattenable() { |
| + SkString name; |
| + this->readString(&name); |
| + if (fError) { |
| + return; |
| + } |
| + uint32_t sizeRecorded = this->readUInt(); |
|
scroggo
2014/05/15 17:18:13
There are a couple of cases where readFlattenable
reed1
2014/05/16 12:26:56
1. Some of those tests involve knowing the type (e
|
| + this->skip(sizeRecorded); |
| +} |
| + |
| + |