Index: src/pipe/SkGPipeWrite.cpp |
diff --git a/src/pipe/SkGPipeWrite.cpp b/src/pipe/SkGPipeWrite.cpp |
index 68acc179e766c5c19abc9840a3a99d82a76e3a0f..2948f25d2781f3c956fcfd16e1b22673c6dcabfd 100644 |
--- a/src/pipe/SkGPipeWrite.cpp |
+++ b/src/pipe/SkGPipeWrite.cpp |
@@ -370,7 +370,7 @@ void SkGPipeCanvas::flattenFactoryNames() { |
bool SkGPipeCanvas::shuttleBitmap(const SkBitmap& bm, int32_t slot) { |
SkASSERT(shouldFlattenBitmaps(fFlags)); |
- SkOrderedWriteBuffer buffer(1024); |
+ SkOrderedWriteBuffer buffer; |
buffer.setNamedFactoryRecorder(fFactorySet); |
buffer.writeBitmap(bm); |
this->flattenFactoryNames(); |
@@ -1146,7 +1146,7 @@ void SkGPipeCanvas::writePaint(const SkPaint& paint) { |
this->writeOp(kSetAnnotation_DrawOp, 0, 0); |
} |
} else { |
- SkOrderedWriteBuffer buffer(1024); |
+ SkOrderedWriteBuffer buffer; |
paint.getAnnotation()->writeToBuffer(buffer); |
const size_t size = buffer.bytesWritten(); |
if (this->needOpBytes(size)) { |