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

Unified Diff: cc/trees/layer_tree_host_impl.h

Issue 1625473002: compositor-worker: blink->cc plumbing Base URL: https://chromium.googlesource.com/chromium/src.git@upstream-compositor-worker
Patch Set: Merge with landing of https://codereview.chromium.org/1599673002/ on master Created 4 years, 11 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 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_;
« 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