Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #include "DMReplayTask.h" | 1 #include "DMReplayTask.h" |
| 2 #include "DMWriteTask.h" | 2 #include "DMWriteTask.h" |
| 3 #include "DMUtil.h" | 3 #include "DMUtil.h" |
| 4 | 4 |
| 5 #include "SkCommandLineFlags.h" | 5 #include "SkCommandLineFlags.h" |
| 6 #include "SkPicture.h" | 6 #include "SkPicture.h" |
| 7 | 7 |
| 8 DEFINE_bool(replay, false, "If true, run picture replay tests."); | 8 DEFINE_bool(replay, true, "If true, run picture replay tests."); |
|
epoger
2013/11/26 17:55:22
Ditto
| |
| 9 DEFINE_bool(rtree, false, "If true, run picture replay tests with an rtree."); | 9 DEFINE_bool(rtree, true, "If true, run picture replay tests with an rtree."); |
| 10 | 10 |
| 11 namespace DM { | 11 namespace DM { |
| 12 | 12 |
| 13 ReplayTask::ReplayTask(const Task& parent, | 13 ReplayTask::ReplayTask(const Task& parent, |
| 14 skiagm::GM* gm, | 14 skiagm::GM* gm, |
| 15 SkBitmap reference, | 15 SkBitmap reference, |
| 16 bool useRTree) | 16 bool useRTree) |
| 17 : Task(parent) | 17 : Task(parent) |
| 18 , fName(UnderJoin(parent.name().c_str(), useRTree ? "rtree" : "replay")) | 18 , fName(UnderJoin(parent.name().c_str(), useRTree ? "rtree" : "replay")) |
| 19 , fGM(gm) | 19 , fGM(gm) |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 43 if (FLAGS_rtree && fUseRTree) { | 43 if (FLAGS_rtree && fUseRTree) { |
| 44 return false; | 44 return false; |
| 45 } | 45 } |
| 46 if (FLAGS_replay && !fUseRTree) { | 46 if (FLAGS_replay && !fUseRTree) { |
| 47 return false; | 47 return false; |
| 48 } | 48 } |
| 49 return true; | 49 return true; |
| 50 } | 50 } |
| 51 | 51 |
| 52 } // namespace DM | 52 } // namespace DM |
| OLD | NEW |