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

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

Issue 1051993002: cc: Remove tile sharing from tilings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
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
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 if (skip_all_shared_tiles_ && tile->is_shared()) 113 if (skip_all_shared_tiles_ && tile->is_shared())
114 continue; 114 continue;
115 // If the max tile priority is not NOW, updated priorities for tiles 115 // If the max tile priority is not NOW, updated priorities for tiles
116 // returned by the visible iterator will not have NOW (but EVENTUALLY) 116 // returned by the visible iterator will not have NOW (but EVENTUALLY)
117 // priority bin and cannot therefore be required for activation tiles nor 117 // priority bin and cannot therefore be required for activation tiles nor
118 // occluded NOW tiles in the current tiling. 118 // occluded NOW tiles in the current tiling.
119 if (max_tile_priority_bin <= TilePriority::NOW) { 119 if (max_tile_priority_bin <= TilePriority::NOW) {
120 // If the current tiling is a pending tree tiling, required for 120 // If the current tiling is a pending tree tiling, required for
121 // activation tiles can be detected without updating tile priorities. 121 // activation tiles can be detected without updating tile priorities.
122 if (tree_ == PENDING_TREE && 122 if (tree_ == PENDING_TREE &&
123 current_tiling_->IsTileRequiredForActivationIfVisible(tile) != 123 current_tiling_->IsTileRequiredForActivation(tile) !=
124 required_for_activation) { 124 required_for_activation) {
125 continue; 125 continue;
126 } 126 }
127 // Unoccluded NOW tiles should be evicted (and thus returned) only after 127 // Unoccluded NOW tiles should be evicted (and thus returned) only after
128 // all occluded NOW tiles. 128 // all occluded NOW tiles.
129 if (!current_tiling_->IsTileOccluded(tile)) { 129 if (!current_tiling_->IsTileOccluded(tile)) {
130 unoccluded_now_tiles_.push_back(tile); 130 unoccluded_now_tiles_.push_back(tile);
131 continue; 131 continue;
132 } 132 }
133 } 133 }
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 tiling_set_->client()->GetPendingOrActiveTwinTiling(tiling); 381 tiling_set_->client()->GetPendingOrActiveTwinTiling(tiling);
382 if (pending_tiling && pending_tiling->resolution() == HIGH_RESOLUTION) 382 if (pending_tiling && pending_tiling->resolution() == HIGH_RESOLUTION)
383 return i; 383 return i;
384 } 384 }
385 } 385 }
386 386
387 return num_tilings; 387 return num_tilings;
388 } 388 }
389 389
390 } // namespace cc 390 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698