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

Unified Diff: cc/raster/task_graph_runner.cc

Issue 1866043006: cc: Remove ScheduleOnOriginThread() and CompleteOnOriginThread(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wip - fixed few unit tests Created 4 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
Index: cc/raster/task_graph_runner.cc
diff --git a/cc/raster/task_graph_runner.cc b/cc/raster/task_graph_runner.cc
index 4f1af43ad43901309131886aa2dd6d5c6de1343a..e05f337210a8066c8ac3ca62e63dde6e51a1fc83 100644
--- a/cc/raster/task_graph_runner.cc
+++ b/cc/raster/task_graph_runner.cc
@@ -13,7 +13,8 @@
namespace cc {
-Task::Task() : will_run_(false), did_run_(false) {}
+Task::Task()
+ : type_id_(kDefaultTaskTypeId), will_run_(false), did_run_(false) {}
Task::~Task() {
DCHECK(!will_run_);
@@ -35,6 +36,14 @@ bool Task::HasFinishedRunning() const {
return did_run_;
}
+TaskTypeId Task::GetTaskTypeId() {
+ return type_id_;
+}
+
+void Task::SetTaskTypeId(TaskTypeId type_id) {
+ type_id_ = type_id;
+}
+
TaskGraph::TaskGraph() {}
TaskGraph::TaskGraph(const TaskGraph& other) = default;

Powered by Google App Engine
This is Rietveld 408576698