Index: dm/DMCpuGMTask.cpp |
diff --git a/dm/DMCpuGMTask.cpp b/dm/DMCpuGMTask.cpp |
index 912ca9e1fc549d57afb63f68a18c353f0807ede2..ceadc2627a1e3737a45485b2558bbc542f51483d 100644 |
--- a/dm/DMCpuGMTask.cpp |
+++ b/dm/DMCpuGMTask.cpp |
@@ -23,31 +23,37 @@ CpuGMTask::CpuGMTask(const char* config, |
{} |
void CpuGMTask::draw() { |
- SkBitmap bitmap; |
- AllocatePixels(fColorType, fGM->getISize().width(), fGM->getISize().height(), &bitmap); |
+ SkBitmap bm; |
+ AllocatePixels(fColorType, fGM->getISize().width(), fGM->getISize().height(), &bm); |
- SkCanvas canvas(bitmap); |
+ SkCanvas canvas(bm); |
canvas.concat(fGM->getInitialTransform()); |
fGM->draw(&canvas); |
canvas.flush(); |
#define SPAWN(ChildTask, ...) this->spawnChild(SkNEW_ARGS(ChildTask, (*this, __VA_ARGS__))) |
- SPAWN(ExpectationsTask, fExpectations, bitmap); |
+ SPAWN(ExpectationsTask, fExpectations, bm); |
- SPAWN(PipeTask, fGMFactory(NULL), bitmap, PipeTask::kInProcess_Mode); |
- SPAWN(PipeTask, fGMFactory(NULL), bitmap, PipeTask::kCrossProcess_Mode); |
- SPAWN(PipeTask, fGMFactory(NULL), bitmap, PipeTask::kSharedAddress_Mode); |
+ SPAWN(PipeTask, fGMFactory(NULL), bm, PipeTask::kInProcess_Mode); |
+ SPAWN(PipeTask, fGMFactory(NULL), bm, PipeTask::kCrossProcess_Mode); |
+ SPAWN(PipeTask, fGMFactory(NULL), bm, PipeTask::kSharedAddress_Mode); |
- SPAWN(QuiltTask, fGMFactory(NULL), bitmap, QuiltTask::kNoBBH_Mode); |
- SPAWN(QuiltTask, fGMFactory(NULL), bitmap, QuiltTask::kRTree_Mode); |
- SPAWN(QuiltTask, fGMFactory(NULL), bitmap, QuiltTask::kQuadTree_Mode); |
- SPAWN(QuiltTask, fGMFactory(NULL), bitmap, QuiltTask::kTileGrid_Mode); |
- SPAWN(QuiltTask, fGMFactory(NULL), bitmap, QuiltTask::kSkRecord_Mode); |
+ SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kNone_BBH, QuiltTask::kDefault_Backend); |
+ SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kRTree_BBH, QuiltTask::kDefault_Backend); |
+ SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kQuadTree_BBH, QuiltTask::kDefault_Backend); |
+ SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kTileGrid_BBH, QuiltTask::kDefault_Backend); |
- SPAWN(SerializeTask, fGMFactory(NULL), bitmap, SerializeTask::kNormal_Mode); |
- SPAWN(SerializeTask, fGMFactory(NULL), bitmap, SerializeTask::kSkRecord_Mode); |
+ SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kNone_BBH, QuiltTask::kSkRecord_Backend); |
+ SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kRTree_BBH, QuiltTask::kSkRecord_Backend); |
+ SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kQuadTree_BBH, QuiltTask::kSkRecord_Backend); |
+ /* TODO: Failing, not sure why. Enable these when passing. |
+ SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kTileGrid_BBH, QuiltTask::kSkRecord_Backend); |
+ */ |
- SPAWN(WriteTask, bitmap); |
+ SPAWN(SerializeTask, fGMFactory(NULL), bm, SerializeTask::kNormal_Mode); |
+ SPAWN(SerializeTask, fGMFactory(NULL), bm, SerializeTask::kSkRecord_Mode); |
+ |
+ SPAWN(WriteTask, bm); |
#undef SPAWN |
} |