Index: dm/DMPDFRasterizeTask.h |
diff --git a/dm/DMPDFRasterizeTask.h b/dm/DMPDFRasterizeTask.h |
index 2cc1ef70dabdbe4a877544b7ac31df4f0e1c512c..72319503c79debab937f888108e239dda1aaee0d 100644 |
--- a/dm/DMPDFRasterizeTask.h |
+++ b/dm/DMPDFRasterizeTask.h |
@@ -21,8 +21,9 @@ typedef bool (*RasterizePdfProc)(SkStream* pdf, SkBitmap* output); |
class PDFRasterizeTask : public CpuTask { |
public: |
+ // takes ownership of SkStreamAsset. |
PDFRasterizeTask(const Task& parent, |
- SkData* pdf, |
+ SkStreamAsset* pdf, |
RasterizePdfProc); |
virtual void draw() SK_OVERRIDE; |
@@ -31,7 +32,7 @@ public: |
private: |
const SkString fName; |
- SkAutoTUnref<SkData> fPdf; |
+ SkAutoTDelete<SkStreamAsset> fPdf; |
RasterizePdfProc fRasterize; |
}; |