Index: src/pdf/SkPDFStream.cpp |
diff --git a/src/pdf/SkPDFStream.cpp b/src/pdf/SkPDFStream.cpp |
index 4ae1f39d26f18dc9783c5bcf1decb75c7a828b05..c96a70f2e5bbfb802e29f376606f7045c225833e 100644 |
--- a/src/pdf/SkPDFStream.cpp |
+++ b/src/pdf/SkPDFStream.cpp |
@@ -64,7 +64,7 @@ void SkPDFStream::emitObject(SkWStream* stream, SkPDFCatalog* catalog, |
this->INHERITED::emitObject(stream, catalog, false); |
stream->writeText(" stream\n"); |
- stream->write(fData->getMemoryBase(), fData->getLength()); |
+ stream->writeStream(fData.get(), fData->getLength()); |
stream->writeText("\nendstream"); |
} |