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

Side by Side Diff: cc/trees/layer_tree_host_impl.h

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/layers/picture_layer_impl.cc ('k') | cc/trees/layer_tree_impl.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 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 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 289
290 virtual bool SwapBuffers(const FrameData& frame); 290 virtual bool SwapBuffers(const FrameData& frame);
291 void SetNeedsBeginFrame(bool enable); 291 void SetNeedsBeginFrame(bool enable);
292 virtual void WillBeginImplFrame(const BeginFrameArgs& args); 292 virtual void WillBeginImplFrame(const BeginFrameArgs& args);
293 void DidModifyTilePriorities(); 293 void DidModifyTilePriorities();
294 294
295 LayerTreeImpl* active_tree() { return active_tree_.get(); } 295 LayerTreeImpl* active_tree() { return active_tree_.get(); }
296 const LayerTreeImpl* active_tree() const { return active_tree_.get(); } 296 const LayerTreeImpl* active_tree() const { return active_tree_.get(); }
297 LayerTreeImpl* pending_tree() { return pending_tree_.get(); } 297 LayerTreeImpl* pending_tree() { return pending_tree_.get(); }
298 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); } 298 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); }
299 LayerTreeImpl* recycle_tree() { return recycle_tree_.get(); }
299 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); } 300 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); }
300 // Returns the tree LTH synchronizes with. 301 // Returns the tree LTH synchronizes with.
301 LayerTreeImpl* sync_tree() { 302 LayerTreeImpl* sync_tree() {
302 return pending_tree_ ? pending_tree_.get() : active_tree_.get(); 303 return pending_tree_ ? pending_tree_.get() : active_tree_.get();
303 } 304 }
304 virtual void CreatePendingTree(); 305 virtual void CreatePendingTree();
305 virtual void UpdateVisibleTiles(); 306 virtual void UpdateVisibleTiles();
306 virtual void ActivateSyncTree(); 307 virtual void ActivateSyncTree();
307 308
308 // Shortcuts to layers on the active tree. 309 // Shortcuts to layers on the active tree.
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 size_t transfer_buffer_memory_limit_; 691 size_t transfer_buffer_memory_limit_;
691 692
692 std::vector<PictureLayerImpl*> picture_layers_; 693 std::vector<PictureLayerImpl*> picture_layers_;
693 694
694 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 695 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
695 }; 696 };
696 697
697 } // namespace cc 698 } // namespace cc
698 699
699 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 700 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl.cc ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698