Index: dm/DMTask.h |
diff --git a/dm/DMTask.h b/dm/DMTask.h |
index 3f41b497ba6f6840c8292ebe54acf17f3e34c998..32bb9486f5e1c08c3ceaca27eb4b7c98d7650634 100644 |
--- a/dm/DMTask.h |
+++ b/dm/DMTask.h |
@@ -1,10 +1,9 @@ |
#ifndef DMTask_DEFINED |
#define DMTask_DEFINED |
+#include "DMReporter.h" |
#include "DMGpuSupport.h" |
-#include "DMReporter.h" |
#include "SkRunnable.h" |
-#include "SkTaskGroup.h" |
#include "SkTime.h" |
// DM will run() these tasks on one of two threadpools. |
@@ -37,7 +36,7 @@ |
void fail(const char* msg = NULL); |
void finish(); |
- void reallySpawnChild(CpuTask* task); // For now we don't allow GPU child tasks. |
+ void spawnChildNext(CpuTask* task); // For now we don't allow GPU child tasks. |
private: |
Reporter* fReporter; // Unowned. |
@@ -58,12 +57,12 @@ |
void spawnChild(CpuTask* task); |
}; |
-class GpuTask : public Task { |
+class GpuTask : public Task, public SkTRunnable<GrContextFactory> { |
public: |
GpuTask(Reporter* reporter, TaskRunner* taskRunner); |
virtual ~GpuTask() {} |
- void run(GrContextFactory*); |
+ void run(GrContextFactory&) SK_OVERRIDE; |
virtual void draw(GrContextFactory*) = 0; |
void spawnChild(CpuTask* task); |