Index: tests/PictureTest.cpp |
diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp |
index 1575456491fa69ba85aaea2e1d99f05395f34aff..a81733e38af2f443685795ca6e49e12a1f1cbaf1 100644 |
--- a/tests/PictureTest.cpp |
+++ b/tests/PictureTest.cpp |
@@ -851,8 +851,9 @@ static SkData* serialized_picture_from_bitmap(const SkBitmap& bitmap) { |
SkAutoTUnref<SkPicture> picture(recorder.endRecording()); |
SkDynamicMemoryWStream wStream; |
- sk_tool_utils::PngPixelSerializer serializer; |
- picture->serialize(&wStream, &serializer); |
+ SkAutoTUnref<SkPixelSerializer> serializer( |
+ SkImageEncoder::CreatePixelSerializer()); |
+ picture->serialize(&wStream, serializer); |
return wStream.copyToData(); |
} |