Index: src/core/SkPicture.cpp |
diff --git a/src/core/SkPicture.cpp b/src/core/SkPicture.cpp |
index 4d4364aec6988d641b17c9d714d7ad65d35e4228..619be8b3ca1a9a8572494a496e74fd3e1eac8e99 100644 |
--- a/src/core/SkPicture.cpp |
+++ b/src/core/SkPicture.cpp |
@@ -456,8 +456,8 @@ SkPicture::SkPicture(const SkRect& cullRect, SkRecord* record, SnapshotArray* dr |
SkBBoxHierarchy* bbh, size_t approxBytesUsedBySubPictures) |
: fUniqueID(0) |
, fCullRect(cullRect) |
- , fRecord(SkRef(record)) |
- , fBBH(SkSafeRef(bbh)) |
+ , fRecord(record) // For performance, we take ownership of the caller's ref. |
+ , fBBH(bbh) // Ditto. |
, fDrawablePicts(drawablePicts) // take ownership |
, fApproxBytesUsedBySubPictures(approxBytesUsedBySubPictures) |
, fAnalysis(*fRecord) |