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

Side by Side Diff: dm/DMTestTask.h

Issue 213093004: Let DM work without a GPU. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 9 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/DMTaskRunner.h ('k') | dm/DMTestTask.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 DMTestTask_DEFINED 1 #ifndef DMTestTask_DEFINED
2 #define DMTestTask_DEFINED 2 #define DMTestTask_DEFINED
3 3
4 #include "DMReporter.h" 4 #include "DMReporter.h"
5 #include "DMTask.h" 5 #include "DMTask.h"
6 #include "DMTaskRunner.h" 6 #include "DMTaskRunner.h"
7 #include "SkString.h" 7 #include "SkString.h"
8 #include "SkTemplates.h" 8 #include "SkTemplates.h"
9 #include "Test.h" 9 #include "Test.h"
10 10
(...skipping 30 matching lines...) Expand all
41 TestReporter fTestReporter; 41 TestReporter fTestReporter;
42 SkAutoTDelete<skiatest::Test> fTest; 42 SkAutoTDelete<skiatest::Test> fTest;
43 const SkString fName; 43 const SkString fName;
44 }; 44 };
45 45
46 class GpuTestTask : public GpuTask { 46 class GpuTestTask : public GpuTask {
47 public: 47 public:
48 GpuTestTask(Reporter*, TaskRunner*, skiatest::TestRegistry::Factory); 48 GpuTestTask(Reporter*, TaskRunner*, skiatest::TestRegistry::Factory);
49 49
50 virtual void draw(GrContextFactory*) SK_OVERRIDE; 50 virtual void draw(GrContextFactory*) SK_OVERRIDE;
51 virtual bool shouldSkip() const SK_OVERRIDE { return false; } 51 virtual bool shouldSkip() const SK_OVERRIDE;
52 virtual SkString name() const SK_OVERRIDE { return fName; } 52 virtual SkString name() const SK_OVERRIDE { return fName; }
53 53
54 private: 54 private:
55 TestReporter fTestReporter; 55 TestReporter fTestReporter;
56 SkAutoTDelete<skiatest::Test> fTest; 56 SkAutoTDelete<skiatest::Test> fTest;
57 const SkString fName; 57 const SkString fName;
58 }; 58 };
59 59
60 } // namespace DM 60 } // namespace DM
61 61
62 #endif // DMTestTask_DEFINED 62 #endif // DMTestTask_DEFINED
OLDNEW
« no previous file with comments | « dm/DMTaskRunner.h ('k') | dm/DMTestTask.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698