Index: dm/DMCpuGMTask.cpp |
diff --git a/dm/DMCpuGMTask.cpp b/dm/DMCpuGMTask.cpp |
index eb7ed9904830287d6ac8ec809052f334e6c5c827..add5b385000eaa1c50d7bd52f99a75f2707483d7 100644 |
--- a/dm/DMCpuGMTask.cpp |
+++ b/dm/DMCpuGMTask.cpp |
@@ -26,7 +26,7 @@ CpuGMTask::CpuGMTask(const char* config, |
void CpuGMTask::draw() { |
SkBitmap bitmap; |
- SetupBitmap(fColorType, fGM.get(), &bitmap); |
+ AllocatePixels(fColorType, fGM->getISize().width(), fGM->getISize().height(), &bitmap); |
SkCanvas canvas(bitmap); |
canvas.concat(fGM->getInitialTransform()); |