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

Side by Side Diff: dm/DMCpuGMTask.cpp

Issue 377373003: Merge Replay and Quilt tasks, adding in all BBH implementations. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 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 | dm/DMQuiltTask.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include "DMCpuGMTask.h" 1 #include "DMCpuGMTask.h"
2 #include "DMExpectationsTask.h" 2 #include "DMExpectationsTask.h"
3 #include "DMPipeTask.h" 3 #include "DMPipeTask.h"
4 #include "DMQuiltTask.h" 4 #include "DMQuiltTask.h"
5 #include "DMReplayTask.h"
6 #include "DMSerializeTask.h" 5 #include "DMSerializeTask.h"
7 #include "DMUtil.h" 6 #include "DMUtil.h"
8 #include "DMWriteTask.h" 7 #include "DMWriteTask.h"
9 8
10 namespace DM { 9 namespace DM {
11 10
12 CpuGMTask::CpuGMTask(const char* config, 11 CpuGMTask::CpuGMTask(const char* config,
13 Reporter* reporter, 12 Reporter* reporter,
14 TaskRunner* taskRunner, 13 TaskRunner* taskRunner,
15 skiagm::GMRegistry::Factory gmFactory, 14 skiagm::GMRegistry::Factory gmFactory,
(...skipping 16 matching lines...) Expand all
32 fGM->draw(&canvas); 31 fGM->draw(&canvas);
33 canvas.flush(); 32 canvas.flush();
34 33
35 #define SPAWN(ChildTask, ...) this->spawnChild(SkNEW_ARGS(ChildTask, (*this, __V A_ARGS__))) 34 #define SPAWN(ChildTask, ...) this->spawnChild(SkNEW_ARGS(ChildTask, (*this, __V A_ARGS__)))
36 SPAWN(ExpectationsTask, fExpectations, bitmap); 35 SPAWN(ExpectationsTask, fExpectations, bitmap);
37 36
38 SPAWN(PipeTask, fGMFactory(NULL), bitmap, PipeTask::kInProcess_Mode); 37 SPAWN(PipeTask, fGMFactory(NULL), bitmap, PipeTask::kInProcess_Mode);
39 SPAWN(PipeTask, fGMFactory(NULL), bitmap, PipeTask::kCrossProcess_Mode); 38 SPAWN(PipeTask, fGMFactory(NULL), bitmap, PipeTask::kCrossProcess_Mode);
40 SPAWN(PipeTask, fGMFactory(NULL), bitmap, PipeTask::kSharedAddress_Mode); 39 SPAWN(PipeTask, fGMFactory(NULL), bitmap, PipeTask::kSharedAddress_Mode);
41 40
42 SPAWN(QuiltTask, fGMFactory(NULL), bitmap, QuiltTask::kNormal_Mode); 41 SPAWN(QuiltTask, fGMFactory(NULL), bitmap, QuiltTask::kNoBBH_Mode);
42 SPAWN(QuiltTask, fGMFactory(NULL), bitmap, QuiltTask::kRTree_Mode);
43 SPAWN(QuiltTask, fGMFactory(NULL), bitmap, QuiltTask::kQuadTree_Mode);
44 SPAWN(QuiltTask, fGMFactory(NULL), bitmap, QuiltTask::kTileGrid_Mode);
43 SPAWN(QuiltTask, fGMFactory(NULL), bitmap, QuiltTask::kSkRecord_Mode); 45 SPAWN(QuiltTask, fGMFactory(NULL), bitmap, QuiltTask::kSkRecord_Mode);
44 46
45 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, ReplayTask::kNormal_Mode);
46 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, ReplayTask::kRTree_Mode);
47 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, ReplayTask::kSkRecord_Mode);
48
49 SPAWN(SerializeTask, fGMFactory(NULL), bitmap, SerializeTask::kNormal_Mode); 47 SPAWN(SerializeTask, fGMFactory(NULL), bitmap, SerializeTask::kNormal_Mode);
50 SPAWN(SerializeTask, fGMFactory(NULL), bitmap, SerializeTask::kSkRecord_Mode ); 48 SPAWN(SerializeTask, fGMFactory(NULL), bitmap, SerializeTask::kSkRecord_Mode );
51 49
52 SPAWN(WriteTask, bitmap); 50 SPAWN(WriteTask, bitmap);
53 #undef SPAWN 51 #undef SPAWN
54 } 52 }
55 53
56 bool CpuGMTask::shouldSkip() const { 54 bool CpuGMTask::shouldSkip() const {
57 if (kRGB_565_SkColorType == fColorType && (fGM->getFlags() & skiagm::GM::kSk ip565_Flag)) { 55 if (kRGB_565_SkColorType == fColorType && (fGM->getFlags() & skiagm::GM::kSk ip565_Flag)) {
58 return true; 56 return true;
59 } 57 }
60 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) { 58 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) {
61 return true; 59 return true;
62 } 60 }
63 return false; 61 return false;
64 } 62 }
65 63
66 } // namespace DM 64 } // namespace DM
OLDNEW
« no previous file with comments | « no previous file | dm/DMQuiltTask.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698