OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_H_ | 5 #ifndef CC_RASTER_TASK_H_ |
6 #define CC_RASTER_TASK_H_ | 6 #define CC_RASTER_TASK_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "cc/base/cc_export.h" | 14 #include "cc/cc_export.h" |
15 | 15 |
16 namespace cc { | 16 namespace cc { |
17 class Task; | 17 class Task; |
18 | 18 |
19 // This class provides states to manage life cycle of a task and given below is | 19 // This class provides states to manage life cycle of a task and given below is |
20 // how it is used by TaskGraphWorkQueue to process life cycle of a task. | 20 // how it is used by TaskGraphWorkQueue to process life cycle of a task. |
21 // Task is in NEW state when it is created. When task is added to | 21 // Task is in NEW state when it is created. When task is added to |
22 // |ready_to_run_tasks| then its state is changed to SCHEDULED. Task can be | 22 // |ready_to_run_tasks| then its state is changed to SCHEDULED. Task can be |
23 // canceled from NEW state (not yet scheduled to run) or from SCHEDULED state, | 23 // canceled from NEW state (not yet scheduled to run) or from SCHEDULED state, |
24 // when new ScheduleTasks() is triggered and its state is changed to CANCELED. | 24 // when new ScheduleTasks() is triggered and its state is changed to CANCELED. |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 Node::Vector nodes; | 143 Node::Vector nodes; |
144 Edge::Vector edges; | 144 Edge::Vector edges; |
145 | 145 |
146 private: | 146 private: |
147 DISALLOW_COPY_AND_ASSIGN(TaskGraph); | 147 DISALLOW_COPY_AND_ASSIGN(TaskGraph); |
148 }; | 148 }; |
149 | 149 |
150 } // namespace cc | 150 } // namespace cc |
151 | 151 |
152 #endif // CC_RASTER_TASK_H_ | 152 #endif // CC_RASTER_TASK_H_ |
OLD | NEW |