| Index: src/core/SkPicture.cpp
|
| diff --git a/src/core/SkPicture.cpp b/src/core/SkPicture.cpp
|
| index 39d0653a1b5ac3528e10d14fafda891a047e4299..1ff58656512681ed5ac056d1399f9558c33f0c91 100644
|
| --- a/src/core/SkPicture.cpp
|
| +++ b/src/core/SkPicture.cpp
|
| @@ -6,7 +6,7 @@
|
| * found in the LICENSE file.
|
| */
|
|
|
| -#include "SkErrorInternals.h"
|
| +
|
| #include "SkPictureFlat.h"
|
| #include "SkPicturePlayback.h"
|
| #include "SkPictureRecord.h"
|
| @@ -283,13 +283,9 @@ void SkPicture::initFromStream(SkStream* stream, bool* success, InstallPixelRefP
|
| SkPictInfo info;
|
|
|
| if (!stream->read(&info, sizeof(info))) {
|
| - SkErrorInternals::SetError(kParseError_SkError, "Failed to parse skp info.");
|
| return;
|
| }
|
| -
|
| - if (info.fVersion < 10 || info.fVersion > PICTURE_VERSION) {
|
| - SkErrorInternals::SetError(kParseError_SkError, "skp version %d not supported.",
|
| - info.fVersion);
|
| + if (PICTURE_VERSION != info.fVersion) {
|
| return;
|
| }
|
|
|
|
|