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 #include "cc/resources/one_copy_raster_worker_pool.h" | 5 #include "cc/resources/one_copy_raster_worker_pool.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 158 |
159 shutdown_ = true; | 159 shutdown_ = true; |
160 copy_operation_count_cv_.Signal(); | 160 copy_operation_count_cv_.Signal(); |
161 } | 161 } |
162 | 162 |
163 TaskGraph empty; | 163 TaskGraph empty; |
164 task_graph_runner_->ScheduleTasks(namespace_token_, &empty); | 164 task_graph_runner_->ScheduleTasks(namespace_token_, &empty); |
165 task_graph_runner_->WaitForTasksToFinishRunning(namespace_token_); | 165 task_graph_runner_->WaitForTasksToFinishRunning(namespace_token_); |
166 } | 166 } |
167 | 167 |
| 168 void OneCopyRasterWorkerPool::RunTasks(RasterTaskQueue* queue) { |
| 169 NOTIMPLEMENTED(); |
| 170 } |
| 171 |
168 void OneCopyRasterWorkerPool::ScheduleTasks(RasterTaskQueue* queue) { | 172 void OneCopyRasterWorkerPool::ScheduleTasks(RasterTaskQueue* queue) { |
169 TRACE_EVENT0("cc", "OneCopyRasterWorkerPool::ScheduleTasks"); | 173 TRACE_EVENT0("cc", "OneCopyRasterWorkerPool::ScheduleTasks"); |
170 | 174 |
171 if (raster_pending_.none()) | 175 if (raster_pending_.none()) |
172 TRACE_EVENT_ASYNC_BEGIN0("cc", "ScheduledTasks", this); | 176 TRACE_EVENT_ASYNC_BEGIN0("cc", "ScheduledTasks", this); |
173 | 177 |
174 // Mark all task sets as pending. | 178 // Mark all task sets as pending. |
175 raster_pending_.set(); | 179 raster_pending_.set(); |
176 | 180 |
177 unsigned priority = kRasterTaskPriorityBase; | 181 unsigned priority = kRasterTaskPriorityBase; |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 resource_pool_->total_memory_usage_bytes()); | 501 resource_pool_->total_memory_usage_bytes()); |
498 staging_state->SetInteger("pending_copy_count", | 502 staging_state->SetInteger("pending_copy_count", |
499 resource_pool_->total_resource_count() - | 503 resource_pool_->total_resource_count() - |
500 resource_pool_->acquired_resource_count()); | 504 resource_pool_->acquired_resource_count()); |
501 staging_state->SetInteger("bytes_pending_copy", | 505 staging_state->SetInteger("bytes_pending_copy", |
502 resource_pool_->total_memory_usage_bytes() - | 506 resource_pool_->total_memory_usage_bytes() - |
503 resource_pool_->acquired_memory_usage_bytes()); | 507 resource_pool_->acquired_memory_usage_bytes()); |
504 } | 508 } |
505 | 509 |
506 } // namespace cc | 510 } // namespace cc |
OLD | NEW |