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_ONE_COPY_TILE_TASK_WORKER_POOL_H_ | 5 #ifndef CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_ |
6 #define CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_ | 6 #define CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "base/synchronization/lock.h" | 9 #include "base/synchronization/lock.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
120 CopySequenceNumber last_flushed_copy_operation_; | 120 CopySequenceNumber last_flushed_copy_operation_; |
121 | 121 |
122 // Task graph used when scheduling tasks and vector used to gather | 122 // Task graph used when scheduling tasks and vector used to gather |
123 // completed tasks. | 123 // completed tasks. |
124 TaskGraph graph_; | 124 TaskGraph graph_; |
125 Task::Vector completed_tasks_; | 125 Task::Vector completed_tasks_; |
126 | 126 |
127 base::Lock lock_; | 127 base::Lock lock_; |
128 // |lock_| must be acquired when accessing the following members. | 128 // |lock_| must be acquired when accessing the following members. |
129 base::ConditionVariable copy_operation_count_cv_; | 129 base::ConditionVariable copy_operation_count_cv_; |
130 size_t bytes_scheduled_since_last_flush_; | |
vmpstr
2015/06/02 23:23:27
Can you make this int? I'm going through the cc co
reveman
2015/06/04 01:19:51
Done.
| |
130 size_t issued_copy_operation_count_; | 131 size_t issued_copy_operation_count_; |
131 CopyOperation::Deque pending_copy_operations_; | 132 CopyOperation::Deque pending_copy_operations_; |
132 CopySequenceNumber next_copy_operation_sequence_; | 133 CopySequenceNumber next_copy_operation_sequence_; |
133 bool check_for_completed_copy_operations_pending_; | 134 bool check_for_completed_copy_operations_pending_; |
134 base::TimeTicks last_check_for_completed_copy_operations_time_; | 135 base::TimeTicks last_check_for_completed_copy_operations_time_; |
135 bool shutdown_; | 136 bool shutdown_; |
136 | 137 |
137 base::WeakPtrFactory<OneCopyTileTaskWorkerPool> weak_ptr_factory_; | 138 base::WeakPtrFactory<OneCopyTileTaskWorkerPool> weak_ptr_factory_; |
138 // "raster finished" tasks need their own factory as they need to be | 139 // "raster finished" tasks need their own factory as they need to be |
139 // canceled when ScheduleTasks() is called. | 140 // canceled when ScheduleTasks() is called. |
140 base::WeakPtrFactory<OneCopyTileTaskWorkerPool> | 141 base::WeakPtrFactory<OneCopyTileTaskWorkerPool> |
141 task_set_finished_weak_ptr_factory_; | 142 task_set_finished_weak_ptr_factory_; |
142 | 143 |
143 DISALLOW_COPY_AND_ASSIGN(OneCopyTileTaskWorkerPool); | 144 DISALLOW_COPY_AND_ASSIGN(OneCopyTileTaskWorkerPool); |
144 }; | 145 }; |
145 | 146 |
146 } // namespace cc | 147 } // namespace cc |
147 | 148 |
148 #endif // CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_ | 149 #endif // CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_ |
OLD | NEW |