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

Side by Side Diff: dm/DMCpuTask.cpp

Issue 88563003: DM: add --tileGrid (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: review Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | dm/DMReplayTask.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 "DMCpuTask.h" 1 #include "DMCpuTask.h"
2 #include "DMChecksumTask.h" 2 #include "DMChecksumTask.h"
3 #include "DMPipeTask.h" 3 #include "DMPipeTask.h"
4 #include "DMReplayTask.h" 4 #include "DMReplayTask.h"
5 #include "DMSerializeTask.h" 5 #include "DMSerializeTask.h"
6 #include "DMTileGridTask.h"
6 #include "DMUtil.h" 7 #include "DMUtil.h"
7 #include "DMWriteTask.h" 8 #include "DMWriteTask.h"
8 9
9 namespace DM { 10 namespace DM {
10 11
11 CpuTask::CpuTask(const char* name, 12 CpuTask::CpuTask(const char* name,
12 Reporter* reporter, 13 Reporter* reporter,
13 TaskRunner* taskRunner, 14 TaskRunner* taskRunner,
14 const skiagm::ExpectationsSource& expectations, 15 const skiagm::ExpectationsSource& expectations,
15 skiagm::GMRegistry::Factory gmFactory, 16 skiagm::GMRegistry::Factory gmFactory,
(...skipping 14 matching lines...) Expand all
30 canvas.concat(fGM->getInitialTransform()); 31 canvas.concat(fGM->getInitialTransform());
31 fGM->draw(&canvas); 32 fGM->draw(&canvas);
32 canvas.flush(); 33 canvas.flush();
33 34
34 #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__)))
35 SPAWN(ChecksumTask, fExpectations, bitmap); 36 SPAWN(ChecksumTask, fExpectations, bitmap);
36 37
37 SPAWN(PipeTask, fGMFactory(NULL), bitmap, false, false); 38 SPAWN(PipeTask, fGMFactory(NULL), bitmap, false, false);
38 SPAWN(PipeTask, fGMFactory(NULL), bitmap, true, false); 39 SPAWN(PipeTask, fGMFactory(NULL), bitmap, true, false);
39 SPAWN(PipeTask, fGMFactory(NULL), bitmap, true, true); 40 SPAWN(PipeTask, fGMFactory(NULL), bitmap, true, true);
40
41 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, false); 41 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, false);
42 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, true); 42 SPAWN(ReplayTask, fGMFactory(NULL), bitmap, true);
43
44 SPAWN(SerializeTask, fGMFactory(NULL), bitmap); 43 SPAWN(SerializeTask, fGMFactory(NULL), bitmap);
44 SPAWN(TileGridTask, fGMFactory(NULL), bitmap, SkISize::Make(16,16));
45 45
46 SPAWN(WriteTask, bitmap); 46 SPAWN(WriteTask, bitmap);
47 #undef SPAWN 47 #undef SPAWN
48 } 48 }
49 49
50 bool CpuTask::shouldSkip() const { 50 bool CpuTask::shouldSkip() const {
51 if (SkBitmap::kRGB_565_Config == fConfig && (fGM->getFlags() & skiagm::GM::k Skip565_Flag)) { 51 if (SkBitmap::kRGB_565_Config == fConfig && (fGM->getFlags() & skiagm::GM::k Skip565_Flag)) {
52 return true; 52 return true;
53 } 53 }
54 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) { 54 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) {
55 return true; 55 return true;
56 } 56 }
57 return false; 57 return false;
58 } 58 }
59 59
60 } // namespace DM 60 } // namespace DM
OLDNEW
« no previous file with comments | « no previous file | dm/DMReplayTask.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698