OLD | NEW |
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_RASTER_TASK_GRAPH_WORK_QUEUE_H_ | 5 #ifndef CC_RASTER_TASK_GRAPH_WORK_QUEUE_H_ |
6 #define CC_RASTER_TASK_GRAPH_WORK_QUEUE_H_ | 6 #define CC_RASTER_TASK_GRAPH_WORK_QUEUE_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <algorithm> | 10 #include <algorithm> |
9 #include <map> | 11 #include <map> |
10 #include <vector> | 12 #include <vector> |
11 | 13 |
12 #include "cc/base/cc_export.h" | 14 #include "cc/base/cc_export.h" |
13 #include "cc/raster/task_graph_runner.h" | 15 #include "cc/raster/task_graph_runner.h" |
14 | 16 |
15 namespace cc { | 17 namespace cc { |
16 | 18 |
17 // Implements a queue of incoming TaskGraph work. Designed for use by | 19 // Implements a queue of incoming TaskGraph work. Designed for use by |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 // Map from category to a vector of ready to run namespaces for that category. | 167 // Map from category to a vector of ready to run namespaces for that category. |
166 std::map<uint16_t, TaskNamespace::Vector> ready_to_run_namespaces_; | 168 std::map<uint16_t, TaskNamespace::Vector> ready_to_run_namespaces_; |
167 | 169 |
168 // Provides a unique id to each NamespaceToken. | 170 // Provides a unique id to each NamespaceToken. |
169 int next_namespace_id_; | 171 int next_namespace_id_; |
170 }; | 172 }; |
171 | 173 |
172 } // namespace cc | 174 } // namespace cc |
173 | 175 |
174 #endif // CC_RASTER_TASK_GRAPH_WORK_QUEUE_H_ | 176 #endif // CC_RASTER_TASK_GRAPH_WORK_QUEUE_H_ |
OLD | NEW |