Index: src/core/SkFlattenableSerialization.cpp |
diff --git a/src/core/SkFlattenableSerialization.cpp b/src/core/SkFlattenableSerialization.cpp |
index 13fbe6edbf9b0368c13eeb36d67d3c015962a9f9..f34e64170cbb687ec72a3c63049145b237915838 100644 |
--- a/src/core/SkFlattenableSerialization.cpp |
+++ b/src/core/SkFlattenableSerialization.cpp |
@@ -12,8 +12,7 @@ |
#include "SkWriteBuffer.h" |
SkData* SkValidatingSerializeFlattenable(SkFlattenable* flattenable) { |
- SkWriteBuffer writer; |
- writer.setFlags(SkWriteBuffer::kValidation_Flag); |
+ SkWriteBuffer writer(SkWriteBuffer::kValidation_Flag); |
writer.writeFlattenable(flattenable); |
uint32_t size = writer.bytesWritten(); |
void* data = sk_malloc_throw(size); |