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

Side by Side Diff: cc/resources/gpu_tile_task_worker_pool.h

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_RESOURCES_GPU_TILE_TASK_WORKER_POOL_H_ 5 #ifndef CC_RESOURCES_GPU_TILE_TASK_WORKER_POOL_H_
6 #define CC_RESOURCES_GPU_TILE_TASK_WORKER_POOL_H_ 6 #define CC_RESOURCES_GPU_TILE_TASK_WORKER_POOL_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "cc/resources/tile_task_runner.h" 9 #include "cc/resources/tile_task_runner.h"
10 #include "cc/resources/tile_task_worker_pool.h" 10 #include "cc/resources/tile_task_worker_pool.h"
(...skipping 29 matching lines...) Expand all
40 TaskGraphRunner* task_graph_runner); 40 TaskGraphRunner* task_graph_runner);
41 41
42 void OnTaskSetFinished(TaskSet task_set); 42 void OnTaskSetFinished(TaskSet task_set);
43 void CompleteTasks(const Task::Vector& tasks); 43 void CompleteTasks(const Task::Vector& tasks);
44 44
45 scoped_refptr<base::SequencedTaskRunner> task_runner_; 45 scoped_refptr<base::SequencedTaskRunner> task_runner_;
46 TaskGraphRunner* task_graph_runner_; 46 TaskGraphRunner* task_graph_runner_;
47 const NamespaceToken namespace_token_; 47 const NamespaceToken namespace_token_;
48 TileTaskRunnerClient* client_; 48 TileTaskRunnerClient* client_;
49 49
50 bool run_tasks_on_origin_thread_pending_;
51
52 TaskSetCollection tasks_pending_; 50 TaskSetCollection tasks_pending_;
53 51
54 scoped_refptr<TileTask> task_set_finished_tasks_[kNumberOfTaskSets]; 52 scoped_refptr<TileTask> task_set_finished_tasks_[kNumberOfTaskSets];
55 53
56 // Task graph used when scheduling tasks and vector used to gather 54 // Task graph used when scheduling tasks and vector used to gather
57 // completed tasks. 55 // completed tasks.
58 TaskGraph graph_; 56 TaskGraph graph_;
59 Task::Vector completed_tasks_; 57 Task::Vector completed_tasks_;
60 58
61 base::WeakPtrFactory<GpuTileTaskWorkerPool> 59 base::WeakPtrFactory<GpuTileTaskWorkerPool>
62 task_set_finished_weak_ptr_factory_; 60 task_set_finished_weak_ptr_factory_;
63 61
64 base::WeakPtrFactory<GpuTileTaskWorkerPool> weak_ptr_factory_; 62 base::WeakPtrFactory<GpuTileTaskWorkerPool> weak_ptr_factory_;
65 63
66 DISALLOW_COPY_AND_ASSIGN(GpuTileTaskWorkerPool); 64 DISALLOW_COPY_AND_ASSIGN(GpuTileTaskWorkerPool);
67 }; 65 };
68 66
69 } // namespace cc 67 } // namespace cc
70 68
71 #endif // CC_RESOURCES_GPU_TILE_TASK_WORKER_POOL_H_ 69 #endif // CC_RESOURCES_GPU_TILE_TASK_WORKER_POOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698