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

Side by Side Diff: dm/DMCpuTask.cpp

Issue 51243003: DM: add --rtree. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: same order 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') | dm/DMReplayTask.h » ('J')
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 #include "SkPicture.h"
9
8 namespace DM { 10 namespace DM {
9 11
10 CpuTask::CpuTask(const char* name, 12 CpuTask::CpuTask(const char* name,
11 Reporter* reporter, 13 Reporter* reporter,
12 TaskRunner* taskRunner, 14 TaskRunner* taskRunner,
13 const skiagm::ExpectationsSource& expectations, 15 const skiagm::ExpectationsSource& expectations,
14 skiagm::GMRegistry::Factory gmFactory, 16 skiagm::GMRegistry::Factory gmFactory,
15 SkBitmap::Config config) 17 SkBitmap::Config config)
16 : Task(reporter, taskRunner) 18 : Task(reporter, taskRunner)
17 , fGMFactory(gmFactory) 19 , fGMFactory(gmFactory)
(...skipping 13 matching lines...) Expand all
31 canvas.flush(); 33 canvas.flush();
32 34
33 if (!MeetsExpectations(fExpectations, bitmap)) { 35 if (!MeetsExpectations(fExpectations, bitmap)) {
34 this->fail(); 36 this->fail();
35 } 37 }
36 38
37 this->spawnChild(SkNEW_ARGS(PipeTask, (*this, fGMFactory(NULL), bitmap, fals e, false))); 39 this->spawnChild(SkNEW_ARGS(PipeTask, (*this, fGMFactory(NULL), bitmap, fals e, false)));
38 this->spawnChild(SkNEW_ARGS(PipeTask, (*this, fGMFactory(NULL), bitmap, true , false))); 40 this->spawnChild(SkNEW_ARGS(PipeTask, (*this, fGMFactory(NULL), bitmap, true , false)));
39 this->spawnChild(SkNEW_ARGS(PipeTask, (*this, fGMFactory(NULL), bitmap, true , true))); 41 this->spawnChild(SkNEW_ARGS(PipeTask, (*this, fGMFactory(NULL), bitmap, true , true)));
40 42
41 this->spawnChild(SkNEW_ARGS(ReplayTask, (*this, fGMFactory(NULL), bitmap))); 43 const uint32_t kReplay = 0, kRTree = SkPicture::kOptimizeForClippedPlayback_ RecordingFlag;
44 this->spawnChild(SkNEW_ARGS(ReplayTask, (*this, fGMFactory(NULL), bitmap, kR eplay)));
45 this->spawnChild(SkNEW_ARGS(ReplayTask, (*this, fGMFactory(NULL), bitmap, kR Tree)));
46
42 this->spawnChild(SkNEW_ARGS(SerializeTask, (*this, fGMFactory(NULL), bitmap) )); 47 this->spawnChild(SkNEW_ARGS(SerializeTask, (*this, fGMFactory(NULL), bitmap) ));
43 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap))); 48 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap)));
44 } 49 }
45 50
46 bool CpuTask::shouldSkip() const { 51 bool CpuTask::shouldSkip() const {
47 if (SkBitmap::kRGB_565_Config == fConfig && (fGM->getFlags() & skiagm::GM::k Skip565_Flag)) { 52 if (SkBitmap::kRGB_565_Config == fConfig && (fGM->getFlags() & skiagm::GM::k Skip565_Flag)) {
48 return true; 53 return true;
49 } 54 }
50 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) { 55 if (fGM->getFlags() & skiagm::GM::kGPUOnly_Flag) {
51 return true; 56 return true;
52 } 57 }
53 return false; 58 return false;
54 } 59 }
55 60
56 } // namespace DM 61 } // namespace DM
OLDNEW
« no previous file with comments | « no previous file | dm/DMReplayTask.h » ('j') | dm/DMReplayTask.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698