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

Unified Diff: dm/DMTask.h

Issue 533393002: Revert of SkThreadPool ~~> SkTaskGroup (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dm/DMQuiltTask.cpp ('k') | dm/DMTask.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « dm/DMQuiltTask.cpp ('k') | dm/DMTask.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698