OLD | NEW |
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 CONTENT_RENDERER_RASTER_WORKER_POOL_H_ | 5 #ifndef CONTENT_RENDERER_RASTER_WORKER_POOL_H_ |
6 #define CONTENT_RENDERER_RASTER_WORKER_POOL_H_ | 6 #define CONTENT_RENDERER_RASTER_WORKER_POOL_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
| 10 #include "base/macros.h" |
10 #include "base/memory/scoped_vector.h" | 11 #include "base/memory/scoped_vector.h" |
11 #include "base/sequenced_task_runner.h" | 12 #include "base/sequenced_task_runner.h" |
12 #include "base/synchronization/condition_variable.h" | 13 #include "base/synchronization/condition_variable.h" |
13 #include "base/task_runner.h" | 14 #include "base/task_runner.h" |
14 #include "base/threading/simple_thread.h" | 15 #include "base/threading/simple_thread.h" |
15 #include "cc/raster/task_graph_runner.h" | 16 #include "cc/raster/task_graph_runner.h" |
16 #include "cc/raster/task_graph_work_queue.h" | 17 #include "cc/raster/task_graph_work_queue.h" |
17 #include "content/common/content_export.h" | 18 #include "content/common/content_export.h" |
18 | 19 |
19 namespace content { | 20 namespace content { |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 // Condition variable that is waited on by origin threads until a namespace | 126 // Condition variable that is waited on by origin threads until a namespace |
126 // has finished running all associated tasks. | 127 // has finished running all associated tasks. |
127 base::ConditionVariable has_namespaces_with_finished_running_tasks_cv_; | 128 base::ConditionVariable has_namespaces_with_finished_running_tasks_cv_; |
128 // Set during shutdown. Tells Run() to return when no more tasks are pending. | 129 // Set during shutdown. Tells Run() to return when no more tasks are pending. |
129 bool shutdown_; | 130 bool shutdown_; |
130 }; | 131 }; |
131 | 132 |
132 } // namespace content | 133 } // namespace content |
133 | 134 |
134 #endif // CONTENT_RENDERER_RASTER_WORKER_POOL_H_ | 135 #endif // CONTENT_RENDERER_RASTER_WORKER_POOL_H_ |
OLD | NEW |