OLD | NEW |
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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 // When blocking, this prevents client_->NotifyReadyToActivate() from being | 211 // When blocking, this prevents client_->NotifyReadyToActivate() from being |
212 // called. When disabled, it calls client_->NotifyReadyToActivate() | 212 // called. When disabled, it calls client_->NotifyReadyToActivate() |
213 // immediately if any notifications had been blocked while blocking. | 213 // immediately if any notifications had been blocked while blocking. |
214 virtual void BlockNotifyReadyToActivateForTesting(bool block); | 214 virtual void BlockNotifyReadyToActivateForTesting(bool block); |
215 | 215 |
216 // This allows us to inject DidInitializeVisibleTile events for testing. | 216 // This allows us to inject DidInitializeVisibleTile events for testing. |
217 void DidInitializeVisibleTileForTesting(); | 217 void DidInitializeVisibleTileForTesting(); |
218 | 218 |
219 // Resets all of the trees to an empty state. | 219 // Resets all of the trees to an empty state. |
220 void ResetTreesForTesting(); | 220 void ResetTreesForTesting(); |
| 221 void ResetRecycleTreeForTesting(); |
221 | 222 |
222 DrawMode GetDrawMode() const; | 223 DrawMode GetDrawMode() const; |
223 | 224 |
224 // Viewport size in draw space: this size is in physical pixels and is used | 225 // Viewport size in draw space: this size is in physical pixels and is used |
225 // for draw properties, tilings, quads and render passes. | 226 // for draw properties, tilings, quads and render passes. |
226 gfx::Size DrawViewportSize() const; | 227 gfx::Size DrawViewportSize() const; |
227 | 228 |
228 // Viewport rect in view space used for tiling prioritization. | 229 // Viewport rect in view space used for tiling prioritization. |
229 const gfx::Rect ViewportRectForTilePriority() const; | 230 const gfx::Rect ViewportRectForTilePriority() const; |
230 | 231 |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; | 710 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; |
710 | 711 |
711 bool requires_high_res_to_draw_; | 712 bool requires_high_res_to_draw_; |
712 | 713 |
713 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 714 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
714 }; | 715 }; |
715 | 716 |
716 } // namespace cc | 717 } // namespace cc |
717 | 718 |
718 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 719 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |