Index: src/core/SkPaint.cpp |
diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp |
index 7ac2f076b1fafb7f62f2e4c43537e6a9b2de3f60..f3bf01bfafc5ca30e0507190a8ffee37f8a5efaa 100644 |
--- a/src/core/SkPaint.cpp |
+++ b/src/core/SkPaint.cpp |
@@ -1,4 +1,3 @@ |
- |
/* |
* Copyright 2006 The Android Open Source Project |
* |
@@ -2182,9 +2181,8 @@ void SkPaint::unflatten(SkReadBuffer& buffer) { |
this->setStrokeMiter(read_scalar(pod)); |
this->setColor(*pod++); |
- const int picVer = buffer.pictureVersion(); |
unsigned flatFlags = 0; |
- if (picVer > 0 && picVer <= 22) { |
+ if (buffer.isVersionLT(SkReadBuffer::kFilterLevelIsEnum_Version)) { |
flatFlags = unpack_paint_flags_v22(this, *pod++); |
} else { |
flatFlags = unpack_paint_flags(this, *pod++); |