Index: src/pdf/SkPDFStream.cpp |
diff --git a/src/pdf/SkPDFStream.cpp b/src/pdf/SkPDFStream.cpp |
index c310998a57b3f9b6dae39b4d93d2187a8c0300ff..4b55226f1253a794afddae2351b91edebebaf697 100644 |
--- a/src/pdf/SkPDFStream.cpp |
+++ b/src/pdf/SkPDFStream.cpp |
@@ -45,17 +45,13 @@ SkPDFStream::SkPDFStream(const SkPDFStream& pdfStream) |
SkPDFStream::~SkPDFStream() {} |
-void SkPDFStream::emitObject(SkWStream* stream, SkPDFCatalog* catalog, |
- bool indirect) { |
- if (indirect) { |
- return emitIndirectObject(stream, catalog); |
- } |
+void SkPDFStream::emitObject(SkWStream* stream, SkPDFCatalog* catalog) { |
SkAutoMutexAcquire lock(fMutex); // multiple threads could be calling emit |
if (!this->populate(catalog)) { |
- return fSubstitute->emitObject(stream, catalog, indirect); |
+ return fSubstitute->emitObject(stream, catalog); |
} |
- this->INHERITED::emitObject(stream, catalog, false); |
+ this->INHERITED::emitObject(stream, catalog); |
stream->writeText(" stream\n"); |
stream->writeStream(fDataStream.get(), fDataStream->getLength()); |
SkAssertResult(fDataStream->rewind()); |