| Index: src/core/SkPathRef.cpp
|
| ===================================================================
|
| --- src/core/SkPathRef.cpp (revision 12392)
|
| +++ src/core/SkPathRef.cpp (working copy)
|
| @@ -103,28 +103,17 @@
|
| SkDEBUGCODE((*dst)->validate();)
|
| }
|
|
|
| -SkPathRef* SkPathRef::CreateFromBuffer(SkRBuffer* buffer
|
| -#ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V14_AND_ALL_OTHER_INSTANCES_TOO
|
| - , bool newFormat, int32_t oldPacked
|
| -#endif
|
| - ) {
|
| +SkPathRef* SkPathRef::CreateFromBuffer(SkRBuffer* buffer) {
|
| SkPathRef* ref = SkNEW(SkPathRef);
|
| -#ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V14_AND_ALL_OTHER_INSTANCES_TOO
|
| - if (newFormat) {
|
| -#endif
|
| - int32_t packed;
|
| - if (!buffer->readS32(&packed)) {
|
| - SkDELETE(ref);
|
| - return NULL;
|
| - }
|
|
|
| - ref->fIsFinite = (packed >> kIsFinite_SerializationShift) & 1;
|
| -#ifndef DELETE_THIS_CODE_WHEN_SKPS_ARE_REBUILT_AT_V14_AND_ALL_OTHER_INSTANCES_TOO
|
| - } else {
|
| - ref->fIsFinite = (oldPacked >> SkPath::kOldIsFinite_SerializationShift) & 1;
|
| + int32_t packed;
|
| + if (!buffer->readS32(&packed)) {
|
| + SkDELETE(ref);
|
| + return NULL;
|
| }
|
| -#endif
|
|
|
| + ref->fIsFinite = (packed >> kIsFinite_SerializationShift) & 1;
|
| +
|
| int32_t verbCount, pointCount, conicCount;
|
| if (!buffer->readU32(&(ref->fGenerationID)) ||
|
| !buffer->readS32(&verbCount) ||
|
|
|