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

Side by Side Diff: dm/DMTask.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/DMGpuSupport.h ('k') | dm/DMTaskRunner.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 #ifndef DMTask_DEFINED 1 #ifndef DMTask_DEFINED
2 #define DMTask_DEFINED 2 #define DMTask_DEFINED
3 3
4 #include "DMReporter.h" 4 #include "DMReporter.h"
5 #include "GrContextFactory.h" 5 #include "DMGpuSupport.h"
6 #include "SkRunnable.h" 6 #include "SkRunnable.h"
7 #include "SkTime.h" 7 #include "SkTime.h"
8 8
9 // DM will run() these tasks on one of two threadpools. 9 // DM will run() these tasks on one of two threadpools.
10 // Subclasses can call fail() to mark this task as failed, or make any number of spawnChild() calls 10 // Subclasses can call fail() to mark this task as failed, or make any number of spawnChild() calls
11 // to kick off dependent tasks. 11 // to kick off dependent tasks.
12 // 12 //
13 // Tasks delete themselves when run. 13 // Tasks delete themselves when run.
14 14
15 namespace DM { 15 namespace DM {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 GpuTask(Reporter* reporter, TaskRunner* taskRunner); 60 GpuTask(Reporter* reporter, TaskRunner* taskRunner);
61 virtual ~GpuTask() {} 61 virtual ~GpuTask() {}
62 62
63 void run(GrContextFactory&) SK_OVERRIDE; 63 void run(GrContextFactory&) SK_OVERRIDE;
64 virtual void draw(GrContextFactory*) = 0; 64 virtual void draw(GrContextFactory*) = 0;
65 }; 65 };
66 66
67 } // namespace DM 67 } // namespace DM
68 68
69 #endif // DMTask_DEFINED 69 #endif // DMTask_DEFINED
OLDNEW
« no previous file with comments | « dm/DMGpuSupport.h ('k') | dm/DMTaskRunner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698