| 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_LAYER_TREE_HOST_IMPL_H_ | 5 #ifndef CC_LAYER_TREE_HOST_IMPL_H_ |
| 6 #define CC_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_LAYER_TREE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 virtual void Animate(base::TimeTicks monotonic_time, | 129 virtual void Animate(base::TimeTicks monotonic_time, |
| 130 base::Time wall_clock_time); | 130 base::Time wall_clock_time); |
| 131 | 131 |
| 132 void ManageTiles(); | 132 void ManageTiles(); |
| 133 | 133 |
| 134 // Returns false if problems occured preparing the frame, and we should try | 134 // Returns false if problems occured preparing the frame, and we should try |
| 135 // to avoid displaying the frame. If prepareToDraw is called, DidDrawAllLayers | 135 // to avoid displaying the frame. If prepareToDraw is called, DidDrawAllLayers |
| 136 // must also be called, regardless of whether DrawLayers is called between the | 136 // must also be called, regardless of whether DrawLayers is called between the |
| 137 // two. | 137 // two. |
| 138 virtual bool PrepareToDraw(FrameData* frame); | 138 virtual bool PrepareToDraw(FrameData* frame); |
| 139 virtual void DrawLayers(FrameData* frame); | 139 virtual void DrawLayers(FrameData* frame, base::TimeTicks frame_begin_time); |
| 140 // Must be called if and only if PrepareToDraw was called. | 140 // Must be called if and only if PrepareToDraw was called. |
| 141 void DidDrawAllLayers(const FrameData& frame); | 141 void DidDrawAllLayers(const FrameData& frame); |
| 142 | 142 |
| 143 const LayerTreeSettings& settings() const { return settings_; } | 143 const LayerTreeSettings& settings() const { return settings_; } |
| 144 | 144 |
| 145 // RendererClient implementation | 145 // RendererClient implementation |
| 146 private: | 146 private: |
| 147 virtual gfx::Size DeviceViewportSize() const OVERRIDE; | 147 virtual gfx::Size DeviceViewportSize() const OVERRIDE; |
| 148 virtual const LayerTreeSettings& Settings() const OVERRIDE; | 148 virtual const LayerTreeSettings& Settings() const OVERRIDE; |
| 149 public: | 149 public: |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 base::TimeTicks current_frame_time_; | 437 base::TimeTicks current_frame_time_; |
| 438 | 438 |
| 439 scoped_ptr<AnimationRegistrar> animation_registrar_; | 439 scoped_ptr<AnimationRegistrar> animation_registrar_; |
| 440 | 440 |
| 441 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 441 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 442 }; | 442 }; |
| 443 | 443 |
| 444 } // namespace cc | 444 } // namespace cc |
| 445 | 445 |
| 446 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 446 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |