| Index: src/core/SkPictureRecord.cpp
|
| diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp
|
| index 36b0763e9ff128bb3adb7acd9b345b5bf0e3749f..0c59b13b8699fbbfa48f3730f9f29c8c780daaff 100644
|
| --- a/src/core/SkPictureRecord.cpp
|
| +++ b/src/core/SkPictureRecord.cpp
|
| @@ -1411,7 +1411,7 @@ void SkPictureRecord::onDrawTextOnPath(const void* text, size_t byteLength, cons
|
| this->validate(initialOffset, size);
|
| }
|
|
|
| -void SkPictureRecord::drawPicture(SkPicture& picture) {
|
| +void SkPictureRecord::onDrawPicture(const SkPicture* picture) {
|
|
|
| #ifdef SK_COLLAPSE_MATRIX_CLIP_STATE
|
| fMCMgr.call(SkMatrixClipStateMgr::kOther_CallType);
|
| @@ -1618,12 +1618,12 @@ void SkPictureRecord::addPath(const SkPath& path) {
|
| this->addInt(this->addPathToHeap(path));
|
| }
|
|
|
| -void SkPictureRecord::addPicture(SkPicture& picture) {
|
| - int index = fPictureRefs.find(&picture);
|
| +void SkPictureRecord::addPicture(const SkPicture* picture) {
|
| + int index = fPictureRefs.find(picture);
|
| if (index < 0) { // not found
|
| index = fPictureRefs.count();
|
| - *fPictureRefs.append() = &picture;
|
| - picture.ref();
|
| + *fPictureRefs.append() = picture;
|
| + picture->ref();
|
| }
|
| // follow the convention of recording a 1-based index
|
| this->addInt(index + 1);
|
|
|