| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 160 |
| 161 // TileManagerClient implementation. | 161 // TileManagerClient implementation. |
| 162 virtual void ScheduleManageTiles() OVERRIDE; | 162 virtual void ScheduleManageTiles() OVERRIDE; |
| 163 virtual void DidUploadVisibleHighResolutionTile() OVERRIDE; | 163 virtual void DidUploadVisibleHighResolutionTile() OVERRIDE; |
| 164 | 164 |
| 165 // OutputSurfaceClient implementation. | 165 // OutputSurfaceClient implementation. |
| 166 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, | 166 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, |
| 167 base::TimeDelta interval) OVERRIDE; | 167 base::TimeDelta interval) OVERRIDE; |
| 168 virtual void OnSendFrameToParentCompositorAck(const CompositorFrameAck& ack) | 168 virtual void OnSendFrameToParentCompositorAck(const CompositorFrameAck& ack) |
| 169 OVERRIDE; | 169 OVERRIDE; |
| 170 virtual void OnReceivedLatencyInfo(const LatencyInfo&) OVERRIDE { } |
| 170 | 171 |
| 171 // Called from LayerTreeImpl. | 172 // Called from LayerTreeImpl. |
| 172 void OnCanDrawStateChangedForTree(); | 173 void OnCanDrawStateChangedForTree(); |
| 173 | 174 |
| 174 // Implementation | 175 // Implementation |
| 175 bool CanDraw(); | 176 bool CanDraw(); |
| 176 OutputSurface* output_surface() const { return output_surface_.get(); } | 177 OutputSurface* output_surface() const { return output_surface_.get(); } |
| 177 | 178 |
| 178 std::string LayerTreeAsText() const; | 179 std::string LayerTreeAsText() const; |
| 179 std::string LayerTreeAsJson() const; | 180 std::string LayerTreeAsJson() const; |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 base::TimeTicks current_frame_time_; | 438 base::TimeTicks current_frame_time_; |
| 438 | 439 |
| 439 scoped_ptr<AnimationRegistrar> animation_registrar_; | 440 scoped_ptr<AnimationRegistrar> animation_registrar_; |
| 440 | 441 |
| 441 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 442 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 442 }; | 443 }; |
| 443 | 444 |
| 444 } // namespace cc | 445 } // namespace cc |
| 445 | 446 |
| 446 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 447 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |