diff options
Diffstat (limited to 'tests/PictureTest.cpp')
-rw-r--r-- | tests/PictureTest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp index 1575456491..a81733e38a 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(); } |