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 <memory> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
18 #include "cc/base/cc_export.h" | 18 #include "cc/cc_export.h" |
19 #include "cc/raster/task.h" | 19 #include "cc/raster/task.h" |
20 | 20 |
21 namespace cc { | 21 namespace cc { |
22 | 22 |
23 // Opaque identifier that defines a namespace of tasks. | 23 // Opaque identifier that defines a namespace of tasks. |
24 class CC_EXPORT NamespaceToken { | 24 class CC_EXPORT NamespaceToken { |
25 public: | 25 public: |
26 NamespaceToken() : id_(0) {} | 26 NamespaceToken() : id_(0) {} |
27 ~NamespaceToken() {} | 27 ~NamespaceToken() {} |
28 | 28 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 virtual void WaitForTasksToFinishRunning(NamespaceToken token) = 0; | 86 virtual void WaitForTasksToFinishRunning(NamespaceToken token) = 0; |
87 | 87 |
88 // Collect all completed tasks in |completed_tasks|. | 88 // Collect all completed tasks in |completed_tasks|. |
89 virtual void CollectCompletedTasks(NamespaceToken token, | 89 virtual void CollectCompletedTasks(NamespaceToken token, |
90 Task::Vector* completed_tasks) = 0; | 90 Task::Vector* completed_tasks) = 0; |
91 }; | 91 }; |
92 | 92 |
93 } // namespace cc | 93 } // namespace cc |
94 | 94 |
95 #endif // CC_RASTER_TASK_GRAPH_RUNNER_H_ | 95 #endif // CC_RASTER_TASK_GRAPH_RUNNER_H_ |
OLD | NEW |