Index: dm/DMReplayTask.cpp |
diff --git a/dm/DMReplayTask.cpp b/dm/DMReplayTask.cpp |
index e4a9e4427be1dae2426d9807d7f616ddf565b4a2..a126f2cfe2162cd5b8cea565deaf1d65136c1401 100644 |
--- a/dm/DMReplayTask.cpp |
+++ b/dm/DMReplayTask.cpp |
@@ -14,12 +14,12 @@ namespace DM { |
ReplayTask::ReplayTask(const Task& parent, |
skiagm::GM* gm, |
SkBitmap reference, |
- bool useRTree) |
+ Mode mode) |
: CpuTask(parent) |
- , fName(UnderJoin(parent.name().c_str(), useRTree ? "rtree" : "replay")) |
+ , fUseRTree(mode == kRTree_Mode) |
+ , fName(UnderJoin(parent.name().c_str(), fUseRTree ? "rtree" : "replay")) |
, fGM(gm) |
, fReference(reference) |
- , fUseRTree(useRTree) |
{} |
void ReplayTask::draw() { |