Index: src/core/SkStream.cpp |
diff --git a/src/core/SkStream.cpp b/src/core/SkStream.cpp |
index 38432c4b693067ab7f167f8bfee69bd2357dc51e..65e1bee1a08f1f97dfccabcc1e8b0ce129b2b01c 100644 |
--- a/src/core/SkStream.cpp |
+++ b/src/core/SkStream.cpp |
@@ -621,6 +621,12 @@ void SkDynamicMemoryWStream::copyTo(void* dst) const |
} |
} |
+void SkDynamicMemoryWStream::writeToStream(SkWStream* dst) const { |
+ for (Block* block = fHead; block != NULL; block = block->fNext) { |
+ dst->write(block->start(), block->written()); |
+ } |
+} |
+ |
void SkDynamicMemoryWStream::padToAlign4() |
{ |
// cast to remove unary-minus warning |