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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 ElementListType list_type, | 273 ElementListType list_type, |
274 const gfx::Transform& transform) override; | 274 const gfx::Transform& transform) override; |
275 void SetElementScrollOffsetMutated( | 275 void SetElementScrollOffsetMutated( |
276 ElementId element_id, | 276 ElementId element_id, |
277 ElementListType list_type, | 277 ElementListType list_type, |
278 const gfx::ScrollOffset& scroll_offset) override; | 278 const gfx::ScrollOffset& scroll_offset) override; |
279 void ElementTransformIsPotentiallyAnimatingChanged( | 279 void ElementTransformIsPotentiallyAnimatingChanged( |
280 ElementId element_id, | 280 ElementId element_id, |
281 ElementListType list_type, | 281 ElementListType list_type, |
282 bool is_animating) override; | 282 bool is_animating) override; |
| 283 void ElementOpacityIsAnimatingChanged(ElementId element_id, |
| 284 ElementListType list_type, |
| 285 AnimationChangeType change_type, |
| 286 bool is_animating) override; |
283 void ScrollOffsetAnimationFinished() override; | 287 void ScrollOffsetAnimationFinished() override; |
284 gfx::ScrollOffset GetScrollOffsetForAnimation( | 288 gfx::ScrollOffset GetScrollOffsetForAnimation( |
285 ElementId element_id) const override; | 289 ElementId element_id) const override; |
286 | 290 |
287 virtual bool PrepareTiles(); | 291 virtual bool PrepareTiles(); |
288 | 292 |
289 // Returns DRAW_SUCCESS unless problems occured preparing the frame, and we | 293 // Returns DRAW_SUCCESS unless problems occured preparing the frame, and we |
290 // should try to avoid displaying the frame. If PrepareToDraw is called, | 294 // should try to avoid displaying the frame. If PrepareToDraw is called, |
291 // DidDrawAllLayers must also be called, regardless of whether DrawLayers is | 295 // DidDrawAllLayers must also be called, regardless of whether DrawLayers is |
292 // called between the two. | 296 // called between the two. |
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
843 std::unique_ptr<Viewport> viewport_; | 847 std::unique_ptr<Viewport> viewport_; |
844 | 848 |
845 LayerTreeMutator* mutator_; | 849 LayerTreeMutator* mutator_; |
846 | 850 |
847 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 851 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
848 }; | 852 }; |
849 | 853 |
850 } // namespace cc | 854 } // namespace cc |
851 | 855 |
852 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 856 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |