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

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

Issue 2668873002: cc: Add checker-imaging support to TileManager. (Closed)
Patch Set: Created 3 years, 10 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 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/tiles/picture_layer_tiling_set.h" 5 #include "cc/tiles/picture_layer_tiling_set.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <limits> 9 #include <limits>
10 #include <set> 10 #include <set>
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 for (const auto& tiling : tilings_) { 188 for (const auto& tiling : tilings_) {
189 tiling->SetRasterSourceAndResize(raster_source); 189 tiling->SetRasterSourceAndResize(raster_source);
190 tiling->Invalidate(layer_invalidation); 190 tiling->Invalidate(layer_invalidation);
191 state_since_last_tile_priority_update_.invalidated = true; 191 state_since_last_tile_priority_update_.invalidated = true;
192 // Since the invalidation changed, we need to create any missing tiles in 192 // Since the invalidation changed, we need to create any missing tiles in
193 // the live tiles rect again. 193 // the live tiles rect again.
194 tiling->CreateMissingTilesInLiveTilesRect(); 194 tiling->CreateMissingTilesInLiveTilesRect();
195 } 195 }
196 } 196 }
197 197
198 void PictureLayerTilingSet::UpdateTilingsForImplSideInvalidation(
vmpstr 2017/02/03 23:42:32 Invalidate?
Khushal 2017/02/07 00:25:32 You mean InvalidateTilings...? I kept it consisten
199 const Region& layer_invalidation) {
200 for (const auto& tiling : tilings_) {
201 tiling->Invalidate(layer_invalidation);
202 state_since_last_tile_priority_update_.invalidated = true;
203 tiling->CreateMissingTilesInLiveTilesRect();
204 }
205 }
206
198 void PictureLayerTilingSet::VerifyTilings( 207 void PictureLayerTilingSet::VerifyTilings(
199 const PictureLayerTilingSet* pending_twin_set) const { 208 const PictureLayerTilingSet* pending_twin_set) const {
200 #if DCHECK_IS_ON() 209 #if DCHECK_IS_ON()
201 for (const auto& tiling : tilings_) { 210 for (const auto& tiling : tilings_) {
202 DCHECK(tiling->tile_size() == 211 DCHECK(tiling->tile_size() ==
203 client_->CalculateTileSize(tiling->tiling_size())) 212 client_->CalculateTileSize(tiling->tiling_size()))
204 << "tile_size: " << tiling->tile_size().ToString() 213 << "tile_size: " << tiling->tile_size().ToString()
205 << " tiling_size: " << tiling->tiling_size().ToString() 214 << " tiling_size: " << tiling->tiling_size().ToString()
206 << " CalculateTileSize: " 215 << " CalculateTileSize: "
207 << client_->CalculateTileSize(tiling->tiling_size()).ToString(); 216 << client_->CalculateTileSize(tiling->tiling_size()).ToString();
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 case LOWER_THAN_LOW_RES: 780 case LOWER_THAN_LOW_RES:
772 range = TilingRange(low_res_range.end, tilings_size); 781 range = TilingRange(low_res_range.end, tilings_size);
773 break; 782 break;
774 } 783 }
775 784
776 DCHECK_LE(range.start, range.end); 785 DCHECK_LE(range.start, range.end);
777 return range; 786 return range;
778 } 787 }
779 788
780 } // namespace cc 789 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698