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

Side by Side Diff: cc/layers/picture_layer_impl.cc

Issue 265883013: cc: Add a flag to layers that returns true if the layer is in RSLL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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/layers/picture_layer_impl.h" 5 #include "cc/layers/picture_layer_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 // better scheme would be to maintain a tighter visible_content_rect for the 344 // better scheme would be to maintain a tighter visible_content_rect for the
345 // finer tilings. 345 // finer tilings.
346 CleanUpTilingsOnActiveLayer(seen_tilings); 346 CleanUpTilingsOnActiveLayer(seen_tilings);
347 } 347 }
348 348
349 void PictureLayerImpl::DidUnregisterLayer() { 349 void PictureLayerImpl::DidUnregisterLayer() {
350 layer_needs_to_register_itself_ = true; 350 layer_needs_to_register_itself_ = true;
351 } 351 }
352 352
353 void PictureLayerImpl::UpdateTilePriorities() { 353 void PictureLayerImpl::UpdateTilePriorities() {
354 DCHECK(is_render_surface_list_member());
354 DCHECK(!needs_post_commit_initialization_); 355 DCHECK(!needs_post_commit_initialization_);
355 CHECK(should_update_tile_priorities_); 356 CHECK(should_update_tile_priorities_);
356 357
357 if (layer_needs_to_register_itself_) { 358 if (layer_needs_to_register_itself_) {
358 layer_tree_impl()->tile_manager()->RegisterPictureLayerImpl(this); 359 layer_tree_impl()->tile_manager()->RegisterPictureLayerImpl(this);
359 layer_needs_to_register_itself_ = false; 360 layer_needs_to_register_itself_ = false;
360 } 361 }
361 362
362 if (layer_tree_impl()->device_viewport_valid_for_tile_management()) { 363 if (layer_tree_impl()->device_viewport_valid_for_tile_management()) {
363 visible_rect_for_tile_priority_ = visible_content_rect(); 364 visible_rect_for_tile_priority_ = visible_content_rect();
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1554 return iterator_index_ < iterators_.size(); 1555 return iterator_index_ < iterators_.size();
1555 } 1556 }
1556 1557
1557 bool PictureLayerImpl::LayerEvictionTileIterator::IsCorrectType( 1558 bool PictureLayerImpl::LayerEvictionTileIterator::IsCorrectType(
1558 PictureLayerTiling::TilingEvictionTileIterator* it) const { 1559 PictureLayerTiling::TilingEvictionTileIterator* it) const {
1559 return it->get_type() == iteration_stage_ && 1560 return it->get_type() == iteration_stage_ &&
1560 (**it)->required_for_activation() == required_for_activation_; 1561 (**it)->required_for_activation() == required_for_activation_;
1561 } 1562 }
1562 1563
1563 } // namespace cc 1564 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698