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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 // RenderPassSink implementation. | 140 // RenderPassSink implementation. |
141 virtual void AppendRenderPass(scoped_ptr<RenderPass> render_pass) OVERRIDE; | 141 virtual void AppendRenderPass(scoped_ptr<RenderPass> render_pass) OVERRIDE; |
142 }; | 142 }; |
143 | 143 |
144 virtual void BeginCommit(); | 144 virtual void BeginCommit(); |
145 virtual void CommitComplete(); | 145 virtual void CommitComplete(); |
146 virtual void Animate(base::TimeTicks monotonic_time, | 146 virtual void Animate(base::TimeTicks monotonic_time, |
147 base::Time wall_clock_time); | 147 base::Time wall_clock_time); |
148 virtual void UpdateAnimationState(bool start_ready_animations); | 148 virtual void UpdateAnimationState(bool start_ready_animations); |
149 void UpdateBackgroundAnimateTicking(bool should_background_tick); | 149 void UpdateBackgroundAnimateTicking(bool should_background_tick); |
150 void SetViewportDamage(const gfx::Rect& damage_rect); | 150 void SetViewportDamage(gfx::Rect damage_rect); |
151 | 151 |
152 void ManageTiles(); | 152 void ManageTiles(); |
153 void SetAnticipatedDrawTime(base::TimeTicks time); | 153 void SetAnticipatedDrawTime(base::TimeTicks time); |
154 | 154 |
155 // Returns false if problems occured preparing the frame, and we should try | 155 // Returns false if problems occured preparing the frame, and we should try |
156 // to avoid displaying the frame. If PrepareToDraw is called, DidDrawAllLayers | 156 // to avoid displaying the frame. If PrepareToDraw is called, DidDrawAllLayers |
157 // must also be called, regardless of whether DrawLayers is called between the | 157 // must also be called, regardless of whether DrawLayers is called between the |
158 // two. | 158 // two. |
159 virtual bool PrepareToDraw(FrameData* frame, | 159 virtual bool PrepareToDraw(FrameData* frame, |
160 gfx::Rect device_viewport_damage_rect); | 160 gfx::Rect device_viewport_damage_rect); |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 scoped_ptr<AnimationRegistrar> animation_registrar_; | 471 scoped_ptr<AnimationRegistrar> animation_registrar_; |
472 | 472 |
473 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 473 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
474 | 474 |
475 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 475 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
476 }; | 476 }; |
477 | 477 |
478 } // namespace cc | 478 } // namespace cc |
479 | 479 |
480 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 480 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |