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

Side by Side Diff: dm/DMBenchTask.h

Issue 319043005: Support using OpenGL ES context on desktop (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add docs Created 6 years, 5 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
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 "Benchmark.h"
5 #include "DMReporter.h" 5 #include "DMReporter.h"
6 #include "DMTask.h" 6 #include "DMTask.h"
7 #include "DMTaskRunner.h" 7 #include "DMTaskRunner.h"
8 #include "SkString.h" 8 #include "SkString.h"
9 #include "SkTemplates.h" 9 #include "SkTemplates.h"
10 10
(...skipping 28 matching lines...) Expand all
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 GrGLStandard gpuAPI,
49 int sampleCount); 50 int sampleCount);
50 51
51 virtual void draw(GrContextFactory*) SK_OVERRIDE; 52 virtual void draw(GrContextFactory*) SK_OVERRIDE;
52 virtual bool shouldSkip() const SK_OVERRIDE; 53 virtual bool shouldSkip() const SK_OVERRIDE;
53 virtual SkString name() const SK_OVERRIDE { return fName; } 54 virtual SkString name() const SK_OVERRIDE { return fName; }
54 55
55 private: 56 private:
56 SkAutoTDelete<Benchmark> fBench; 57 SkAutoTDelete<Benchmark> fBench;
57 const SkString fName; 58 const SkString fName;
58 const GrContextFactory::GLContextType fContextType; 59 const GrContextFactory::GLContextType fContextType;
60 const GrGLStandard fGpuAPI;
59 int fSampleCount; 61 int fSampleCount;
60 }; 62 };
61 63
62 } // namespace DM 64 } // namespace DM
63 65
64 #endif // DMBenchTask_DEFINED 66 #endif // DMBenchTask_DEFINED
OLDNEW
« no previous file with comments | « dm/DM.cpp ('k') | dm/DMBenchTask.cpp » ('j') | src/gpu/gl/android/SkNativeGLContext_android.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698