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

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

Issue 1028333002: Chromium -> Mojo roll. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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/picture_layer_tiling_unittest.cc » ('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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 for (auto* tiling : tilings_) { 321 for (auto* tiling : tilings_) {
322 tiling->set_can_require_tiles_for_activation( 322 tiling->set_can_require_tiles_for_activation(
323 can_require_tiles_for_activation); 323 can_require_tiles_for_activation);
324 updated |= tiling->ComputeTilePriorityRects( 324 updated |= tiling->ComputeTilePriorityRects(
325 required_rect_in_layer_space, ideal_contents_scale, 325 required_rect_in_layer_space, ideal_contents_scale,
326 current_frame_time_in_seconds, occlusion_in_layer_space); 326 current_frame_time_in_seconds, occlusion_in_layer_space);
327 } 327 }
328 return updated; 328 return updated;
329 } 329 }
330 330
331 void PictureLayerTilingSet::GetAllTilesForTracing( 331 void PictureLayerTilingSet::GetAllTilesAndPrioritiesForTracing(
332 std::set<const Tile*>* tiles) const { 332 std::map<const Tile*, TilePriority>* tile_map) const {
333 for (auto* tiling : tilings_) 333 for (auto* tiling : tilings_)
334 tiling->GetAllTilesForTracing(tiles); 334 tiling->GetAllTilesAndPrioritiesForTracing(tile_map);
335 } 335 }
336 336
337 PictureLayerTilingSet::CoverageIterator::CoverageIterator( 337 PictureLayerTilingSet::CoverageIterator::CoverageIterator(
338 const PictureLayerTilingSet* set, 338 const PictureLayerTilingSet* set,
339 float contents_scale, 339 float contents_scale,
340 const gfx::Rect& content_rect, 340 const gfx::Rect& content_rect,
341 float ideal_contents_scale) 341 float ideal_contents_scale)
342 : set_(set), 342 : set_(set),
343 contents_scale_(contents_scale), 343 contents_scale_(contents_scale),
344 ideal_contents_scale_(ideal_contents_scale), 344 ideal_contents_scale_(ideal_contents_scale),
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 case LOWER_THAN_LOW_RES: 549 case LOWER_THAN_LOW_RES:
550 range = TilingRange(low_res_range.end, tilings_.size()); 550 range = TilingRange(low_res_range.end, tilings_.size());
551 break; 551 break;
552 } 552 }
553 553
554 DCHECK_LE(range.start, range.end); 554 DCHECK_LE(range.start, range.end);
555 return range; 555 return range;
556 } 556 }
557 557
558 } // namespace cc 558 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/picture_layer_tiling_set.h ('k') | cc/resources/picture_layer_tiling_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698