aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkImageFilter.cpp
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2014-12-01 06:56:38 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-01 06:56:38 -0800
commit88fd0fbcccea615f2d2cd61a121ac9e3185adfe4 (patch)
treef0b13b3d4de8d110ce75f9f03e6cc18fb9aef744 /src/core/SkImageFilter.cpp
parentbb25e44593ff9c318d9fe1dbb5cf30bc2b89eb76 (diff)
Bump min picture version.
Chrome Stable is M39, which produces picture format v35: https://chromium.googlesource.com/skia/+/chrome/m39/include/core/SkPicture.h We don't need any code to deal with pictures older than v35. (When M40 goes stable, we can step up to v37, the current latest version.) BUG=skia: Review URL: https://codereview.chromium.org/770703002
Diffstat (limited to 'src/core/SkImageFilter.cpp')
-rw-r--r--src/core/SkImageFilter.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/core/SkImageFilter.cpp b/src/core/SkImageFilter.cpp
index 79f04b88ec..297565cd7e 100644
--- a/src/core/SkImageFilter.cpp
+++ b/src/core/SkImageFilter.cpp
@@ -100,11 +100,7 @@ bool SkImageFilter::Common::unflatten(SkReadBuffer& buffer, int expectedCount) {
uint32_t flags = buffer.readUInt();
fCropRect = CropRect(rect, flags);
- if (buffer.isVersionLT(SkReadBuffer::kImageFilterUniqueID_Version)) {
- fUniqueID = next_image_filter_unique_id();
- } else {
- fUniqueID = buffer.readUInt();
- }
+ fUniqueID = buffer.readUInt();
return buffer.isValid();
}