| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 void SetLayerTransformMutated(int layer_id, | 256 void SetLayerTransformMutated(int layer_id, |
| 257 bool affects_active_tree, | 257 bool affects_active_tree, |
| 258 const gfx::Transform& transform) override; | 258 const gfx::Transform& transform) override; |
| 259 void SetLayerScrollOffsetMutated( | 259 void SetLayerScrollOffsetMutated( |
| 260 int layer_id, | 260 int layer_id, |
| 261 bool active_tree, | 261 bool active_tree, |
| 262 const gfx::ScrollOffset& scroll_offset) override; | 262 const gfx::ScrollOffset& scroll_offset) override; |
| 263 void ScrollOffsetAnimationFinished() override; | 263 void ScrollOffsetAnimationFinished() override; |
| 264 gfx::ScrollOffset GetScrollOffsetForAnimation(int layer_id) const override; | 264 gfx::ScrollOffset GetScrollOffsetForAnimation(int layer_id) const override; |
| 265 | 265 |
| 266 void ReportAndClearStatsAfterAnimateLayers(); |
| 267 |
| 266 virtual void PrepareTiles(); | 268 virtual void PrepareTiles(); |
| 267 | 269 |
| 268 // Returns DRAW_SUCCESS unless problems occured preparing the frame, and we | 270 // Returns DRAW_SUCCESS unless problems occured preparing the frame, and we |
| 269 // should try to avoid displaying the frame. If PrepareToDraw is called, | 271 // should try to avoid displaying the frame. If PrepareToDraw is called, |
| 270 // DidDrawAllLayers must also be called, regardless of whether DrawLayers is | 272 // DidDrawAllLayers must also be called, regardless of whether DrawLayers is |
| 271 // called between the two. | 273 // called between the two. |
| 272 virtual DrawResult PrepareToDraw(FrameData* frame); | 274 virtual DrawResult PrepareToDraw(FrameData* frame); |
| 273 virtual void DrawLayers(FrameData* frame); | 275 virtual void DrawLayers(FrameData* frame); |
| 274 // Must be called if and only if PrepareToDraw was called. | 276 // Must be called if and only if PrepareToDraw was called. |
| 275 void DidDrawAllLayers(const FrameData& frame); | 277 void DidDrawAllLayers(const FrameData& frame); |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 802 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 804 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
| 803 | 805 |
| 804 scoped_ptr<Viewport> viewport_; | 806 scoped_ptr<Viewport> viewport_; |
| 805 | 807 |
| 806 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 808 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 807 }; | 809 }; |
| 808 | 810 |
| 809 } // namespace cc | 811 } // namespace cc |
| 810 | 812 |
| 811 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 813 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |