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

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

Issue 502453003: cc: Remove tiles from recycle tree that were deleted on active. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: don't maintain recycled twin Created 6 years, 3 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/test/fake_picture_layer_tiling_client.cc ('k') | cc/trees/layer_tree_host_impl.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 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // When blocking, this prevents client_->NotifyReadyToActivate() from being 210 // When blocking, this prevents client_->NotifyReadyToActivate() from being
211 // called. When disabled, it calls client_->NotifyReadyToActivate() 211 // called. When disabled, it calls client_->NotifyReadyToActivate()
212 // immediately if any notifications had been blocked while blocking. 212 // immediately if any notifications had been blocked while blocking.
213 virtual void BlockNotifyReadyToActivateForTesting(bool block); 213 virtual void BlockNotifyReadyToActivateForTesting(bool block);
214 214
215 // This allows us to inject DidInitializeVisibleTile events for testing. 215 // This allows us to inject DidInitializeVisibleTile events for testing.
216 void DidInitializeVisibleTileForTesting(); 216 void DidInitializeVisibleTileForTesting();
217 217
218 // Resets all of the trees to an empty state. 218 // Resets all of the trees to an empty state.
219 void ResetTreesForTesting(); 219 void ResetTreesForTesting();
220 void ResetRecycleTreeForTesting();
220 221
221 DrawMode GetDrawMode() const; 222 DrawMode GetDrawMode() const;
222 223
223 // Viewport size in draw space: this size is in physical pixels and is used 224 // Viewport size in draw space: this size is in physical pixels and is used
224 // for draw properties, tilings, quads and render passes. 225 // for draw properties, tilings, quads and render passes.
225 gfx::Size DrawViewportSize() const; 226 gfx::Size DrawViewportSize() const;
226 227
227 // Viewport rect in view space used for tiling prioritization. 228 // Viewport rect in view space used for tiling prioritization.
228 const gfx::Rect ViewportRectForTilePriority() const; 229 const gfx::Rect ViewportRectForTilePriority() const;
229 230
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 709
709 std::vector<PictureLayerImpl*> picture_layers_; 710 std::vector<PictureLayerImpl*> picture_layers_;
710 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; 711 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_;
711 712
712 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 713 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
713 }; 714 };
714 715
715 } // namespace cc 716 } // namespace cc
716 717
717 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 718 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/fake_picture_layer_tiling_client.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698