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

Side by Side Diff: cc/raster/synchronous_task_graph_runner.h

Issue 1538433002: Revert of TaskGraphRunner Group support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor
Patch Set: Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_RASTER_SYNCHRONOUS_TASK_GRAPH_RUNNER_H_ 5 #ifndef CC_RASTER_SYNCHRONOUS_TASK_GRAPH_RUNNER_H_
6 #define CC_RASTER_SYNCHRONOUS_TASK_GRAPH_RUNNER_H_ 6 #define CC_RASTER_SYNCHRONOUS_TASK_GRAPH_RUNNER_H_
7 7
8 #include "cc/raster/task_graph_runner.h" 8 #include "cc/raster/task_graph_runner.h"
9 #include "cc/raster/task_graph_work_queue.h" 9 #include "cc/raster/task_graph_work_queue.h"
10 10
(...skipping 10 matching lines...) Expand all
21 NamespaceToken GetNamespaceToken() override; 21 NamespaceToken GetNamespaceToken() override;
22 void ScheduleTasks(NamespaceToken token, TaskGraph* graph) override; 22 void ScheduleTasks(NamespaceToken token, TaskGraph* graph) override;
23 void WaitForTasksToFinishRunning(NamespaceToken token) override; 23 void WaitForTasksToFinishRunning(NamespaceToken token) override;
24 void CollectCompletedTasks(NamespaceToken token, 24 void CollectCompletedTasks(NamespaceToken token,
25 Task::Vector* completed_tasks) override; 25 Task::Vector* completed_tasks) override;
26 26
27 // Runs all pending tasks from all namespaces. 27 // Runs all pending tasks from all namespaces.
28 void RunUntilIdle(); 28 void RunUntilIdle();
29 29
30 private: 30 private:
31 // Returns true if there was a task to run. 31 void RunTask();
32 bool RunTask();
33 32
34 // Stores the actual tasks to be run, sorted by priority. 33 // Stores the actual tasks to be run, sorted by priority.
35 TaskGraphWorkQueue work_queue_; 34 TaskGraphWorkQueue work_queue_;
36 }; 35 };
37 36
38 } // namespace cc 37 } // namespace cc
39 38
40 #endif // CC_RASTER_SYNCHRONOUS_TASK_GRAPH_RUNNER_H_ 39 #endif // CC_RASTER_SYNCHRONOUS_TASK_GRAPH_RUNNER_H_
OLDNEW
« no previous file with comments | « cc/raster/single_thread_task_graph_runner.cc ('k') | cc/raster/synchronous_task_graph_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698