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

Side by Side Diff: dm/DMCpuGMTask.cpp

Issue 612603002: Don't test the old picture backend anymore. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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 "DMPipeTask.h" 2 #include "DMPipeTask.h"
3 #include "DMQuiltTask.h" 3 #include "DMQuiltTask.h"
4 #include "DMSerializeTask.h" 4 #include "DMSerializeTask.h"
5 #include "DMUtil.h" 5 #include "DMUtil.h"
6 #include "DMWriteTask.h" 6 #include "DMWriteTask.h"
7 7
8 namespace DM { 8 namespace DM {
9 9
10 CpuGMTask::CpuGMTask(const char* config, 10 CpuGMTask::CpuGMTask(const char* config,
(...skipping 16 matching lines...) Expand all
27 CanvasPreflight(&canvas); 27 CanvasPreflight(&canvas);
28 canvas.concat(fGM->getInitialTransform()); 28 canvas.concat(fGM->getInitialTransform());
29 fGM->draw(&canvas); 29 fGM->draw(&canvas);
30 canvas.flush(); 30 canvas.flush();
31 31
32 #define SPAWN(ChildTask, ...) this->spawnChild(SkNEW_ARGS(ChildTask, (*this, __V A_ARGS__))) 32 #define SPAWN(ChildTask, ...) this->spawnChild(SkNEW_ARGS(ChildTask, (*this, __V A_ARGS__)))
33 SPAWN(PipeTask, fGMFactory(NULL), bm, PipeTask::kInProcess_Mode); 33 SPAWN(PipeTask, fGMFactory(NULL), bm, PipeTask::kInProcess_Mode);
34 SPAWN(PipeTask, fGMFactory(NULL), bm, PipeTask::kCrossProcess_Mode); 34 SPAWN(PipeTask, fGMFactory(NULL), bm, PipeTask::kCrossProcess_Mode);
35 SPAWN(PipeTask, fGMFactory(NULL), bm, PipeTask::kSharedAddress_Mode); 35 SPAWN(PipeTask, fGMFactory(NULL), bm, PipeTask::kSharedAddress_Mode);
36 36
37 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kNone_BBH, QuiltTask:: kDefault_Backend); 37 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kNone_BBH);
38 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kRTree_BBH, QuiltTask:: kDefault_Backend); 38 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kRTree_BBH);
39 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kTileGrid_BBH, QuiltTask:: kDefault_Backend); 39 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kTileGrid_BBH);
40 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kNone_BBH, QuiltTask:: kSkRecord_Backend);
41 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kRTree_BBH, QuiltTask:: kSkRecord_Backend);
42 SPAWN(QuiltTask, fGMFactory(NULL), bm, QuiltTask::kTileGrid_BBH, QuiltTask:: kSkRecord_Backend);
43 40
44 SPAWN(SerializeTask, fGMFactory(NULL), bm, SerializeTask::kNormal_Mode); 41 SPAWN(SerializeTask, fGMFactory(NULL), bm);
45 SPAWN(SerializeTask, fGMFactory(NULL), bm, SerializeTask::kSkRecord_Mode);
46 42
47 SPAWN(WriteTask, "GM", bm); 43 SPAWN(WriteTask, "GM", bm);
48 #undef SPAWN 44 #undef SPAWN
49 } 45 }
50 46
51 bool CpuGMTask::shouldSkip() const { 47 bool CpuGMTask::shouldSkip() const {
52 if (kRGB_565_SkColorType == fColorType && (fGM->getFlags() & skiagm::GM::kSk ip565_Flag)) { 48 if (kRGB_565_SkColorType == fColorType && (fGM->getFlags() & skiagm::GM::kSk ip565_Flag)) {
53 return true; 49 return true;
54 } 50 }
55 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) { 51 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) {
56 return true; 52 return true;
57 } 53 }
58 return false; 54 return false;
59 } 55 }
60 56
61 } // namespace DM 57 } // 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