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

Side by Side Diff: dm/DMBenchTask.h

Issue 347823004: Remove Sk prefix from some bench classes. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: SkGMBench -> GMBench 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/DM.cpp ('k') | dm/DMBenchTask.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef DMBenchTask_DEFINED 1 #ifndef DMBenchTask_DEFINED
2 #define DMBenchTask_DEFINED 2 #define DMBenchTask_DEFINED
3 3
4 #include "Benchmark.h"
4 #include "DMReporter.h" 5 #include "DMReporter.h"
5 #include "DMTask.h" 6 #include "DMTask.h"
6 #include "DMTaskRunner.h" 7 #include "DMTaskRunner.h"
7 #include "SkBenchmark.h"
8 #include "SkString.h" 8 #include "SkString.h"
9 #include "SkTemplates.h" 9 #include "SkTemplates.h"
10 10
11 // Tasks that run an SkBenchmark once as a check that it doesn't crash. 11 // Tasks that run an Benchmark once as a check that it doesn't crash.
12 12
13 namespace DM { 13 namespace DM {
14 14
15 class NonRenderingBenchTask : public CpuTask { 15 class NonRenderingBenchTask : public CpuTask {
16 public: 16 public:
17 NonRenderingBenchTask(const char* config, Reporter*, TaskRunner*, BenchRegis try::Factory); 17 NonRenderingBenchTask(const char* config, Reporter*, TaskRunner*, BenchRegis try::Factory);
18 18
19 virtual void draw() SK_OVERRIDE; 19 virtual void draw() SK_OVERRIDE;
20 virtual bool shouldSkip() const SK_OVERRIDE; 20 virtual bool shouldSkip() const SK_OVERRIDE;
21 virtual SkString name() const SK_OVERRIDE { return fName; } 21 virtual SkString name() const SK_OVERRIDE { return fName; }
22 22
23 private: 23 private:
24 SkAutoTDelete<SkBenchmark> fBench; 24 SkAutoTDelete<Benchmark> fBench;
25 const SkString fName; 25 const SkString fName;
26 }; 26 };
27 27
28 class CpuBenchTask : public CpuTask { 28 class CpuBenchTask : public CpuTask {
29 public: 29 public:
30 CpuBenchTask(const char* config, Reporter*, TaskRunner*, BenchRegistry::Fact ory, SkColorType); 30 CpuBenchTask(const char* config, Reporter*, TaskRunner*, BenchRegistry::Fact ory, SkColorType);
31 31
32 virtual void draw() SK_OVERRIDE; 32 virtual void draw() SK_OVERRIDE;
33 virtual bool shouldSkip() const SK_OVERRIDE; 33 virtual bool shouldSkip() const SK_OVERRIDE;
34 virtual SkString name() const SK_OVERRIDE { return fName; } 34 virtual SkString name() const SK_OVERRIDE { return fName; }
35 35
36 private: 36 private:
37 SkAutoTDelete<SkBenchmark> fBench; 37 SkAutoTDelete<Benchmark> fBench;
38 const SkString fName; 38 const SkString fName;
39 const SkColorType fColorType; 39 const SkColorType fColorType;
40 }; 40 };
41 41
42 class GpuBenchTask : public GpuTask { 42 class GpuBenchTask : public GpuTask {
43 public: 43 public:
44 GpuBenchTask(const char* config, 44 GpuBenchTask(const char* config,
45 Reporter*, 45 Reporter*,
46 TaskRunner*, 46 TaskRunner*,
47 BenchRegistry::Factory, 47 BenchRegistry::Factory,
48 GrContextFactory::GLContextType, 48 GrContextFactory::GLContextType,
49 int sampleCount); 49 int sampleCount);
50 50
51 virtual void draw(GrContextFactory*) SK_OVERRIDE; 51 virtual void draw(GrContextFactory*) SK_OVERRIDE;
52 virtual bool shouldSkip() const SK_OVERRIDE; 52 virtual bool shouldSkip() const SK_OVERRIDE;
53 virtual SkString name() const SK_OVERRIDE { return fName; } 53 virtual SkString name() const SK_OVERRIDE { return fName; }
54 54
55 private: 55 private:
56 SkAutoTDelete<SkBenchmark> fBench; 56 SkAutoTDelete<Benchmark> fBench;
57 const SkString fName; 57 const SkString fName;
58 const GrContextFactory::GLContextType fContextType; 58 const GrContextFactory::GLContextType fContextType;
59 int fSampleCount; 59 int fSampleCount;
60 }; 60 };
61 61
62 } // namespace DM 62 } // namespace DM
63 63
64 #endif // DMBenchTask_DEFINED 64 #endif // DMBenchTask_DEFINED
OLDNEW
« no previous file with comments | « dm/DM.cpp ('k') | dm/DMBenchTask.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698