Index: src/core/SkPathRef.cpp |
diff --git a/src/core/SkPathRef.cpp b/src/core/SkPathRef.cpp |
index 69afcfe1fb5022e3dd03e885badec966e2e4c9eb..b83a4513765d84eba44a644bf65ee0f71939c1cf 100644 |
--- a/src/core/SkPathRef.cpp |
+++ b/src/core/SkPathRef.cpp |
@@ -105,11 +105,7 @@ void SkPathRef::CreateTransformedCopy(SkAutoTUnref<SkPathRef>* dst, |
SkDEBUGCODE((*dst)->validate();) |
} |
-SkPathRef* SkPathRef::CreateFromBuffer(SkRBuffer* buffer |
-#ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V16_AND_ALL_OTHER_INSTANCES_TOO |
- , bool newFormat, int32_t oldPacked |
-#endif |
- ) { |
+SkPathRef* SkPathRef::CreateFromBuffer(SkRBuffer* buffer) { |
SkPathRef* ref = SkNEW(SkPathRef); |
bool isOval; |
uint8_t segmentMask; |
@@ -121,18 +117,8 @@ SkPathRef* SkPathRef::CreateFromBuffer(SkRBuffer* buffer |
} |
ref->fIsFinite = (packed >> kIsFinite_SerializationShift) & 1; |
- |
-#ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V16_AND_ALL_OTHER_INSTANCES_TOO |
- if (newFormat) { |
-#endif |
- segmentMask = (packed >> kSegmentMask_SerializationShift) & 0xF; |
- isOval = (packed >> kIsOval_SerializationShift) & 1; |
-#ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V16_AND_ALL_OTHER_INSTANCES_TOO |
- } else { |
- segmentMask = (oldPacked >> SkPath::kOldSegmentMask_SerializationShift) & 0xF; |
- isOval = (oldPacked >> SkPath::kOldIsOval_SerializationShift) & 1; |
- } |
-#endif |
+ segmentMask = (packed >> kSegmentMask_SerializationShift) & 0xF; |
+ isOval = (packed >> kIsOval_SerializationShift) & 1; |
int32_t verbCount, pointCount, conicCount; |
if (!buffer->readU32(&(ref->fGenerationID)) || |