Chromium Code Reviews| Index: src/core/SkPictureData.cpp |
| diff --git a/src/core/SkPictureData.cpp b/src/core/SkPictureData.cpp |
| index 9ed98cf4ff9e0ccc1f33c9760a1feab57312cda1..df636c02eb9594cac4e6caa26cbb4101214b4002 100644 |
| --- a/src/core/SkPictureData.cpp |
| +++ b/src/core/SkPictureData.cpp |
| @@ -46,7 +46,11 @@ SkPictureData::SkPictureData(const SkPictureRecord& record, |
| fBitmaps = record.fBitmaps; |
| fPaints = record.fPaints; |
| - fPaths = record.fPaths; |
| + |
| + fPaths.reset(record.fPaths.count() + 1); // 0 is reserved. |
|
mtklein
2015/10/29 14:15:29
Oops, note to self, remove this. 0's not reserved
|
| + record.fPaths.foreach([this](const SkPath& path, int n) { |
| + fPaths[n] = path; |
| + }); |
| this->initForPlayback(); |