Index: dm/DMSerializeTask.cpp |
diff --git a/dm/DMSerializeTask.cpp b/dm/DMSerializeTask.cpp |
index 8bc8c8ef98793560cfcf4ce56bb0ed9228f2bc23..3359f2e0aa77862c4008aae76d4850ce96a41797 100644 |
--- a/dm/DMSerializeTask.cpp |
+++ b/dm/DMSerializeTask.cpp |
@@ -19,21 +19,12 @@ SerializeTask::SerializeTask(const Task& parent, |
, fReference(reference) |
{} |
-static SkData* trivial_bitmap_encoder(size_t* pixelRefOffset, const SkBitmap& bitmap) { |
- if (NULL == bitmap.pixelRef()) { |
- return NULL; |
- } |
- SkData* data = bitmap.pixelRef()->refEncodedData(); |
- *pixelRefOffset = bitmap.pixelRefOffset(); |
- return data; |
-} |
- |
void SerializeTask::draw() { |
SkPicture recorded; |
RecordPicture(fGM.get(), &recorded); |
SkDynamicMemoryWStream wStream; |
- recorded.serialize(&wStream, &trivial_bitmap_encoder); |
+ recorded.serialize(&wStream, NULL); |
SkAutoTUnref<SkStream> rStream(wStream.detachAsStream()); |
SkAutoTUnref<SkPicture> reconstructed(SkPicture::CreateFromStream(rStream)); |