Index: dm/DMSerializeTask.cpp |
diff --git a/dm/DMSerializeTask.cpp b/dm/DMSerializeTask.cpp |
index aa0dabe0acfa1e625f82ae761f1802e8166cf702..62c45b3f048924c06fd2439b1b7fe5ea8446385c 100644 |
--- a/dm/DMSerializeTask.cpp |
+++ b/dm/DMSerializeTask.cpp |
@@ -28,7 +28,7 @@ void SerializeTask::draw() { |
SkAutoTUnref<SkPicture> reconstructed(SkPicture::CreateFromStream(rStream)); |
SkBitmap bitmap; |
- SetupBitmap(fReference.colorType(), fGM.get(), &bitmap); |
+ AllocatePixels(fReference, &bitmap); |
DrawPicture(reconstructed, &bitmap); |
if (!BitmapsEqual(bitmap, fReference)) { |
this->fail(); |