OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |