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

Unified Diff: cc/resources/one_copy_raster_worker_pool.cc

Issue 689463003: cc: Move FallbackFence implementation from GLRenderer to ResourceProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@one-copy-throttling
Patch Set: rebase Created 6 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | cc/resources/resource_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/one_copy_raster_worker_pool.cc
diff --git a/cc/resources/one_copy_raster_worker_pool.cc b/cc/resources/one_copy_raster_worker_pool.cc
index cdef6bad2efcde54e2a21ec2247d790786f8257b..bbf31363e6a3b9729c957b3447423afabe5021d0 100644
--- a/cc/resources/one_copy_raster_worker_pool.cc
+++ b/cc/resources/one_copy_raster_worker_pool.cc
@@ -387,10 +387,6 @@ void OneCopyRasterWorkerPool::IssueCopyOperations(int64 count) {
CopyOperation::Deque copy_operations;
- // This is a good time to check for completed copy operations as
- // |issued_copy_operation_count_| need to be updated below.
- resource_pool_->CheckBusyResources();
-
{
base::AutoLock lock(lock_);
@@ -404,9 +400,7 @@ void OneCopyRasterWorkerPool::IssueCopyOperations(int64 count) {
// operations from "pending" to "issued" state.
DCHECK_GE(scheduled_copy_operation_count_, copy_operations.size());
scheduled_copy_operation_count_ -= copy_operations.size();
-
- issued_copy_operation_count_ =
- resource_pool_->busy_resource_count() + copy_operations.size();
+ issued_copy_operation_count_ += copy_operations.size();
}
while (!copy_operations.empty()) {
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | cc/resources/resource_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698