Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: cc/resources/one_copy_raster_worker_pool.cc

Issue 733773005: cc: GPU rasterize tiles synchronously in PrepareToDraw (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pull BuildRasterQueue out of AssignGpuMemoryToTiles. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698