Index: dm/DMWriteTask.h |
diff --git a/dm/DMWriteTask.h b/dm/DMWriteTask.h |
index c2c1d9fd4773641b926dfdce1bf304a7e2c1d652..15e1300af2d2106921e0d0c10eab32e5891a8577 100644 |
--- a/dm/DMWriteTask.h |
+++ b/dm/DMWriteTask.h |
@@ -18,8 +18,9 @@ public: |
WriteTask(const Task& parent, // WriteTask must be a child task. |
SkBitmap bitmap); // Bitmap to encode to PNG and write to disk. |
+ // Takes ownership of SkStreamAsset |
WriteTask(const Task& parent, // WriteTask must be a child task. |
- SkData *data, // Pre-encoded data to write to disk. |
+ SkStreamAsset* data, // Pre-encoded data to write to disk. |
const char* ext); // File extension. |
virtual void draw() SK_OVERRIDE; |
@@ -40,7 +41,7 @@ private: |
SkTArray<SkString> fSuffixes; |
const SkString fGmName; |
const SkBitmap fBitmap; |
- SkAutoTUnref<SkData> fData; |
+ SkAutoTDelete<SkStreamAsset> fData; |
const char* fExtension; |
void makeDirOrFail(SkString dir); |