| 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 8cca3e989fc68b4c6deed9e91d4f7658300cc651..cb4849965f6533afe1eca3eb1e6eb01d361fe30d 100644
|
| --- a/cc/trees/layer_tree_host_impl.h
|
| +++ b/cc/trees/layer_tree_host_impl.h
|
| @@ -13,8 +13,11 @@
|
| #include <unordered_map>
|
| #include <vector>
|
|
|
| +#include "base/callback.h"
|
| #include "base/macros.h"
|
| #include "base/time/time.h"
|
| +#include "cc/animation/animation_registrar.h"
|
| +#include "cc/animation/layer_tree_mutator.h"
|
| #include "cc/base/cc_export.h"
|
| #include "cc/base/synced_property.h"
|
| #include "cc/debug/frame_timing_tracker.h"
|
| @@ -79,6 +82,8 @@ class UIResourceRequest;
|
| struct ScrollAndScaleSet;
|
| class Viewport;
|
|
|
| +using BeginFrameCallbackList = std::vector<base::Closure>;
|
| +
|
| enum class GpuRasterizationStatus {
|
| ON,
|
| ON_FORCED,
|
| @@ -462,6 +467,8 @@ class CC_EXPORT LayerTreeHostImpl
|
|
|
| const gfx::Transform& DrawTransform() const;
|
|
|
| + std::unique_ptr<BeginFrameCallbackList> ProcessLayerTreeMutations();
|
| +
|
| std::unique_ptr<ScrollAndScaleSet> ProcessScrollDeltas();
|
|
|
| void set_max_memory_needed_bytes(size_t bytes) {
|
| @@ -628,6 +635,9 @@ class CC_EXPORT LayerTreeHostImpl
|
| bool ScrollAnimationCreate(ScrollNode* scroll_node,
|
| const gfx::Vector2dF& scroll_amount);
|
|
|
| + void SetLayerTreeMutator(LayerTreeMutator* mutator);
|
| + LayerTreeMutator* mutator() { return mutator_; }
|
| +
|
| protected:
|
| LayerTreeHostImpl(
|
| const LayerTreeSettings& settings,
|
| @@ -858,6 +868,8 @@ class CC_EXPORT LayerTreeHostImpl
|
|
|
| std::unique_ptr<Viewport> viewport_;
|
|
|
| + LayerTreeMutator* mutator_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
|
| };
|
|
|
|
|