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

Unified Diff: cc/trees/layer_tree_host_impl.h

Issue 16925007: Fix scrollbar fade animation scheduling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mock out physical time Created 7 years, 6 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_host_impl.h
diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
index e05e45bbfeac56854e6a2bf8cb0b8714b918c225..8d3b5a5f467b4ed76acfad5ec923978656baa6cb 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -131,7 +131,7 @@ class CC_EXPORT LayerTreeHostImpl
virtual void DidChangeTopControlsPosition() OVERRIDE;
virtual bool HaveRootScrollLayer() const OVERRIDE;
- void StartScrollbarAnimation(base::TimeTicks now);
+ void StartScrollbarAnimation();
struct CC_EXPORT FrameData : public RenderPassSink {
FrameData();
@@ -370,6 +370,9 @@ class CC_EXPORT LayerTreeHostImpl
base::TimeTicks CurrentFrameTimeTicks();
base::Time CurrentFrameTime();
+ base::TimeTicks CurrentPhysicalTimeTicks() const;
+ void SetCurrentPhysicalTimeTicksForTest(base::TimeTicks fake_time);
+
scoped_ptr<base::Value> AsValue() const;
scoped_ptr<base::Value> ActivationStateAsValue() const;
@@ -438,6 +441,8 @@ class CC_EXPORT LayerTreeHostImpl
static LayerImpl* GetNonCompositedContentLayerRecursive(LayerImpl* layer);
+ void UpdateCurrentFrameTime(base::TimeTicks* ticks, base::Time* now) const;
+
void StartScrollbarAnimationRecursive(LayerImpl* layer, base::TimeTicks time);
scoped_ptr<OutputSurface> output_surface_;
@@ -527,6 +532,7 @@ class CC_EXPORT LayerTreeHostImpl
base::TimeTicks current_frame_timeticks_;
base::Time current_frame_time_;
+ base::TimeTicks fake_current_physical_time_for_test_;
scoped_ptr<AnimationRegistrar> animation_registrar_;

Powered by Google App Engine
This is Rietveld 408576698