Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: src/core/SkPicture.cpp

Issue 14741007: Revert "Allow supporting 1 older PICTURE_VERSION." (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkOrderedReadBuffer.cpp ('k') | src/core/SkPicturePlayback.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « src/core/SkOrderedReadBuffer.cpp ('k') | src/core/SkPicturePlayback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698