| 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 7dfaa162e192fe5fed23b49aa1f347b1c90b0c44..4a9c36a18303fdf1f21457413fe10aa8dbd1730c 100644
|
| --- a/cc/trees/layer_tree_host_impl.h
|
| +++ b/cc/trees/layer_tree_host_impl.h
|
| @@ -16,6 +16,7 @@
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/time/time.h"
|
| #include "cc/animation/animation_registrar.h"
|
| +#include "cc/animation/layer_tree_mutator.h"
|
| #include "cc/animation/scrollbar_animation_controller.h"
|
| #include "cc/base/cc_export.h"
|
| #include "cc/base/synced_property.h"
|
| @@ -144,6 +145,7 @@ class CC_EXPORT LayerTreeHostImpl
|
| public TopControlsManagerClient,
|
| public ScrollbarAnimationControllerClient,
|
| public VideoFrameControllerClient,
|
| + public LayerTreeMutatorClient,
|
| public MutatorHostClient,
|
| public base::SupportsWeakPtr<LayerTreeHostImpl> {
|
| public:
|
| @@ -231,6 +233,7 @@ class CC_EXPORT LayerTreeHostImpl
|
| virtual void BeginCommit();
|
| virtual void CommitComplete();
|
| virtual void UpdateAnimationState(bool start_ready_animations);
|
| + bool Mutate(base::TimeTicks monotinic_time);
|
| void ActivateAnimations();
|
| void Animate();
|
| void AnimatePendingTreeAfterCommit();
|
| @@ -362,6 +365,9 @@ class CC_EXPORT LayerTreeHostImpl
|
| const gfx::Rect& clip,
|
| bool resourceless_software_draw) override;
|
|
|
| + // LayerTreeMutatorClient.
|
| + void SetNeedsMutate() override;
|
| +
|
| // Called from LayerTreeImpl.
|
| void OnCanDrawStateChangedForTree();
|
|
|
| @@ -595,6 +601,9 @@ class CC_EXPORT LayerTreeHostImpl
|
| scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
|
| scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events);
|
|
|
| + void SetLayerTreeMutator(LayerTreeMutator* mutator);
|
| + LayerTreeMutator* mutator() { return mutator_; }
|
| +
|
| base::SingleThreadTaskRunner* GetTaskRunner() const {
|
| DCHECK(task_runner_provider_);
|
| return task_runner_provider_->HasImplThread()
|
| @@ -823,6 +832,7 @@ class CC_EXPORT LayerTreeHostImpl
|
| SharedBitmapManager* shared_bitmap_manager_;
|
| gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_;
|
| TaskGraphRunner* task_graph_runner_;
|
| + LayerTreeMutator* mutator_;
|
| int id_;
|
|
|
| std::set<SwapPromiseMonitor*> swap_promise_monitor_;
|
|
|