Index: dm/DMRecordTask.cpp |
diff --git a/dm/DMRecordTask.cpp b/dm/DMRecordTask.cpp |
index ce27aaa6f998e6ff6d31c6f371fee0550de61c48..8241ac5aeb92a218d840af36c53741bee92efd6b 100644 |
--- a/dm/DMRecordTask.cpp |
+++ b/dm/DMRecordTask.cpp |
@@ -47,11 +47,7 @@ void RecordTask::draw() { |
// Draw the SkRecord back into a bitmap. |
SkBitmap bitmap; |
- if (fGM.get()) { |
- SetupBitmap(fReference.colorType(), fGM.get(), &bitmap); |
- } else { |
- SetupBitmap(fReference.colorType(), *fPicture, &bitmap); |
- } |
+ AllocatePixels(fReference, &bitmap); |
SkCanvas target(bitmap); |
SkRecordDraw(record, &target); |