Chromium Code Reviews| 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 <limits> | 8 #include <limits> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 828 decode_tasks.Insert(decode_task); | 828 decode_tasks.Insert(decode_task); |
| 829 existing_pixel_refs[id] = decode_task; | 829 existing_pixel_refs[id] = decode_task; |
| 830 } | 830 } |
| 831 | 831 |
| 832 return RasterWorkerPool::CreateRasterTask( | 832 return RasterWorkerPool::CreateRasterTask( |
| 833 const_resource, | 833 const_resource, |
| 834 tile->picture_pile(), | 834 tile->picture_pile(), |
| 835 tile->content_rect(), | 835 tile->content_rect(), |
| 836 tile->contents_scale(), | 836 tile->contents_scale(), |
| 837 mts.raster_mode, | 837 mts.raster_mode, |
| 838 mts.tree_bin[PENDING_TREE] == NOW_BIN, | |
|
reveman
2013/10/07 14:12:57
I think you can also make tree_bin local to GetTil
ernstm
2013/10/07 18:19:07
Done.
| |
| 839 mts.resolution, | 838 mts.resolution, |
| 840 tile->layer_id(), | 839 tile->layer_id(), |
| 841 static_cast<const void *>(tile), | 840 static_cast<const void *>(tile), |
| 842 tile->source_frame_number(), | 841 tile->source_frame_number(), |
| 843 rendering_stats_instrumentation_, | 842 rendering_stats_instrumentation_, |
| 844 base::Bind(&TileManager::OnRasterTaskCompleted, | 843 base::Bind(&TileManager::OnRasterTaskCompleted, |
| 845 base::Unretained(this), | 844 base::Unretained(this), |
| 846 tile->id(), | 845 tile->id(), |
| 847 base::Passed(&resource), | 846 base::Passed(&resource), |
| 848 mts.raster_mode), | 847 mts.raster_mode), |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 936 can_use_lcd_text)); | 935 can_use_lcd_text)); |
| 937 DCHECK(tiles_.find(tile->id()) == tiles_.end()); | 936 DCHECK(tiles_.find(tile->id()) == tiles_.end()); |
| 938 | 937 |
| 939 tiles_[tile->id()] = tile; | 938 tiles_[tile->id()] = tile; |
| 940 used_layer_counts_[tile->layer_id()]++; | 939 used_layer_counts_[tile->layer_id()]++; |
| 941 prioritized_tiles_dirty_ = true; | 940 prioritized_tiles_dirty_ = true; |
| 942 return tile; | 941 return tile; |
| 943 } | 942 } |
| 944 | 943 |
| 945 } // namespace cc | 944 } // namespace cc |
| OLD | NEW |