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

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

Issue 17244003: cc: Move task graph construction to RasterWorkerPool classes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@wp-run-count
Patch Set: add missing CC_EXPORT Created 7 years, 6 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/raster_worker_pool_unittest.cc ('k') | cc/resources/worker_pool.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/tile_manager.h" 5 #include "cc/resources/tile_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 tile->contents_scale(), 719 tile->contents_scale(),
720 mts.raster_mode, 720 mts.raster_mode,
721 use_color_estimator_, 721 use_color_estimator_,
722 metadata, 722 metadata,
723 rendering_stats_instrumentation_, 723 rendering_stats_instrumentation_,
724 base::Bind(&TileManager::OnRasterTaskCompleted, 724 base::Bind(&TileManager::OnRasterTaskCompleted,
725 base::Unretained(this), 725 base::Unretained(this),
726 make_scoped_refptr(tile), 726 make_scoped_refptr(tile),
727 base::Passed(&resource), 727 base::Passed(&resource),
728 mts.raster_mode), 728 mts.raster_mode),
729 decode_tasks); 729 &decode_tasks);
730 } 730 }
731 731
732 void TileManager::OnImageDecodeTaskCompleted( 732 void TileManager::OnImageDecodeTaskCompleted(
733 int layer_id, 733 int layer_id,
734 skia::LazyPixelRef* pixel_ref, 734 skia::LazyPixelRef* pixel_ref,
735 bool was_canceled) { 735 bool was_canceled) {
736 // If the task was canceled, we need to clean it up 736 // If the task was canceled, we need to clean it up
737 // from |image_decode_tasks_|. 737 // from |image_decode_tasks_|.
738 if (!was_canceled) 738 if (!was_canceled)
739 return; 739 return;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 } 800 }
801 801
802 void TileManager::DidTileTreeBinChange(Tile* tile, 802 void TileManager::DidTileTreeBinChange(Tile* tile,
803 TileManagerBin new_tree_bin, 803 TileManagerBin new_tree_bin,
804 WhichTree tree) { 804 WhichTree tree) {
805 ManagedTileState& mts = tile->managed_state(); 805 ManagedTileState& mts = tile->managed_state();
806 mts.tree_bin[tree] = new_tree_bin; 806 mts.tree_bin[tree] = new_tree_bin;
807 } 807 }
808 808
809 } // namespace cc 809 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/raster_worker_pool_unittest.cc ('k') | cc/resources/worker_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698