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

Unified Diff: dm/DMTask.h

Issue 261593008: DM: run child tasks that are already on the CPU threadpool serially (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: oops Created 6 years, 8 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 | « no previous file | 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 76efbf924bbcdf04e0747b83e2b2d767ed5c236f..02d8a22011cf636aedefa2940bff8490ac10edd0 100644
--- a/dm/DMTask.h
+++ b/dm/DMTask.h
@@ -36,7 +36,7 @@ protected:
void fail(const char* msg = NULL);
void finish();
- void spawnChild(CpuTask* task); // For now we don't allow GPU child tasks.
+ void reallySpawnChild(CpuTask* task); // For now we don't allow GPU child tasks.
private:
Reporter* fReporter; // Unowned.
@@ -53,6 +53,8 @@ public:
void run() SK_OVERRIDE;
virtual void draw() = 0;
+
+ void spawnChild(CpuTask* task);
};
class GpuTask : public Task, public SkTRunnable<GrContextFactory> {
@@ -62,6 +64,8 @@ class GpuTask : public Task, public SkTRunnable<GrContextFactory> {
void run(GrContextFactory&) SK_OVERRIDE;
virtual void draw(GrContextFactory*) = 0;
+
+ void spawnChild(CpuTask* task);
};
} // namespace DM
« no previous file with comments | « no previous file | dm/DMTask.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698