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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 virtual void UpdateRendererCapabilitiesOnImplThread() = 0; | 68 virtual void UpdateRendererCapabilitiesOnImplThread() = 0; |
69 virtual void DidLoseOutputSurfaceOnImplThread() = 0; | 69 virtual void DidLoseOutputSurfaceOnImplThread() = 0; |
70 virtual void CommitVSyncParameters(base::TimeTicks timebase, | 70 virtual void CommitVSyncParameters(base::TimeTicks timebase, |
71 base::TimeDelta interval) = 0; | 71 base::TimeDelta interval) = 0; |
72 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) = 0; | 72 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) = 0; |
73 virtual void SetMaxSwapsPendingOnImplThread(int max) = 0; | 73 virtual void SetMaxSwapsPendingOnImplThread(int max) = 0; |
74 virtual void DidSwapBuffersOnImplThread() = 0; | 74 virtual void DidSwapBuffersOnImplThread() = 0; |
75 virtual void DidSwapBuffersCompleteOnImplThread() = 0; | 75 virtual void DidSwapBuffersCompleteOnImplThread() = 0; |
76 virtual void OnCanDrawStateChanged(bool can_draw) = 0; | 76 virtual void OnCanDrawStateChanged(bool can_draw) = 0; |
77 virtual void NotifyReadyToActivate() = 0; | 77 virtual void NotifyReadyToActivate() = 0; |
| 78 virtual void NotifyReadyToDraw() = 0; |
78 // Please call these 3 functions through | 79 // Please call these 3 functions through |
79 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and | 80 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and |
80 // SetNeedsAnimate(). | 81 // SetNeedsAnimate(). |
81 virtual void SetNeedsRedrawOnImplThread() = 0; | 82 virtual void SetNeedsRedrawOnImplThread() = 0; |
82 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) = 0; | 83 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) = 0; |
83 virtual void SetNeedsAnimateOnImplThread() = 0; | 84 virtual void SetNeedsAnimateOnImplThread() = 0; |
84 virtual void DidInitializeVisibleTileOnImplThread() = 0; | 85 virtual void DidInitializeVisibleTileOnImplThread() = 0; |
85 virtual void SetNeedsCommitOnImplThread() = 0; | 86 virtual void SetNeedsCommitOnImplThread() = 0; |
86 virtual void SetNeedsManageTilesOnImplThread() = 0; | 87 virtual void SetNeedsManageTilesOnImplThread() = 0; |
87 virtual void PostAnimationEventsToMainThreadOnImplThread( | 88 virtual void PostAnimationEventsToMainThreadOnImplThread( |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
230 // RendererClient implementation. | 231 // RendererClient implementation. |
231 void SetFullRootLayerDamage() override; | 232 void SetFullRootLayerDamage() override; |
232 | 233 |
233 // TileManagerClient implementation. | 234 // TileManagerClient implementation. |
234 const std::vector<PictureLayerImpl*>& GetPictureLayers() const override; | 235 const std::vector<PictureLayerImpl*>& GetPictureLayers() const override; |
235 void NotifyReadyToActivate() override; | 236 void NotifyReadyToActivate() override; |
| 237 void NotifyReadyToDraw() override; |
236 void NotifyTileStateChanged(const Tile* tile) override; | 238 void NotifyTileStateChanged(const Tile* tile) override; |
237 void BuildRasterQueue(RasterTilePriorityQueue* queue, | 239 void BuildRasterQueue(RasterTilePriorityQueue* queue, |
238 TreePriority tree_priority) override; | 240 TreePriority tree_priority) override; |
239 void BuildEvictionQueue(EvictionTilePriorityQueue* queue, | 241 void BuildEvictionQueue(EvictionTilePriorityQueue* queue, |
240 TreePriority tree_priority) override; | 242 TreePriority tree_priority) override; |
241 | 243 |
242 // ScrollbarAnimationControllerClient implementation. | 244 // ScrollbarAnimationControllerClient implementation. |
243 void PostDelayedScrollbarFade(const base::Closure& start_fade, | 245 void PostDelayedScrollbarFade(const base::Closure& start_fade, |
244 base::TimeDelta delay) override; | 246 base::TimeDelta delay) override; |
245 void SetNeedsScrollbarAnimationFrame() override; | 247 void SetNeedsScrollbarAnimationFrame() override; |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; | 715 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; |
714 | 716 |
715 bool requires_high_res_to_draw_; | 717 bool requires_high_res_to_draw_; |
716 | 718 |
717 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 719 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
718 }; | 720 }; |
719 | 721 |
720 } // namespace cc | 722 } // namespace cc |
721 | 723 |
722 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 724 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |