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

Side by Side Diff: cc/trees/layer_tree_impl.cc

Issue 343653004: cc: Don't add new tilings while syncing a tiling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: managetilingsinsync: perftest Created 6 years, 6 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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/trees/layer_tree_impl.h" 5 #include "cc/trees/layer_tree_impl.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <set> 8 #include <set>
9 9
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 // UpdateTilePriorities on layers that will be visible (and thus have valid 490 // UpdateTilePriorities on layers that will be visible (and thus have valid
491 // draw properties) and not because any ordering is required. 491 // draw properties) and not because any ordering is required.
492 typedef LayerIterator<LayerImpl> LayerIteratorType; 492 typedef LayerIterator<LayerImpl> LayerIteratorType;
493 LayerIteratorType end = LayerIteratorType::End(&render_surface_layer_list_); 493 LayerIteratorType end = LayerIteratorType::End(&render_surface_layer_list_);
494 for (LayerIteratorType it = 494 for (LayerIteratorType it =
495 LayerIteratorType::Begin(&render_surface_layer_list_); 495 LayerIteratorType::Begin(&render_surface_layer_list_);
496 it != end; 496 it != end;
497 ++it) { 497 ++it) {
498 LayerImpl* layer = *it; 498 LayerImpl* layer = *it;
499 if (it.represents_itself()) 499 if (it.represents_itself())
500 layer->UpdateTilePriorities(); 500 layer->UpdateTiles();
501 501
502 if (!it.represents_contributing_render_surface()) 502 if (!it.represents_contributing_render_surface())
503 continue; 503 continue;
504 504
505 if (layer->mask_layer()) 505 if (layer->mask_layer())
506 layer->mask_layer()->UpdateTilePriorities(); 506 layer->mask_layer()->UpdateTiles();
507 if (layer->replica_layer() && layer->replica_layer()->mask_layer()) 507 if (layer->replica_layer() && layer->replica_layer()->mask_layer())
508 layer->replica_layer()->mask_layer()->UpdateTilePriorities(); 508 layer->replica_layer()->mask_layer()->UpdateTiles();
509 } 509 }
510 } 510 }
511 511
512 DCHECK(!needs_update_draw_properties_) << 512 DCHECK(!needs_update_draw_properties_) <<
513 "CalcDrawProperties should not set_needs_update_draw_properties()"; 513 "CalcDrawProperties should not set_needs_update_draw_properties()";
514 return true; 514 return true;
515 } 515 }
516 516
517 const LayerImplList& LayerTreeImpl::RenderSurfaceLayerList() const { 517 const LayerImplList& LayerTreeImpl::RenderSurfaceLayerList() const {
518 // If this assert triggers, then the list is dirty. 518 // If this assert triggers, then the list is dirty.
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
1292 1292
1293 void LayerTreeImpl::RegisterPictureLayerImpl(PictureLayerImpl* layer) { 1293 void LayerTreeImpl::RegisterPictureLayerImpl(PictureLayerImpl* layer) {
1294 layer_tree_host_impl_->RegisterPictureLayerImpl(layer); 1294 layer_tree_host_impl_->RegisterPictureLayerImpl(layer);
1295 } 1295 }
1296 1296
1297 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { 1297 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) {
1298 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); 1298 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer);
1299 } 1299 }
1300 1300
1301 } // namespace cc 1301 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698