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

Unified Diff: cc/animation/animation_host.h

Issue 1009233002: CC Animations: Port Impl-only-scrolling to use compositor animation timelines. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ui
Patch Set: CC_EXPORT for MutatorHostClient Created 5 years, 5 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 | cc/animation/animation_host.cc » ('j') | cc/animation/animation_host.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/animation_host.h
diff --git a/cc/animation/animation_host.h b/cc/animation/animation_host.h
index 2887ad8d8f8e767cee5a5c7efa125ca89e38d159..3f69a0233791de0cb138e657b45524c29b4f1b33 100644
--- a/cc/animation/animation_host.h
+++ b/cc/animation/animation_host.h
@@ -15,6 +15,10 @@
#include "cc/base/cc_export.h"
#include "cc/trees/mutator_host_client.h"
+namespace gfx {
+class ScrollOffset;
+}
+
namespace cc {
class AnimationPlayer;
@@ -120,6 +124,15 @@ class CC_EXPORT AnimationHost {
bool HasAnyAnimation(int layer_id) const;
bool HasActiveAnimation(int layer_id) const;
+ void ImplOnlyScrollAnimationCreate(int layer_id,
+ const gfx::ScrollOffset& target_offset,
+ const gfx::ScrollOffset& current_offset);
+ bool ImplOnlyScrollAnimationUpdateTarget(
+ int layer_id,
+ const gfx::Vector2dF& scroll_delta,
+ const gfx::ScrollOffset& max_scroll_offset,
+ base::TimeTicks frame_monotonic_time);
+
private:
explicit AnimationHost(ThreadInstance thread_instance);
@@ -141,6 +154,9 @@ class CC_EXPORT AnimationHost {
scoped_ptr<AnimationRegistrar> animation_registrar_;
MutatorHostClient* mutator_host_client_;
+ class ScrollOffsetAnimations;
+ scoped_ptr<ScrollOffsetAnimations> scroll_offset_animations_;
+
const ThreadInstance thread_instance_;
DISALLOW_COPY_AND_ASSIGN(AnimationHost);
« no previous file with comments | « no previous file | cc/animation/animation_host.cc » ('j') | cc/animation/animation_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698