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

Unified Diff: cc/resources/tile_task_worker_pool.h

Issue 943813002: cc: Add TaskGraphRunner sub-namespaces with task concurrency limits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/resources/tile_task_worker_pool.h
diff --git a/cc/resources/tile_task_worker_pool.h b/cc/resources/tile_task_worker_pool.h
index 915a3fa0a8ca2afe9e07644fb13e6cb906a40323..4b2dc65af348d6cd3bee9933535a9d4c636e0221 100644
--- a/cc/resources/tile_task_worker_pool.h
+++ b/cc/resources/tile_task_worker_pool.h
@@ -20,6 +20,9 @@ class RenderingStatsInstrumentation;
class CC_EXPORT TileTaskWorkerPool {
public:
+ static const int kDefaultSubNamespace = 0;
+ static const int kDefaultMaxConcurrentTasks = 16;
+
static unsigned kBenchmarkTaskPriority;
static unsigned kTaskSetFinishedTaskPriorityBase;
static unsigned kTileTaskPriorityBase;
@@ -58,7 +61,9 @@ class CC_EXPORT TileTaskWorkerPool {
static void InsertNodeForTask(TaskGraph* graph,
TileTask* task,
unsigned priority,
- size_t dependencies);
+ size_t dependencies,
+ int sub_namespace,
+ int max_concurrent_tasks);
// Utility function that can be used to build a task graph. Inserts nodes that
// represent |task| and all its image decode dependencies in |graph|.
@@ -66,7 +71,9 @@ class CC_EXPORT TileTaskWorkerPool {
TaskGraph* graph,
RasterTask* task,
const ImageDecodeTask::Vector& decode_tasks,
- unsigned priority);
+ unsigned priority,
+ int sub_namespace,
+ int max_concurrent_tasks);
// Utility function that will create a temporary bitmap and copy pixels to
// |memory| when necessary.

Powered by Google App Engine
This is Rietveld 408576698