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

Side by Side Diff: dm/DMCpuTask.cpp

Issue 51243003: DM: add --rtree. (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/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 "DMPipeTask.h" 2 #include "DMPipeTask.h"
3 #include "DMReplayTask.h" 3 #include "DMReplayTask.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 CpuTask::CpuTask(const char* name, 10 CpuTask::CpuTask(const char* name,
(...skipping 20 matching lines...) Expand all
31 canvas.flush(); 31 canvas.flush();
32 32
33 if (!MeetsExpectations(fExpectations, bitmap)) { 33 if (!MeetsExpectations(fExpectations, bitmap)) {
34 this->fail(); 34 this->fail();
35 } 35 }
36 36
37 this->spawnChild(SkNEW_ARGS(PipeTask, (*this, fGMFactory(NULL), bitmap, fals e, false))); 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))); 38 this->spawnChild(SkNEW_ARGS(PipeTask, (*this, fGMFactory(NULL), bitmap, true , false)));
39 this->spawnChild(SkNEW_ARGS(PipeTask, (*this, fGMFactory(NULL), bitmap, true , true))); 39 this->spawnChild(SkNEW_ARGS(PipeTask, (*this, fGMFactory(NULL), bitmap, true , true)));
40 40
41 this->spawnChild(SkNEW_ARGS(ReplayTask, (*this, fGMFactory(NULL), bitmap))); 41 this->spawnChild(SkNEW_ARGS(ReplayTask, (*this, fGMFactory(NULL), bitmap, tr ue)));
42 this->spawnChild(SkNEW_ARGS(ReplayTask, (*this, fGMFactory(NULL), bitmap, fa lse)));
43
42 this->spawnChild(SkNEW_ARGS(SerializeTask, (*this, fGMFactory(NULL), bitmap) )); 44 this->spawnChild(SkNEW_ARGS(SerializeTask, (*this, fGMFactory(NULL), bitmap) ));
43 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap))); 45 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap)));
44 } 46 }
45 47
46 bool CpuTask::shouldSkip() const { 48 bool CpuTask::shouldSkip() const {
47 if (SkBitmap::kRGB_565_Config == fConfig && (fGM->getFlags() & skiagm::GM::k Skip565_Flag)) { 49 if (SkBitmap::kRGB_565_Config == fConfig && (fGM->getFlags() & skiagm::GM::k Skip565_Flag)) {
48 return true; 50 return true;
49 } 51 }
50 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) { 52 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) {
51 return true; 53 return true;
52 } 54 }
53 return false; 55 return false;
54 } 56 }
55 57
56 } // namespace DM 58 } // 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