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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <bitset> | 10 #include <bitset> |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 | 306 |
307 // Evict all textures by enforcing a memory policy with an allocation of 0. | 307 // Evict all textures by enforcing a memory policy with an allocation of 0. |
308 void EvictTexturesForTesting(); | 308 void EvictTexturesForTesting(); |
309 | 309 |
310 // When blocking, this prevents client_->NotifyReadyToActivate() from being | 310 // When blocking, this prevents client_->NotifyReadyToActivate() from being |
311 // called. When disabled, it calls client_->NotifyReadyToActivate() | 311 // called. When disabled, it calls client_->NotifyReadyToActivate() |
312 // immediately if any notifications had been blocked while blocking. | 312 // immediately if any notifications had been blocked while blocking. |
313 virtual void BlockNotifyReadyToActivateForTesting(bool block); | 313 virtual void BlockNotifyReadyToActivateForTesting(bool block); |
314 | 314 |
315 // Resets all of the trees to an empty state. | 315 // Resets all of the trees to an empty state. |
316 void ResetTreesForTesting(); | 316 void ResetTrees(); |
317 | 317 |
318 size_t SourceAnimationFrameNumberForTesting() const; | 318 size_t SourceAnimationFrameNumberForTesting() const; |
319 | 319 |
320 void RegisterScrollbarAnimationController(int scroll_layer_id); | 320 void RegisterScrollbarAnimationController(int scroll_layer_id); |
321 void UnregisterScrollbarAnimationController(int scroll_layer_id); | 321 void UnregisterScrollbarAnimationController(int scroll_layer_id); |
322 ScrollbarAnimationController* ScrollbarAnimationControllerForId( | 322 ScrollbarAnimationController* ScrollbarAnimationControllerForId( |
323 int scroll_layer_id) const; | 323 int scroll_layer_id) const; |
324 | 324 |
325 DrawMode GetDrawMode() const; | 325 DrawMode GetDrawMode() const; |
326 | 326 |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 | 822 |
823 std::unique_ptr<PendingTreeDurationHistogramTimer> | 823 std::unique_ptr<PendingTreeDurationHistogramTimer> |
824 pending_tree_duration_timer_; | 824 pending_tree_duration_timer_; |
825 | 825 |
826 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 826 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
827 }; | 827 }; |
828 | 828 |
829 } // namespace cc | 829 } // namespace cc |
830 | 830 |
831 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 831 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |