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

Side by Side Diff: dm/DMCpuTask.cpp

Issue 47773002: DM: add --pipe (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: epoger Created 7 years, 1 month 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/DMPipeTask.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 "DMPipeTask.h"
2 #include "DMReplayTask.h" 3 #include "DMReplayTask.h"
3 #include "DMSerializeTask.h" 4 #include "DMSerializeTask.h"
4 #include "DMUtil.h" 5 #include "DMUtil.h"
5 #include "DMWriteTask.h" 6 #include "DMWriteTask.h"
6 7
7 namespace DM { 8 namespace DM {
8 9
9 CpuTask::CpuTask(const char* name, 10 CpuTask::CpuTask(const char* name,
10 Reporter* reporter, 11 Reporter* reporter,
11 TaskRunner* taskRunner, 12 TaskRunner* taskRunner,
(...skipping 14 matching lines...) Expand all
26 27
27 SkCanvas canvas(bitmap); 28 SkCanvas canvas(bitmap);
28 canvas.concat(fGM->getInitialTransform()); 29 canvas.concat(fGM->getInitialTransform());
29 fGM->draw(&canvas); 30 fGM->draw(&canvas);
30 canvas.flush(); 31 canvas.flush();
31 32
32 if (!MeetsExpectations(fExpectations, bitmap)) { 33 if (!MeetsExpectations(fExpectations, bitmap)) {
33 this->fail(); 34 this->fail();
34 } 35 }
35 36
37 this->spawnChild(SkNEW_ARGS(PipeTask, (*this, fGMFactory(NULL), bitmap, fals e, false)));
38 this->spawnChild(SkNEW_ARGS(PipeTask, (*this, fGMFactory(NULL), bitmap, true , false)));
39 this->spawnChild(SkNEW_ARGS(PipeTask, (*this, fGMFactory(NULL), bitmap, true , true)));
40
36 this->spawnChild(SkNEW_ARGS(ReplayTask, (*this, fGMFactory(NULL), bitmap))); 41 this->spawnChild(SkNEW_ARGS(ReplayTask, (*this, fGMFactory(NULL), bitmap)));
37 this->spawnChild(SkNEW_ARGS(SerializeTask, (*this, fGMFactory(NULL), bitmap) )); 42 this->spawnChild(SkNEW_ARGS(SerializeTask, (*this, fGMFactory(NULL), bitmap) ));
38 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap))); 43 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap)));
39 } 44 }
40 45
41 bool CpuTask::shouldSkip() const { 46 bool CpuTask::shouldSkip() const {
42 if (SkBitmap::kRGB_565_Config == fConfig && (fGM->getFlags() & skiagm::GM::k Skip565_Flag)) { 47 if (SkBitmap::kRGB_565_Config == fConfig && (fGM->getFlags() & skiagm::GM::k Skip565_Flag)) {
43 return true; 48 return true;
44 } 49 }
45 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) { 50 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) {
46 return true; 51 return true;
47 } 52 }
48 return false; 53 return false;
49 } 54 }
50 55
51 } // namespace DM 56 } // namespace DM
OLDNEW
« no previous file with comments | « no previous file | dm/DMPipeTask.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698