Index: src/core/SkPicturePlayback.cpp |
diff --git a/src/core/SkPicturePlayback.cpp b/src/core/SkPicturePlayback.cpp |
index 02d882897738f4d5b02a31ecd3a7d1615d1a9d2e..e71a17fda51095ec44fa49d4e4aa6f81b2493b0b 100644 |
--- a/src/core/SkPicturePlayback.cpp |
+++ b/src/core/SkPicturePlayback.cpp |
@@ -411,8 +411,7 @@ void SkPicturePlayback::serialize(SkWStream* stream, |
SkRefCntSet typefaceSet; |
SkFactorySet factSet; |
- SkWriteBuffer buffer; |
- buffer.setFlags(SkWriteBuffer::kCrossProcess_Flag); |
+ SkWriteBuffer buffer(SkWriteBuffer::kCrossProcess_Flag); |
buffer.setTypefaceRecorder(&typefaceSet); |
buffer.setFactoryRecorder(&factSet); |
buffer.setBitmapEncoder(encoder); |