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

Unified Diff: cc/trees/layer_tree_impl.h

Issue 1734063003: Share animations from compositor to main thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: worked on review comments Created 4 years, 10 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
Index: cc/trees/layer_tree_impl.h
diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h
index f9f1ba1d39c3b7fb6c4216128f53f75de759aa71..87c1429ce08904dc8770b8172a4e01b723c4f8f6 100644
--- a/cc/trees/layer_tree_impl.h
+++ b/cc/trees/layer_tree_impl.h
@@ -112,6 +112,9 @@ class CC_EXPORT LayerTreeImpl {
bool RequiresHighResToDraw() const;
bool SmoothnessTakesPriority() const;
VideoFrameControllerClient* GetVideoFrameControllerClient() const;
+ AnimationHost* animation_host() const {
+ return layer_tree_host_impl_->animation_host();
+ }
// Tree specific methods exposed to layer-impl tree.
// ---------------------------------------------------------------------------
@@ -417,6 +420,7 @@ class CC_EXPORT LayerTreeImpl {
bool FilterIsAnimatingOnImplOnly(const LayerImpl* layer) const;
bool OpacityIsAnimatingOnImplOnly(const LayerImpl* layer) const;
+ bool ScrollOffsetIsAnimatingOnImplOnly(const LayerImpl* layer) const;
bool TransformIsAnimatingOnImplOnly(const LayerImpl* layer) const;
bool AnimationsPreserveAxisAlignment(const LayerImpl* layer) const;

Powered by Google App Engine
This is Rietveld 408576698