OLD | NEW |
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 Loading... |
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 |
OLD | NEW |