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

Unified Diff: dm/DMTaskRunner.h

Issue 853883004: Revert of Sketch DM refactor. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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/DMTask.cpp ('k') | dm/DMTaskRunner.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMTaskRunner.h
diff --git a/dm/DMTaskRunner.h b/dm/DMTaskRunner.h
new file mode 100644
index 0000000000000000000000000000000000000000..3d4e491b9cb298becb4a30a40462cca1b23f28ac
--- /dev/null
+++ b/dm/DMTaskRunner.h
@@ -0,0 +1,29 @@
+#ifndef DMTaskRunner_DEFINED
+#define DMTaskRunner_DEFINED
+
+#include "DMGpuSupport.h"
+#include "SkTDArray.h"
+#include "SkTaskGroup.h"
+#include "SkTypes.h"
+
+namespace DM {
+
+class CpuTask;
+class GpuTask;
+
+class TaskRunner : SkNoncopyable {
+public:
+ TaskRunner() {}
+
+ void add(CpuTask* task);
+ void add(GpuTask* task);
+ void wait();
+
+private:
+ SkTaskGroup fCpuWork;
+ SkTDArray<GpuTask*> fGpuWork;
+};
+
+} // namespace DM
+
+#endif // DMTaskRunner_DEFINED
« no previous file with comments | « dm/DMTask.cpp ('k') | dm/DMTaskRunner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698