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

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

Issue 900073003: cc: Rework how picture layer tiling set gets into raster queues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 5 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
« no previous file with comments | « cc/resources/picture_layer_tiling_set.h ('k') | cc/resources/raster_tile_priority_queue.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 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/resources/picture_layer_tiling_set.h" 5 #include "cc/resources/picture_layer_tiling_set.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 } 314 }
315 return updated; 315 return updated;
316 } 316 }
317 317
318 void PictureLayerTilingSet::GetAllTilesForTracing( 318 void PictureLayerTilingSet::GetAllTilesForTracing(
319 std::set<const Tile*>* tiles) const { 319 std::set<const Tile*>* tiles) const {
320 for (auto* tiling : tilings_) 320 for (auto* tiling : tilings_)
321 tiling->GetAllTilesForTracing(tiles); 321 tiling->GetAllTilesForTracing(tiles);
322 } 322 }
323 323
324 bool PictureLayerTilingSet::HasValidTilePriorities() const {
325 return client()->HasValidTilePriorities();
326 }
327
324 PictureLayerTilingSet::CoverageIterator::CoverageIterator( 328 PictureLayerTilingSet::CoverageIterator::CoverageIterator(
325 const PictureLayerTilingSet* set, 329 const PictureLayerTilingSet* set,
326 float contents_scale, 330 float contents_scale,
327 const gfx::Rect& content_rect, 331 const gfx::Rect& content_rect,
328 float ideal_contents_scale) 332 float ideal_contents_scale)
329 : set_(set), 333 : set_(set),
330 contents_scale_(contents_scale), 334 contents_scale_(contents_scale),
331 ideal_contents_scale_(ideal_contents_scale), 335 ideal_contents_scale_(ideal_contents_scale),
332 current_tiling_(-1) { 336 current_tiling_(-1) {
333 missing_region_.Union(content_rect); 337 missing_region_.Union(content_rect);
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 case LOWER_THAN_LOW_RES: 540 case LOWER_THAN_LOW_RES:
537 range = TilingRange(low_res_range.end, tilings_.size()); 541 range = TilingRange(low_res_range.end, tilings_.size());
538 break; 542 break;
539 } 543 }
540 544
541 DCHECK_LE(range.start, range.end); 545 DCHECK_LE(range.start, range.end);
542 return range; 546 return range;
543 } 547 }
544 548
545 } // namespace cc 549 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/picture_layer_tiling_set.h ('k') | cc/resources/raster_tile_priority_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698