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, true, "If true, run picture replay tests."); | 8 DEFINE_bool(replay, true, "If true, run picture replay tests."); |
9 DEFINE_bool(rtree, true, "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 |
(...skipping 23 matching lines...) Expand all Loading... | |
34 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap))); | 34 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap))); |
35 } | 35 } |
36 } | 36 } |
37 | 37 |
38 bool ReplayTask::shouldSkip() const { | 38 bool ReplayTask::shouldSkip() const { |
39 if (fGM->getFlags() & skiagm::GM::kSkipPicture_Flag) { | 39 if (fGM->getFlags() & skiagm::GM::kSkipPicture_Flag) { |
40 return true; | 40 return true; |
41 } | 41 } |
42 | 42 |
43 if (FLAGS_rtree && fUseRTree) { | 43 if (FLAGS_rtree && fUseRTree) { |
44 return fGM->getFlags() & skiagm::GM::kSkipTiled_Flag; | 44 return (fGM->getFlags() & skiagm::GM::kSkipTiled_Flag) != 0; |
scroggo
2014/02/21 19:21:28
You don't like SkToBool?
mtklein
2014/02/21 19:28:14
Seemed clearer to test != 0 explicitly since we're
scroggo
2014/02/21 19:29:18
sgtm
| |
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 |