Index: src/pdf/SkPDFPage.cpp |
diff --git a/src/pdf/SkPDFPage.cpp b/src/pdf/SkPDFPage.cpp |
index cfb6790876f1bba7ce5839c78e2353e6bf890aa7..8961d2f3d3ea4f963d8825252c096079921706e2 100644 |
--- a/src/pdf/SkPDFPage.cpp |
+++ b/src/pdf/SkPDFPage.cpp |
@@ -7,11 +7,11 @@ |
*/ |
-#include "SkData.h" |
#include "SkPDFCatalog.h" |
#include "SkPDFDevice.h" |
#include "SkPDFPage.h" |
#include "SkPDFResourceDict.h" |
+#include "SkStream.h" |
SkPDFPage::SkPDFPage(SkPDFDevice* content) |
: SkPDFDict("Page"), |
@@ -36,7 +36,7 @@ |
} |
} |
- SkAutoTUnref<SkData> content(fDevice->copyContentToData()); |
+ SkAutoTUnref<SkStream> content(fDevice->content()); |
fContentStream.reset(new SkPDFStream(content.get())); |
insert("Contents", new SkPDFObjRef(fContentStream.get()))->unref(); |
} |