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

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

Issue 399233004: (Reland) cc: Remove recycled tilings when active tree removes them. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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/trees/layer_tree_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 return tree->LayerById(id); 711 return tree->LayerById(id);
712 } 712 }
713 713
714 LayerImpl* LayerTreeImpl::FindPendingTreeLayerById(int id) { 714 LayerImpl* LayerTreeImpl::FindPendingTreeLayerById(int id) {
715 LayerTreeImpl* tree = layer_tree_host_impl_->pending_tree(); 715 LayerTreeImpl* tree = layer_tree_host_impl_->pending_tree();
716 if (!tree) 716 if (!tree)
717 return NULL; 717 return NULL;
718 return tree->LayerById(id); 718 return tree->LayerById(id);
719 } 719 }
720 720
721 LayerImpl* LayerTreeImpl::FindRecycleTreeLayerById(int id) {
722 LayerTreeImpl* tree = layer_tree_host_impl_->recycle_tree();
723 if (!tree)
724 return NULL;
725 return tree->LayerById(id);
726 }
727
721 int LayerTreeImpl::MaxTextureSize() const { 728 int LayerTreeImpl::MaxTextureSize() const {
722 return layer_tree_host_impl_->GetRendererCapabilities().max_texture_size; 729 return layer_tree_host_impl_->GetRendererCapabilities().max_texture_size;
723 } 730 }
724 731
725 bool LayerTreeImpl::PinchGestureActive() const { 732 bool LayerTreeImpl::PinchGestureActive() const {
726 return layer_tree_host_impl_->pinch_gesture_active(); 733 return layer_tree_host_impl_->pinch_gesture_active();
727 } 734 }
728 735
729 base::TimeTicks LayerTreeImpl::CurrentFrameTimeTicks() const { 736 base::TimeTicks LayerTreeImpl::CurrentFrameTimeTicks() const {
730 return layer_tree_host_impl_->CurrentFrameTimeTicks(); 737 return layer_tree_host_impl_->CurrentFrameTimeTicks();
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
1375 1382
1376 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { 1383 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) {
1377 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); 1384 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer);
1378 } 1385 }
1379 1386
1380 void LayerTreeImpl::InputScrollAnimationFinished() { 1387 void LayerTreeImpl::InputScrollAnimationFinished() {
1381 layer_tree_host_impl_->ScrollEnd(); 1388 layer_tree_host_impl_->ScrollEnd();
1382 } 1389 }
1383 1390
1384 } // namespace cc 1391 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698