| Index: cc/trees/layer_tree_host_impl.h
|
| diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
|
| index a192d50963b69cc2e53fbdd00d24ea7ca1e32959..1deafde74aa0e0397e1f8a9d04517a08df9bc088 100644
|
| --- a/cc/trees/layer_tree_host_impl.h
|
| +++ b/cc/trees/layer_tree_host_impl.h
|
| @@ -35,6 +35,7 @@
|
| #include "cc/resources/tile_manager.h"
|
| #include "cc/scheduler/commit_earlyout_reason.h"
|
| #include "cc/scheduler/draw_result.h"
|
| +#include "cc/trees/layer_tree_mutators_client.h"
|
| #include "skia/ext/refptr.h"
|
| #include "third_party/skia/include/core/SkColor.h"
|
| #include "ui/gfx/geometry/rect.h"
|
| @@ -125,7 +126,8 @@ class CC_EXPORT LayerTreeHostImpl
|
| public OutputSurfaceClient,
|
| public TopControlsManagerClient,
|
| public ScrollbarAnimationControllerClient,
|
| - public base::SupportsWeakPtr<LayerTreeHostImpl> {
|
| + public base::SupportsWeakPtr<LayerTreeHostImpl>,
|
| + public LayerTreeMutatorsClient {
|
| public:
|
| static scoped_ptr<LayerTreeHostImpl> Create(
|
| const LayerTreeSettings& settings,
|
| @@ -210,6 +212,31 @@ class CC_EXPORT LayerTreeHostImpl
|
| void DidAnimateScrollOffset();
|
| void SetViewportDamage(const gfx::Rect& damage_rect);
|
|
|
| + void SetAnimationTimeline(scoped_refptr<AnimationTimeline> timeline);
|
| +
|
| + void SetTreeLayerFilterMutated(int layer_id,
|
| + LayerTreeImpl* tree,
|
| + const FilterOperations& filters);
|
| + void SetTreeLayerOpacityMutated(int layer_id,
|
| + LayerTreeImpl* tree,
|
| + float opacity);
|
| + void SetTreeLayerTransformMutated(int layer_id,
|
| + LayerTreeImpl* tree,
|
| + const gfx::Transform& transform);
|
| +
|
| + // LayerTreeMutatorsClient implementation.
|
| + AnimationRegistrar* GetAnimationRegistrar() const override;
|
| + void SetMutatorsNeedCommit() override;
|
| + void SetLayerFilterMutated(int layer_id,
|
| + bool affects_active_tree,
|
| + const FilterOperations& filters) override;
|
| + void SetLayerOpacityMutated(int layer_id,
|
| + bool affects_active_tree,
|
| + float opacity) override;
|
| + void SetLayerTransformMutated(int layer_id,
|
| + bool affects_active_tree,
|
| + const gfx::Transform& transform) override;
|
| +
|
| virtual void PrepareTiles();
|
|
|
| // Returns DRAW_SUCCESS unless problems occured preparing the frame, and we
|
| @@ -410,6 +437,9 @@ class CC_EXPORT LayerTreeHostImpl
|
| AnimationRegistrar* animation_registrar() const {
|
| return animation_registrar_.get();
|
| }
|
| + AnimationTimeline* animation_timeline() const {
|
| + return animation_timeline_.get();
|
| + }
|
|
|
| void SetDebugState(const LayerTreeDebugState& new_debug_state);
|
| const LayerTreeDebugState& debug_state() const { return debug_state_; }
|
| @@ -715,6 +745,7 @@ class CC_EXPORT LayerTreeHostImpl
|
| base::TimeDelta begin_impl_frame_interval_;
|
|
|
| scoped_ptr<AnimationRegistrar> animation_registrar_;
|
| + scoped_refptr<AnimationTimeline> animation_timeline_;
|
|
|
| RenderingStatsInstrumentation* rendering_stats_instrumentation_;
|
| MicroBenchmarkControllerImpl micro_benchmark_controller_;
|
|
|