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> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 #include <map> | 11 #include <map> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "cc/base/cc_export.h" | 14 #include "cc/cc_export.h" |
15 #include "cc/raster/task_graph_runner.h" | 15 #include "cc/raster/task_graph_runner.h" |
16 | 16 |
17 namespace cc { | 17 namespace cc { |
18 | 18 |
19 // Implements a queue of incoming TaskGraph work. Designed for use by | 19 // Implements a queue of incoming TaskGraph work. Designed for use by |
20 // implementations of TaskGraphRunner. Not thread safe, so the caller is | 20 // implementations of TaskGraphRunner. Not thread safe, so the caller is |
21 // responsible for all necessary locking. | 21 // responsible for all necessary locking. |
22 // | 22 // |
23 // Tasks in the queue are divided into categories. Tasks from a single graph may | 23 // Tasks in the queue are divided into categories. Tasks from a single graph may |
24 // be put into different categories, each of which is prioritized independently | 24 // be put into different categories, each of which is prioritized independently |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 192 |
193 // Provides a unique id to each NamespaceToken. | 193 // Provides a unique id to each NamespaceToken. |
194 int next_namespace_id_; | 194 int next_namespace_id_; |
195 | 195 |
196 DISALLOW_COPY_AND_ASSIGN(TaskGraphWorkQueue); | 196 DISALLOW_COPY_AND_ASSIGN(TaskGraphWorkQueue); |
197 }; | 197 }; |
198 | 198 |
199 } // namespace cc | 199 } // namespace cc |
200 | 200 |
201 #endif // CC_RASTER_TASK_GRAPH_WORK_QUEUE_H_ | 201 #endif // CC_RASTER_TASK_GRAPH_WORK_QUEUE_H_ |
OLD | NEW |