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 bce1a81165ac31192daabc343ffdbf87a476d072..cc7e807e8b38319da435f2854c77267c547683c1 100644 |
--- a/cc/trees/layer_tree_host_impl.h |
+++ b/cc/trees/layer_tree_host_impl.h |
@@ -29,6 +29,7 @@ |
#include "cc/output/managed_memory_policy.h" |
#include "cc/output/output_surface_client.h" |
#include "cc/output/renderer.h" |
+#include "cc/public/mutator_host_client.h" |
#include "cc/quads/render_pass.h" |
#include "cc/resources/resource_provider.h" |
#include "cc/resources/ui_resource_client.h" |
@@ -49,6 +50,7 @@ class ScrollOffset; |
namespace cc { |
+class AnimationHost; |
class CompletionEvent; |
class CompositorFrameMetadata; |
class DebugRectHistory; |
@@ -145,6 +147,7 @@ class CC_EXPORT LayerTreeHostImpl |
public TopControlsManagerClient, |
public ScrollbarAnimationControllerClient, |
public VideoFrameControllerClient, |
+ public MutatorHostClient, |
public base::SupportsWeakPtr<LayerTreeHostImpl> { |
public: |
static scoped_ptr<LayerTreeHostImpl> Create( |
@@ -231,6 +234,36 @@ class CC_EXPORT LayerTreeHostImpl |
void DidAnimateScrollOffset(); |
void SetViewportDamage(const gfx::Rect& damage_rect); |
+ 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); |
+ void SetTreeLayerScrollOffsetMutated(int layer_id, |
+ LayerTreeImpl* tree, |
+ const gfx::ScrollOffset& scroll_offset); |
+ |
+ // LayerTreeMutatorsClient implementation. |
+ bool IsLayerInTree(int layer_id, LayerTreeType tree_type) const override; |
+ void SetMutatorsNeedCommit() override; |
+ void SetLayerFilterMutated(int layer_id, |
+ LayerTreeType tree_type, |
+ const FilterOperations& filters) override; |
+ void SetLayerOpacityMutated(int layer_id, |
+ LayerTreeType tree_type, |
+ float opacity) override; |
+ void SetLayerTransformMutated(int layer_id, |
+ LayerTreeType tree_type, |
+ const gfx::Transform& transform) override; |
+ void SetLayerScrollOffsetMutated( |
+ int layer_id, |
+ LayerTreeType tree_type, |
+ const gfx::ScrollOffset& scroll_offset) override; |
+ |
virtual void PrepareTiles(); |
// Returns DRAW_SUCCESS unless problems occured preparing the frame, and we |
@@ -445,6 +478,7 @@ class CC_EXPORT LayerTreeHostImpl |
AnimationRegistrar* animation_registrar() const { |
return animation_registrar_.get(); |
} |
+ AnimationHost* animation_host() const { return animation_host_.get(); } |
void SetDebugState(const LayerTreeDebugState& new_debug_state); |
const LayerTreeDebugState& debug_state() const { return debug_state_; } |
@@ -751,6 +785,7 @@ class CC_EXPORT LayerTreeHostImpl |
gfx::Rect viewport_damage_rect_; |
scoped_ptr<AnimationRegistrar> animation_registrar_; |
+ scoped_ptr<AnimationHost> animation_host_; |
std::set<ScrollbarAnimationController*> scrollbar_animation_controllers_; |
std::set<VideoFrameController*> video_frame_controllers_; |