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

Unified Diff: ui/compositor/compositor.h

Issue 1012583002: CC Animations: Port UI Browser Compositor to use compositor animation timelines. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@redirect
Patch Set: Use AnimationHost. Created 5 years, 8 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 | « 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 5a6d93290350c5f67fc0035804c3478803d49cc0..aef19167a4d8ac9cb0f0596133523096507c2f20 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -33,6 +33,7 @@ class RunLoop;
}
namespace cc {
+class AnimationTimeline;
class ContextProvider;
class Layer;
class LayerTreeDebugState;
@@ -175,6 +176,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.
@@ -299,6 +302,7 @@ class COMPOSITOR_EXPORT Compositor
const cc::LayerTreeDebugState& GetLayerTreeDebugState() const;
void SetLayerTreeDebugState(const cc::LayerTreeDebugState& debug_state);
const cc::RendererSettings& GetRendererSettings() const;
+ const cc::LayerTreeHost& GetLayerTreeHost() const;
LayerAnimatorCollection* layer_animator_collection() {
return &layer_animator_collection_;
@@ -349,6 +353,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