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

Side by Side Diff: dm/DMCpuGMTask.cpp

Issue 256373002: Turn on quilt mode in DM. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 7 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 "DMRecordTask.h" 5 #include "DMRecordTask.h"
5 #include "DMReplayTask.h" 6 #include "DMReplayTask.h"
6 #include "DMSerializeTask.h" 7 #include "DMSerializeTask.h"
7 #include "DMTileGridTask.h"
8 #include "DMUtil.h" 8 #include "DMUtil.h"
9 #include "DMWriteTask.h" 9 #include "DMWriteTask.h"
10 10
11 namespace DM { 11 namespace DM {
12 12
13 CpuGMTask::CpuGMTask(const char* config, 13 CpuGMTask::CpuGMTask(const char* config,
14 Reporter* reporter, 14 Reporter* reporter,
15 TaskRunner* taskRunner, 15 TaskRunner* taskRunner,
16 const Expectations& expectations, 16 const Expectations& expectations,
17 skiagm::GMRegistry::Factory gmFactory, 17 skiagm::GMRegistry::Factory gmFactory,
(...skipping 14 matching lines...) Expand all
32 canvas.concat(fGM->getInitialTransform()); 32 canvas.concat(fGM->getInitialTransform());
33 fGM->draw(&canvas); 33 fGM->draw(&canvas);
34 canvas.flush(); 34 canvas.flush();
35 35
36 #define SPAWN(ChildTask, ...) this->spawnChild(SkNEW_ARGS(ChildTask, (*this, __V A_ARGS__))) 36 #define SPAWN(ChildTask, ...) this->spawnChild(SkNEW_ARGS(ChildTask, (*this, __V A_ARGS__)))
37 SPAWN(ExpectationsTask, fExpectations, bitmap); 37 SPAWN(ExpectationsTask, fExpectations, bitmap);
38 38
39 SPAWN(PipeTask, fGMFactory(NULL), bitmap, false, false); 39 SPAWN(PipeTask, fGMFactory(NULL), bitmap, false, false);
40 SPAWN(PipeTask, fGMFactory(NULL), bitmap, true, false); 40 SPAWN(PipeTask, fGMFactory(NULL), bitmap, true, false);
41 SPAWN(PipeTask, fGMFactory(NULL), bitmap, true, true); 41 SPAWN(PipeTask, fGMFactory(NULL), bitmap, true, true);
42 SPAWN(QuiltTask, fGMFactory(NULL), bitmap);
42 SPAWN(RecordTask, fGMFactory(NULL), bitmap); 43 SPAWN(RecordTask, fGMFactory(NULL), bitmap);
43 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, false); 44 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, false);
44 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, true); 45 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, true);
45 SPAWN(SerializeTask, fGMFactory(NULL), bitmap); 46 SPAWN(SerializeTask, fGMFactory(NULL), bitmap);
46 SPAWN(TileGridTask, fGMFactory(NULL), bitmap, SkISize::Make(16,16));
47 47
48 SPAWN(WriteTask, bitmap); 48 SPAWN(WriteTask, bitmap);
49 #undef SPAWN 49 #undef SPAWN
50 } 50 }
51 51
52 bool CpuGMTask::shouldSkip() const { 52 bool CpuGMTask::shouldSkip() const {
53 if (kRGB_565_SkColorType == fColorType && (fGM->getFlags() & skiagm::GM::kSk ip565_Flag)) { 53 if (kRGB_565_SkColorType == fColorType && (fGM->getFlags() & skiagm::GM::kSk ip565_Flag)) {
54 return true; 54 return true;
55 } 55 }
56 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) { 56 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) {
57 return true; 57 return true;
58 } 58 }
59 return false; 59 return false;
60 } 60 }
61 61
62 } // namespace DM 62 } // 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