| Index: src/core/SkPictureData.cpp
|
| diff --git a/src/core/SkPictureData.cpp b/src/core/SkPictureData.cpp
|
| index 896c2e6bf324fcd5f17b9ed9c731fb7736086b6b..0ccb7764c4372da9120e254079dd11e2d48652b1 100644
|
| --- a/src/core/SkPictureData.cpp
|
| +++ b/src/core/SkPictureData.cpp
|
| @@ -48,11 +48,8 @@ SkPictureData::SkPictureData(const SkPictureRecord& record,
|
|
|
| fContentInfo.set(record.fContentInfo);
|
|
|
| - // copy over the refcnt dictionary to our reader
|
| - record.fFlattenableHeap.setupPlaybacks();
|
| -
|
| fBitmaps = record.fBitmapHeap->extractBitmaps();
|
| - fPaints = record.fPaints.unflattenToArray();
|
| + fPaints = SkTRefArray<SkPaint>::Create(record.fPaints.begin(), record.fPaints.count());
|
|
|
| fBitmapHeap.reset(SkSafeRef(record.fBitmapHeap));
|
| fPathHeap.reset(SkSafeRef(record.pathHeap()));
|
|
|