| 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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 void NotifyReadyToActivate() override; | 345 void NotifyReadyToActivate() override; |
| 346 void NotifyReadyToDraw() override; | 346 void NotifyReadyToDraw() override; |
| 347 void NotifyAllTileTasksCompleted() override; | 347 void NotifyAllTileTasksCompleted() override; |
| 348 void NotifyTileStateChanged(const Tile* tile) override; | 348 void NotifyTileStateChanged(const Tile* tile) override; |
| 349 std::unique_ptr<RasterTilePriorityQueue> BuildRasterQueue( | 349 std::unique_ptr<RasterTilePriorityQueue> BuildRasterQueue( |
| 350 TreePriority tree_priority, | 350 TreePriority tree_priority, |
| 351 RasterTilePriorityQueue::Type type) override; | 351 RasterTilePriorityQueue::Type type) override; |
| 352 std::unique_ptr<EvictionTilePriorityQueue> BuildEvictionQueue( | 352 std::unique_ptr<EvictionTilePriorityQueue> BuildEvictionQueue( |
| 353 TreePriority tree_priority) override; | 353 TreePriority tree_priority) override; |
| 354 void SetIsLikelyToRequireADraw(bool is_likely_to_require_a_draw) override; | 354 void SetIsLikelyToRequireADraw(bool is_likely_to_require_a_draw) override; |
| 355 const gfx::ColorSpace& GetTileColorSpace() const override; |
| 355 | 356 |
| 356 // ScrollbarAnimationControllerClient implementation. | 357 // ScrollbarAnimationControllerClient implementation. |
| 357 void PostDelayedScrollbarAnimationTask(const base::Closure& task, | 358 void PostDelayedScrollbarAnimationTask(const base::Closure& task, |
| 358 base::TimeDelta delay) override; | 359 base::TimeDelta delay) override; |
| 359 void SetNeedsAnimateForScrollbarAnimation() override; | 360 void SetNeedsAnimateForScrollbarAnimation() override; |
| 360 void SetNeedsRedrawForScrollbarAnimation() override; | 361 void SetNeedsRedrawForScrollbarAnimation() override; |
| 361 ScrollbarSet ScrollbarsFor(int scroll_layer_id) const override; | 362 ScrollbarSet ScrollbarsFor(int scroll_layer_id) const override; |
| 362 | 363 |
| 363 // VideoBeginFrameSource implementation. | 364 // VideoBeginFrameSource implementation. |
| 364 void AddVideoFrameController(VideoFrameController* controller) override; | 365 void AddVideoFrameController(VideoFrameController* controller) override; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 virtual void DidFinishImplFrame(); | 424 virtual void DidFinishImplFrame(); |
| 424 void DidModifyTilePriorities(); | 425 void DidModifyTilePriorities(); |
| 425 | 426 |
| 426 LayerTreeImpl* active_tree() { return active_tree_.get(); } | 427 LayerTreeImpl* active_tree() { return active_tree_.get(); } |
| 427 const LayerTreeImpl* active_tree() const { return active_tree_.get(); } | 428 const LayerTreeImpl* active_tree() const { return active_tree_.get(); } |
| 428 LayerTreeImpl* pending_tree() { return pending_tree_.get(); } | 429 LayerTreeImpl* pending_tree() { return pending_tree_.get(); } |
| 429 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); } | 430 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); } |
| 430 LayerTreeImpl* recycle_tree() { return recycle_tree_.get(); } | 431 LayerTreeImpl* recycle_tree() { return recycle_tree_.get(); } |
| 431 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); } | 432 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); } |
| 432 // Returns the tree LTH synchronizes with. | 433 // Returns the tree LTH synchronizes with. |
| 433 LayerTreeImpl* sync_tree() { | 434 LayerTreeImpl* sync_tree() const { |
| 434 // TODO(enne): This is bogus. It should return based on the value of | 435 // TODO(enne): This is bogus. It should return based on the value of |
| 435 // CommitToActiveTree() and not whether the pending tree exists. | 436 // CommitToActiveTree() and not whether the pending tree exists. |
| 436 return pending_tree_ ? pending_tree_.get() : active_tree_.get(); | 437 return pending_tree_ ? pending_tree_.get() : active_tree_.get(); |
| 437 } | 438 } |
| 438 virtual void CreatePendingTree(); | 439 virtual void CreatePendingTree(); |
| 439 virtual void ActivateSyncTree(); | 440 virtual void ActivateSyncTree(); |
| 440 | 441 |
| 441 // Shortcuts to layers on the active tree. | 442 // Shortcuts to layers on the active tree. |
| 442 LayerImpl* InnerViewportScrollLayer() const; | 443 LayerImpl* InnerViewportScrollLayer() const; |
| 443 LayerImpl* OuterViewportScrollLayer() const; | 444 LayerImpl* OuterViewportScrollLayer() const; |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 | 844 |
| 844 std::unique_ptr<PendingTreeDurationHistogramTimer> | 845 std::unique_ptr<PendingTreeDurationHistogramTimer> |
| 845 pending_tree_duration_timer_; | 846 pending_tree_duration_timer_; |
| 846 | 847 |
| 847 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 848 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 848 }; | 849 }; |
| 849 | 850 |
| 850 } // namespace cc | 851 } // namespace cc |
| 851 | 852 |
| 852 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 853 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |