Index: src/core/SkPictureData.cpp |
diff --git a/src/core/SkPictureData.cpp b/src/core/SkPictureData.cpp |
index 938274aceb4045b69d770974fc214f6a4693d349..2b2265403f0e6ed038448cb7d9422d032012f124 100644 |
--- a/src/core/SkPictureData.cpp |
+++ b/src/core/SkPictureData.cpp |
@@ -218,14 +218,14 @@ |
} |
void SkPictureData::serialize(SkWStream* stream, |
- SkPixelSerializer* pixelSerializer) const { |
+ SkPicture::EncodeBitmap encoder) const { |
write_tag_size(stream, SK_PICT_READER_TAG, fOpData->size()); |
stream->write(fOpData->bytes(), fOpData->size()); |
if (fPictureCount > 0) { |
write_tag_size(stream, SK_PICT_PICTURE_TAG, fPictureCount); |
for (int i = 0; i < fPictureCount; i++) { |
- fPictureRefs[i]->serialize(stream, pixelSerializer); |
+ fPictureRefs[i]->serialize(stream, encoder); |
} |
} |
@@ -238,7 +238,7 @@ |
SkWriteBuffer buffer(SkWriteBuffer::kCrossProcess_Flag); |
buffer.setTypefaceRecorder(&typefaceSet); |
buffer.setFactoryRecorder(&factSet); |
- buffer.setPixelSerializer(pixelSerializer); |
+ buffer.setBitmapEncoder(encoder); |
this->flattenToBuffer(buffer); |