Index: src/pdf/SkPDFPage.cpp |
diff --git a/src/pdf/SkPDFPage.cpp b/src/pdf/SkPDFPage.cpp |
index 8961d2f3d3ea4f963d8825252c096079921706e2..cfb6790876f1bba7ce5839c78e2353e6bf890aa7 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 @@ void SkPDFPage::finalizePage(SkPDFCatalog* catalog, bool firstPage, |
} |
} |
- SkAutoTUnref<SkStream> content(fDevice->content()); |
+ SkAutoTUnref<SkData> content(fDevice->copyContentToData()); |
fContentStream.reset(new SkPDFStream(content.get())); |
insert("Contents", new SkPDFObjRef(fContentStream.get()))->unref(); |
} |