Index: src/pdf/SkPDFDevice.cpp |
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp |
index 90f0a4a7c8a448b7280510c24507164c1e811e92..b6acf34becd61b72cc3782e478bf47c63b2a0a6b 100644 |
--- a/src/pdf/SkPDFDevice.cpp |
+++ b/src/pdf/SkPDFDevice.cpp |
@@ -1321,8 +1321,7 @@ void SkPDFDevice::copyContentEntriesToData(ContentEntry* entry, |
gsState.updateMatrix(entry->fState.fMatrix); |
gsState.updateDrawingState(entry->fState); |
- SkAutoDataUnref copy(entry->fContent.copyToData()); |
- data->write(copy->data(), copy->size()); |
+ entry->fContent.writeToStream(data); |
entry = entry->fNext.get(); |
} |
gsState.drainStack(); |