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

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

Issue 852553002: cc: Remove dead code from TilingSetEvictionQueue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/tiling_set_eviction_queue.h ('k') | no next file » | 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/resources/tiling_set_eviction_queue.h"
8 8
9 namespace cc { 9 namespace cc {
10 10
11 TilingSetEvictionQueue::TilingSetEvictionQueue()
12 : tiling_set_(nullptr),
13 tree_(ACTIVE_TREE),
14 tree_priority_(SAME_PRIORITY_FOR_BOTH_TREES),
15 skip_all_shared_tiles_(false),
16 skip_shared_out_of_order_tiles_(false),
17 processing_soon_border_rect_(false),
18 processing_tiling_with_required_for_activation_tiles_(false),
19 tiling_index_with_required_for_activation_tiles_(0u),
20 current_priority_bin_(TilePriority::EVENTUALLY),
21 current_tiling_index_(0u),
22 current_tiling_range_type_(PictureLayerTilingSet::HIGHER_THAN_HIGH_RES),
23 current_eviction_tile_(nullptr) {
24 }
25
26 TilingSetEvictionQueue::TilingSetEvictionQueue( 11 TilingSetEvictionQueue::TilingSetEvictionQueue(
27 PictureLayerTilingSet* tiling_set, 12 PictureLayerTilingSet* tiling_set,
28 TreePriority tree_priority, 13 TreePriority tree_priority,
29 bool skip_shared_out_of_order_tiles) 14 bool skip_shared_out_of_order_tiles)
30 : tiling_set_(tiling_set), 15 : tiling_set_(tiling_set),
31 tree_(tiling_set->client()->GetTree()), 16 tree_(tiling_set->client()->GetTree()),
32 tree_priority_(tree_priority), 17 tree_priority_(tree_priority),
33 skip_all_shared_tiles_( 18 skip_all_shared_tiles_(
34 skip_shared_out_of_order_tiles && 19 skip_shared_out_of_order_tiles &&
35 tree_priority == (tree_ == ACTIVE_TREE ? NEW_CONTENT_TAKES_PRIORITY 20 tree_priority == (tree_ == ACTIVE_TREE ? NEW_CONTENT_TAKES_PRIORITY
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 tiling_set_->client()->GetPendingOrActiveTwinTiling(tiling); 384 tiling_set_->client()->GetPendingOrActiveTwinTiling(tiling);
400 if (pending_tiling && pending_tiling->resolution() == HIGH_RESOLUTION) 385 if (pending_tiling && pending_tiling->resolution() == HIGH_RESOLUTION)
401 return i; 386 return i;
402 } 387 }
403 } 388 }
404 389
405 return num_tilings; 390 return num_tilings;
406 } 391 }
407 392
408 } // namespace cc 393 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/tiling_set_eviction_queue.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698