Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(295)

Side by Side Diff: dm/DMReplayTask.cpp

Issue 175283002: DM: don't run rtree when kSkipTiled is set. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Quiet down Windows warning. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698