| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <utility> | 5 #include <utility> |
| 6 | 6 |
| 7 #include "cc/resources/tiling_set_eviction_queue.h" | 7 #include "cc/tiles/tiling_set_eviction_queue.h" |
| 8 | 8 |
| 9 namespace cc { | 9 namespace cc { |
| 10 | 10 |
| 11 TilingSetEvictionQueue::TilingSetEvictionQueue( | 11 TilingSetEvictionQueue::TilingSetEvictionQueue( |
| 12 PictureLayerTilingSet* tiling_set) | 12 PictureLayerTilingSet* tiling_set) |
| 13 : tree_(tiling_set->tree()), phase_(EVENTUALLY_RECT) { | 13 : tree_(tiling_set->tree()), phase_(EVENTUALLY_RECT) { |
| 14 // Early out if the layer has no tilings. | 14 // Early out if the layer has no tilings. |
| 15 if (!tiling_set->num_tilings()) | 15 if (!tiling_set->num_tilings()) |
| 16 return; | 16 return; |
| 17 GenerateTilingOrder(tiling_set); | 17 GenerateTilingOrder(tiling_set); |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 | 514 |
| 515 bool TilingSetEvictionQueue::VisibleTilingIterator::TileMatchesRequiredFlags( | 515 bool TilingSetEvictionQueue::VisibleTilingIterator::TileMatchesRequiredFlags( |
| 516 const PrioritizedTile& tile) const { | 516 const PrioritizedTile& tile) const { |
| 517 bool activation_flag_matches = tile.tile()->required_for_activation() == | 517 bool activation_flag_matches = tile.tile()->required_for_activation() == |
| 518 return_required_for_activation_tiles_; | 518 return_required_for_activation_tiles_; |
| 519 bool occluded_flag_matches = tile.is_occluded() == return_occluded_tiles_; | 519 bool occluded_flag_matches = tile.is_occluded() == return_occluded_tiles_; |
| 520 return activation_flag_matches && occluded_flag_matches; | 520 return activation_flag_matches && occluded_flag_matches; |
| 521 } | 521 } |
| 522 | 522 |
| 523 } // namespace cc | 523 } // namespace cc |
| OLD | NEW |