diff options
Diffstat (limited to 'src/core/SkPictureData.cpp')
-rw-r--r-- | src/core/SkPictureData.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/SkPictureData.cpp b/src/core/SkPictureData.cpp index 896c2e6bf3..0ccb7764c4 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())); |