Index: src/core/SkPictureRecorder.cpp |
diff --git a/src/core/SkPictureRecorder.cpp b/src/core/SkPictureRecorder.cpp |
index aea9e389da14b2a4993a54b5609da4f69443fd90..edee07b0e358b18c9f24261a14b7b22bf1b5bb26 100644 |
--- a/src/core/SkPictureRecorder.cpp |
+++ b/src/core/SkPictureRecorder.cpp |
@@ -61,9 +61,10 @@ SkPicture* SkPictureRecorder::endRecording() { |
// TODO: we should remember these from our caller |
SkBBHFactory* factory = NULL; |
uint32_t recordFlags = 0; |
- SkAutoDataUnref drawablePicts(fRecorder->newDrawableSnapshot(factory, recordFlags)); |
+ SkAutoTUnref<SkPicture::SnapshotArray> drawablePicts( |
+ fRecorder->newDrawableSnapshot(factory, recordFlags)); |
SkPicture* pict = SkNEW_ARGS(SkPicture, (fCullRect, fRecord.detach(), |
- drawablePicts, fBBH.get())); |
+ drawablePicts.detach(), fBBH.get())); |
if (saveLayerData) { |
pict->EXPERIMENTAL_addAccelData(saveLayerData); |