| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 145 |
| 146 virtual void BeginCommit(); | 146 virtual void BeginCommit(); |
| 147 virtual void CommitComplete(); | 147 virtual void CommitComplete(); |
| 148 virtual void Animate(base::TimeTicks monotonic_time, | 148 virtual void Animate(base::TimeTicks monotonic_time, |
| 149 base::Time wall_clock_time); | 149 base::Time wall_clock_time); |
| 150 virtual void UpdateAnimationState(bool start_ready_animations); | 150 virtual void UpdateAnimationState(bool start_ready_animations); |
| 151 void UpdateBackgroundAnimateTicking(bool should_background_tick); | 151 void UpdateBackgroundAnimateTicking(bool should_background_tick); |
| 152 void SetViewportDamage(gfx::Rect damage_rect); | 152 void SetViewportDamage(gfx::Rect damage_rect); |
| 153 | 153 |
| 154 void ManageTiles(); | 154 void ManageTiles(); |
| 155 void SetAnticipatedDrawTime(base::TimeTicks time); | |
| 156 | 155 |
| 157 // Returns false if problems occured preparing the frame, and we should try | 156 // Returns false if problems occured preparing the frame, and we should try |
| 158 // to avoid displaying the frame. If PrepareToDraw is called, DidDrawAllLayers | 157 // to avoid displaying the frame. If PrepareToDraw is called, DidDrawAllLayers |
| 159 // must also be called, regardless of whether DrawLayers is called between the | 158 // must also be called, regardless of whether DrawLayers is called between the |
| 160 // two. | 159 // two. |
| 161 virtual bool PrepareToDraw(FrameData* frame, | 160 virtual bool PrepareToDraw(FrameData* frame, |
| 162 gfx::Rect device_viewport_damage_rect); | 161 gfx::Rect device_viewport_damage_rect); |
| 163 virtual void DrawLayers(FrameData* frame, base::TimeTicks frame_begin_time); | 162 virtual void DrawLayers(FrameData* frame, base::TimeTicks frame_begin_time); |
| 164 // Must be called if and only if PrepareToDraw was called. | 163 // Must be called if and only if PrepareToDraw was called. |
| 165 void DidDrawAllLayers(const FrameData& frame); | 164 void DidDrawAllLayers(const FrameData& frame); |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 scoped_ptr<AnimationRegistrar> animation_registrar_; | 473 scoped_ptr<AnimationRegistrar> animation_registrar_; |
| 475 | 474 |
| 476 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 475 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
| 477 | 476 |
| 478 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 477 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 479 }; | 478 }; |
| 480 | 479 |
| 481 } // namespace cc | 480 } // namespace cc |
| 482 | 481 |
| 483 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 482 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |