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_RUNNER_H_ | 5 #ifndef CC_RASTER_TASK_GRAPH_RUNNER_H_ |
6 #define CC_RASTER_TASK_GRAPH_RUNNER_H_ | 6 #define CC_RASTER_TASK_GRAPH_RUNNER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <algorithm> | 11 #include <algorithm> |
12 #include <map> | 12 #include <map> |
| 13 #include <memory> |
13 #include <vector> | 14 #include <vector> |
14 | 15 |
15 #include "base/logging.h" | 16 #include "base/logging.h" |
16 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
17 #include "base/memory/scoped_ptr.h" | |
18 #include "cc/base/cc_export.h" | 18 #include "cc/base/cc_export.h" |
19 | 19 |
20 namespace cc { | 20 namespace cc { |
21 | 21 |
22 class TaskGraphRunner; | 22 class TaskGraphRunner; |
23 | 23 |
24 // A task which can be run by a TaskGraphRunner. To run a Task, it should be | 24 // A task which can be run by a TaskGraphRunner. To run a Task, it should be |
25 // inserted into a TaskGraph, which can then be scheduled on the | 25 // inserted into a TaskGraph, which can then be scheduled on the |
26 // TaskGraphRunner. | 26 // TaskGraphRunner. |
27 class CC_EXPORT Task : public base::RefCountedThreadSafe<Task> { | 27 class CC_EXPORT Task : public base::RefCountedThreadSafe<Task> { |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 private: | 217 private: |
218 TaskGraph* graph_; | 218 TaskGraph* graph_; |
219 const Task* task_; | 219 const Task* task_; |
220 size_t current_index_; | 220 size_t current_index_; |
221 TaskGraph::Node* current_node_; | 221 TaskGraph::Node* current_node_; |
222 }; | 222 }; |
223 | 223 |
224 } // namespace cc | 224 } // namespace cc |
225 | 225 |
226 #endif // CC_RASTER_TASK_GRAPH_RUNNER_H_ | 226 #endif // CC_RASTER_TASK_GRAPH_RUNNER_H_ |
OLD | NEW |