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

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

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « cc/resources/one_copy_tile_task_worker_pool.cc ('k') | cc/resources/resource_provider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "cc/resources/pixel_buffer_tile_task_worker_pool.h" 5 #include "cc/resources/pixel_buffer_tile_task_worker_pool.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/containers/stack_container.h" 9 #include "base/containers/stack_container.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 // from being scheduled. 581 // from being scheduled.
582 if (!did_throttle_raster_tasks[task_set] && 582 if (!did_throttle_raster_tasks[task_set] &&
583 should_notify_client_if_no_tasks_are_pending_[task_set]) { 583 should_notify_client_if_no_tasks_are_pending_[task_set]) {
584 new_task_set_finished_tasks[task_set] = CreateTaskSetFinishedTask( 584 new_task_set_finished_tasks[task_set] = CreateTaskSetFinishedTask(
585 task_runner_.get(), 585 task_runner_.get(),
586 base::Bind(&PixelBufferTileTaskWorkerPool::OnTaskSetFinished, 586 base::Bind(&PixelBufferTileTaskWorkerPool::OnTaskSetFinished,
587 task_set_finished_weak_ptr_factory_.GetWeakPtr(), 587 task_set_finished_weak_ptr_factory_.GetWeakPtr(),
588 task_set)); 588 task_set));
589 task_set_finished_tasks_pending_[task_set] = true; 589 task_set_finished_tasks_pending_[task_set] = true;
590 InsertNodeForTask(&graph_, new_task_set_finished_tasks[task_set].get(), 590 InsertNodeForTask(&graph_, new_task_set_finished_tasks[task_set].get(),
591 kTaskSetFinishedTaskPriority, 591 kTaskSetFinishedTaskPriorityBase + task_set,
592 scheduled_task_counts[task_set]); 592 scheduled_task_counts[task_set]);
593 for (RasterTaskVector::ContainerType::const_iterator it = 593 for (RasterTaskVector::ContainerType::const_iterator it =
594 tasks[task_set].container().begin(); 594 tasks[task_set].container().begin();
595 it != tasks[task_set].container().end(); ++it) { 595 it != tasks[task_set].container().end(); ++it) {
596 graph_.edges.push_back( 596 graph_.edges.push_back(
597 TaskGraph::Edge(*it, new_task_set_finished_tasks[task_set].get())); 597 TaskGraph::Edge(*it, new_task_set_finished_tasks[task_set].get()));
598 } 598 }
599 } 599 }
600 } 600 }
601 601
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 void PixelBufferTileTaskWorkerPool::ThrottleStateAsValueInto( 721 void PixelBufferTileTaskWorkerPool::ThrottleStateAsValueInto(
722 base::debug::TracedValue* throttle_state) const { 722 base::debug::TracedValue* throttle_state) const {
723 throttle_state->SetInteger("bytes_available_for_upload", 723 throttle_state->SetInteger("bytes_available_for_upload",
724 max_bytes_pending_upload_ - bytes_pending_upload_); 724 max_bytes_pending_upload_ - bytes_pending_upload_);
725 throttle_state->SetInteger("bytes_pending_upload", bytes_pending_upload_); 725 throttle_state->SetInteger("bytes_pending_upload", bytes_pending_upload_);
726 throttle_state->SetInteger("scheduled_raster_task_count", 726 throttle_state->SetInteger("scheduled_raster_task_count",
727 scheduled_raster_task_count_); 727 scheduled_raster_task_count_);
728 } 728 }
729 729
730 } // namespace cc 730 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/one_copy_tile_task_worker_pool.cc ('k') | cc/resources/resource_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698