Index: src/pipe/SkGPipeWrite.cpp |
diff --git a/src/pipe/SkGPipeWrite.cpp b/src/pipe/SkGPipeWrite.cpp |
index 34020dfe7f82984d04b4ffea35637af59efbc990..32786fdc80d50d2b841bfad08f734bdb388678c8 100644 |
--- a/src/pipe/SkGPipeWrite.cpp |
+++ b/src/pipe/SkGPipeWrite.cpp |
@@ -343,7 +343,7 @@ bool SkGPipeCanvas::shuttleBitmap(const SkBitmap& bm, int32_t slot) { |
SkASSERT(shouldFlattenBitmaps(fFlags)); |
SkOrderedWriteBuffer buffer(1024); |
buffer.setNamedFactoryRecorder(fFactorySet); |
- bm.flatten(buffer); |
+ buffer.writeBitmap(bm); |
this->flattenFactoryNames(); |
uint32_t size = buffer.size(); |
if (this->needOpBytes(size)) { |