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

Side by Side Diff: dm/DMCpuGMTask.cpp

Issue 371023005: Add always-threaded SkRecord quilt tests. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: bigger tile -> more GMs can quilt 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" 5 #include "DMReplayTask.h"
6 #include "DMSerializeTask.h" 6 #include "DMSerializeTask.h"
7 #include "DMUtil.h" 7 #include "DMUtil.h"
8 #include "DMWriteTask.h" 8 #include "DMWriteTask.h"
9 9
10 namespace DM { 10 namespace DM {
(...skipping 21 matching lines...) Expand all
32 fGM->draw(&canvas); 32 fGM->draw(&canvas);
33 canvas.flush(); 33 canvas.flush();
34 34
35 #define SPAWN(ChildTask, ...) this->spawnChild(SkNEW_ARGS(ChildTask, (*this, __V A_ARGS__))) 35 #define SPAWN(ChildTask, ...) this->spawnChild(SkNEW_ARGS(ChildTask, (*this, __V A_ARGS__)))
36 SPAWN(ExpectationsTask, fExpectations, bitmap); 36 SPAWN(ExpectationsTask, fExpectations, bitmap);
37 37
38 SPAWN(PipeTask, fGMFactory(NULL), bitmap, PipeTask::kInProcess_Mode); 38 SPAWN(PipeTask, fGMFactory(NULL), bitmap, PipeTask::kInProcess_Mode);
39 SPAWN(PipeTask, fGMFactory(NULL), bitmap, PipeTask::kCrossProcess_Mode); 39 SPAWN(PipeTask, fGMFactory(NULL), bitmap, PipeTask::kCrossProcess_Mode);
40 SPAWN(PipeTask, fGMFactory(NULL), bitmap, PipeTask::kSharedAddress_Mode); 40 SPAWN(PipeTask, fGMFactory(NULL), bitmap, PipeTask::kSharedAddress_Mode);
41 41
42 SPAWN(QuiltTask, fGMFactory(NULL), bitmap); 42 SPAWN(QuiltTask, fGMFactory(NULL), bitmap, QuiltTask::kNormal_Mode);
43 SPAWN(QuiltTask, fGMFactory(NULL), bitmap, QuiltTask::kSkRecord_Mode);
43 44
44 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, ReplayTask::kNormal_Mode); 45 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, ReplayTask::kNormal_Mode);
45 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, ReplayTask::kRTree_Mode); 46 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, ReplayTask::kRTree_Mode);
46 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, ReplayTask::kSkRecord_Mode); 47 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, ReplayTask::kSkRecord_Mode);
47 48
48 SPAWN(SerializeTask, fGMFactory(NULL), bitmap, SerializeTask::kNormal_Mode); 49 SPAWN(SerializeTask, fGMFactory(NULL), bitmap, SerializeTask::kNormal_Mode);
49 SPAWN(SerializeTask, fGMFactory(NULL), bitmap, SerializeTask::kSkRecord_Mode ); 50 SPAWN(SerializeTask, fGMFactory(NULL), bitmap, SerializeTask::kSkRecord_Mode );
50 51
51 SPAWN(WriteTask, bitmap); 52 SPAWN(WriteTask, bitmap);
52 #undef SPAWN 53 #undef SPAWN
53 } 54 }
54 55
55 bool CpuGMTask::shouldSkip() const { 56 bool CpuGMTask::shouldSkip() const {
56 if (kRGB_565_SkColorType == fColorType && (fGM->getFlags() & skiagm::GM::kSk ip565_Flag)) { 57 if (kRGB_565_SkColorType == fColorType && (fGM->getFlags() & skiagm::GM::kSk ip565_Flag)) {
57 return true; 58 return true;
58 } 59 }
59 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) { 60 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) {
60 return true; 61 return true;
61 } 62 }
62 return false; 63 return false;
63 } 64 }
64 65
65 } // namespace DM 66 } // 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