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

Side by Side Diff: cc/tiles/tiling_set_eviction_queue.cc

Issue 1144693002: cc: Move files out of cc/resources/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resources: android Created 5 years, 7 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/tiles/tiling_set_eviction_queue.h ('k') | cc/tiles/tiling_set_raster_queue_all.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 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
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
OLDNEW
« no previous file with comments | « cc/tiles/tiling_set_eviction_queue.h ('k') | cc/tiles/tiling_set_raster_queue_all.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698