Index: src/core/SkFlattenableSerialization.cpp |
diff --git a/src/core/SkFlattenableSerialization.cpp b/src/core/SkFlattenableSerialization.cpp |
index b98d935ca7d4ba4dfa48036f6ab17715f66336ab..5c83101eaf961e964371a5f965102479253a1466 100644 |
--- a/src/core/SkFlattenableSerialization.cpp |
+++ b/src/core/SkFlattenableSerialization.cpp |
@@ -12,7 +12,7 @@ |
#include "SkOrderedWriteBuffer.h" |
SkData* SkValidatingSerializeFlattenable(SkFlattenable* flattenable) { |
- SkOrderedWriteBuffer writer(1024); |
+ SkOrderedWriteBuffer writer; |
writer.setFlags(SkOrderedWriteBuffer::kValidation_Flag); |
writer.writeFlattenable(flattenable); |
uint32_t size = writer.bytesWritten(); |