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

Unified Diff: ui/compositor/compositor.h

Issue 1533643003: CC Animations: Port UI Browser Compositor to use compositor animation timelines. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@eventobserver
Patch Set: Rebase. Created 5 years 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 | « no previous file | ui/compositor/compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.h
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index 1602d30caae8b7b4ad72f727422e309428722004..6c3c07d514c8a1a927c2527e6f4184ddd1535385 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -33,6 +33,7 @@ class SingleThreadTaskRunner;
}
namespace cc {
+class AnimationTimeline;
class ContextProvider;
class Layer;
class LayerTreeDebugState;
@@ -177,6 +178,8 @@ class COMPOSITOR_EXPORT Compositor
Layer* root_layer() { return root_layer_; }
void SetRootLayer(Layer* root_layer);
+ cc::AnimationTimeline* GetAnimationTimeline() const;
+
// Called when we need the compositor to preserve the alpha channel in the
// output for situations when we want to render transparently atop something
// else, e.g. Aero glass.
@@ -368,6 +371,7 @@ class COMPOSITOR_EXPORT Compositor
CompositorLock* compositor_lock_;
LayerAnimatorCollection layer_animator_collection_;
+ scoped_refptr<cc::AnimationTimeline> animation_timeline_;
// Used to send to any new CompositorBeginFrameObserver immediately.
cc::BeginFrameArgs missed_begin_frame_args_;
« no previous file with comments | « no previous file | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698