Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1740)

Unified Diff: cc/trees/layer_tree_host_impl.h

Issue 1895873006: compositor-worker: Initialize CW machinery plumbing to compositor and fire CW rAF callbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include WebCompositorMutatorClient from WebLayerTreeView to allow unique_ptr usage. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f06470f587ccd1daee1e41720faf53e0bcd009a4..b65b538ee72219b4a7ca48b2b0ef1fbfa42d7f0a 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -146,6 +146,7 @@ class CC_EXPORT LayerTreeHostImpl
public TopControlsManagerClient,
public ScrollbarAnimationControllerClient,
public VideoFrameControllerClient,
+ public LayerTreeMutatorClient,
public MutatorHostClient,
public base::SupportsWeakPtr<LayerTreeHostImpl> {
public:
@@ -234,6 +235,7 @@ class CC_EXPORT LayerTreeHostImpl
virtual void BeginCommit();
virtual void CommitComplete();
virtual void UpdateAnimationState(bool start_ready_animations);
+ bool Mutate(base::TimeTicks monotonic_time);
void ActivateAnimations();
void Animate();
void AnimatePendingTreeAfterCommit();
@@ -370,6 +372,9 @@ class CC_EXPORT LayerTreeHostImpl
const gfx::Rect& clip,
bool resourceless_software_draw) override;
+ // LayerTreeMutatorClient.
+ void SetNeedsMutate() override;
+
// Called from LayerTreeImpl.
void OnCanDrawStateChangedForTree();
@@ -606,8 +611,8 @@ class CC_EXPORT LayerTreeHostImpl
bool ScrollAnimationCreate(ScrollNode* scroll_node,
const gfx::Vector2dF& scroll_amount);
- void SetLayerTreeMutator(LayerTreeMutator* mutator);
- LayerTreeMutator* mutator() { return mutator_; }
+ void SetLayerTreeMutator(std::unique_ptr<LayerTreeMutator> mutator);
+ LayerTreeMutator* mutator() { return mutator_.get(); }
void set_fixed_raster_scale_has_blurry_content() {
has_fixed_raster_scale_blurry_content_ = true;
@@ -848,7 +853,7 @@ class CC_EXPORT LayerTreeHostImpl
std::unique_ptr<Viewport> viewport_;
- LayerTreeMutator* mutator_;
+ std::unique_ptr<LayerTreeMutator> mutator_;
bool has_fixed_raster_scale_blurry_content_;
std::bitset<kFixedRasterScaleAttemptedScaleChangeHistoryCount>
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698