OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PIXEL_BUFFER_TILE_TASK_WORKER_POOL_H_ | 5 #ifndef CC_RESOURCES_PIXEL_BUFFER_TILE_TASK_WORKER_POOL_H_ |
6 #define CC_RESOURCES_PIXEL_BUFFER_TILE_TASK_WORKER_POOL_H_ | 6 #define CC_RESOURCES_PIXEL_BUFFER_TILE_TASK_WORKER_POOL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 void CheckForCompletedRasterTasks(); | 89 void CheckForCompletedRasterTasks(); |
90 void ScheduleMoreTasks(); | 90 void ScheduleMoreTasks(); |
91 unsigned PendingRasterTaskCount() const; | 91 unsigned PendingRasterTaskCount() const; |
92 TaskSetCollection PendingTasks() const; | 92 TaskSetCollection PendingTasks() const; |
93 void CheckForCompletedRasterizerTasks(); | 93 void CheckForCompletedRasterizerTasks(); |
94 | 94 |
95 const char* StateName() const; | 95 const char* StateName() const; |
96 scoped_refptr<base::debug::ConvertableToTraceFormat> StateAsValue() const; | 96 scoped_refptr<base::debug::ConvertableToTraceFormat> StateAsValue() const; |
97 void ThrottleStateAsValueInto(base::debug::TracedValue* throttle_state) const; | 97 void ThrottleStateAsValueInto(base::debug::TracedValue* throttle_state) const; |
98 | 98 |
| 99 bool single_entry_holder; |
99 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 100 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
100 TaskGraphRunner* task_graph_runner_; | 101 TaskGraphRunner* task_graph_runner_; |
101 const NamespaceToken namespace_token_; | 102 const NamespaceToken namespace_token_; |
102 TileTaskRunnerClient* client_; | 103 TileTaskRunnerClient* client_; |
103 ContextProvider* context_provider_; | 104 ContextProvider* context_provider_; |
104 ResourceProvider* resource_provider_; | 105 ResourceProvider* resource_provider_; |
105 | 106 |
106 bool shutdown_; | 107 bool shutdown_; |
107 | 108 |
108 TileTaskQueue raster_tasks_; | 109 TileTaskQueue raster_tasks_; |
(...skipping 22 matching lines...) Expand all Loading... |
131 | 132 |
132 base::WeakPtrFactory<PixelBufferTileTaskWorkerPool> | 133 base::WeakPtrFactory<PixelBufferTileTaskWorkerPool> |
133 task_set_finished_weak_ptr_factory_; | 134 task_set_finished_weak_ptr_factory_; |
134 | 135 |
135 DISALLOW_COPY_AND_ASSIGN(PixelBufferTileTaskWorkerPool); | 136 DISALLOW_COPY_AND_ASSIGN(PixelBufferTileTaskWorkerPool); |
136 }; | 137 }; |
137 | 138 |
138 } // namespace cc | 139 } // namespace cc |
139 | 140 |
140 #endif // CC_RESOURCES_PIXEL_BUFFER_TILE_TASK_WORKER_POOL_H_ | 141 #endif // CC_RESOURCES_PIXEL_BUFFER_TILE_TASK_WORKER_POOL_H_ |
OLD | NEW |