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

Side by Side Diff: dm/DMGpuGMTask.cpp

Issue 316643003: DM: SKP source / PDF backend (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: cast Created 6 years, 6 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 | « dm/DMGpuGMTask.h ('k') | dm/DMPDFRasterizeTask.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 "DMGpuGMTask.h" 1 #include "DMGpuGMTask.h"
2 2
3 #include "DMExpectationsTask.h" 3 #include "DMExpectationsTask.h"
4 #include "DMUtil.h" 4 #include "DMUtil.h"
5 #include "DMWriteTask.h" 5 #include "DMWriteTask.h"
6 #include "SkCommandLineFlags.h" 6 #include "SkCommandLineFlags.h"
7 #include "SkSurface.h" 7 #include "SkSurface.h"
8 #include "SkTLS.h" 8 #include "SkTLS.h"
9 9
10 namespace DM { 10 namespace DM {
11 11
12 GpuGMTask::GpuGMTask(const char* config, 12 GpuGMTask::GpuGMTask(const char* config,
13 Reporter* reporter, 13 Reporter* reporter,
14 TaskRunner* taskRunner, 14 TaskRunner* taskRunner,
15 skiagm::GMRegistry::Factory gmFactory,
15 const Expectations& expectations, 16 const Expectations& expectations,
16 skiagm::GMRegistry::Factory gmFactory,
17 GrContextFactory::GLContextType contextType, 17 GrContextFactory::GLContextType contextType,
18 int sampleCount) 18 int sampleCount)
19 : GpuTask(reporter, taskRunner) 19 : GpuTask(reporter, taskRunner)
20 , fGM(gmFactory(NULL)) 20 , fGM(gmFactory(NULL))
21 , fName(UnderJoin(fGM->getName(), config)) 21 , fName(UnderJoin(fGM->getName(), config))
22 , fExpectations(expectations) 22 , fExpectations(expectations)
23 , fContextType(contextType) 23 , fContextType(contextType)
24 , fSampleCount(sampleCount) 24 , fSampleCount(sampleCount)
25 {} 25 {}
26 26
(...skipping 15 matching lines...) Expand all
42 42
43 this->spawnChild(SkNEW_ARGS(ExpectationsTask, (*this, fExpectations, bitmap) )); 43 this->spawnChild(SkNEW_ARGS(ExpectationsTask, (*this, fExpectations, bitmap) ));
44 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap))); 44 this->spawnChild(SkNEW_ARGS(WriteTask, (*this, bitmap)));
45 } 45 }
46 46
47 bool GpuGMTask::shouldSkip() const { 47 bool GpuGMTask::shouldSkip() const {
48 return kGPUDisabled || SkToBool(fGM->getFlags() & skiagm::GM::kSkipGPU_Flag) ; 48 return kGPUDisabled || SkToBool(fGM->getFlags() & skiagm::GM::kSkipGPU_Flag) ;
49 } 49 }
50 50
51 } // namespace DM 51 } // namespace DM
OLDNEW
« no previous file with comments | « dm/DMGpuGMTask.h ('k') | dm/DMPDFRasterizeTask.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698