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_RESOURCES_RASTERIZER_H_ | 5 #ifndef CC_RESOURCES_RASTERIZER_H_ |
6 #define CC_RESOURCES_RASTERIZER_H_ | 6 #define CC_RESOURCES_RASTERIZER_H_ |
7 | 7 |
8 #include <bitset> | 8 #include <bitset> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
145 // CheckForCompletedTasks() is called. | 145 // CheckForCompletedTasks() is called. |
146 virtual void Shutdown() = 0; | 146 virtual void Shutdown() = 0; |
147 | 147 |
148 // Schedule running of raster tasks in |queue| and all dependencies. | 148 // Schedule running of raster tasks in |queue| and all dependencies. |
149 // Previously scheduled tasks that are not in |queue| will be canceled unless | 149 // Previously scheduled tasks that are not in |queue| will be canceled unless |
150 // already running. Once scheduled, reply callbacks are guaranteed to run for | 150 // already running. Once scheduled, reply callbacks are guaranteed to run for |
151 // all tasks even if they later get canceled by another call to | 151 // all tasks even if they later get canceled by another call to |
152 // ScheduleTasks(). | 152 // ScheduleTasks(). |
153 virtual void ScheduleTasks(RasterTaskQueue* queue) = 0; | 153 virtual void ScheduleTasks(RasterTaskQueue* queue) = 0; |
154 | 154 |
155 // Blocks until all currently scheduled tasks have completed. | |
156 virtual void WaitForTasksToFinishRunning() = 0; | |
reveman
2014/10/27 19:15:49
I don't think we should add this to the Rasterizer
enne (OOO)
2014/10/27 20:23:24
What do you mean by non-threaded? Is this somethin
| |
157 | |
155 // Check for completed tasks and dispatch reply callbacks. | 158 // Check for completed tasks and dispatch reply callbacks. |
156 virtual void CheckForCompletedTasks() = 0; | 159 virtual void CheckForCompletedTasks() = 0; |
157 | 160 |
158 protected: | 161 protected: |
159 virtual ~Rasterizer() {} | 162 virtual ~Rasterizer() {} |
160 }; | 163 }; |
161 | 164 |
162 } // namespace cc | 165 } // namespace cc |
163 | 166 |
164 #endif // CC_RESOURCES_RASTERIZER_H_ | 167 #endif // CC_RESOURCES_RASTERIZER_H_ |
OLD | NEW |