Index: src/core/SkRecorder.h |
diff --git a/src/core/SkRecorder.h b/src/core/SkRecorder.h |
index 8efae17c6e3fe440235d0feeaf2230399f696bec..715fc9399ccf52ded97a958111482665595a2716 100644 |
--- a/src/core/SkRecorder.h |
+++ b/src/core/SkRecorder.h |
@@ -48,7 +48,7 @@ public: |
size_t approxBytesUsedBySubPictures() const { return fApproxBytesUsedBySubPictures; } |
SkDrawableList* getDrawableList() const { return fDrawableList.get(); } |
- SkDrawableList* detachDrawableList() { return fDrawableList.release(); } |
+ std::unique_ptr<SkDrawableList> detachDrawableList() { return std::move(fDrawableList); } |
// Make SkRecorder forget entirely about its SkRecord*; all calls to SkRecorder will fail. |
void forgetRecord(); |
@@ -173,7 +173,7 @@ private: |
DrawPictureMode fDrawPictureMode; |
size_t fApproxBytesUsedBySubPictures; |
SkRecord* fRecord; |
- SkAutoTDelete<SkDrawableList> fDrawableList; |
+ std::unique_ptr<SkDrawableList> fDrawableList; |
SkMiniRecorder* fMiniRecorder; |
}; |