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

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: Rename fake_time to fake_now 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
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..80e3bd37896b546f10a5e2f22defed64ebb01c95 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,8 @@ class CC_EXPORT LayerTreeHostImpl
base::TimeTicks CurrentFrameTimeTicks();
base::Time CurrentFrameTime();
+ virtual base::TimeTicks CurrentPhysicalTimeTicks() const;
+
scoped_ptr<base::Value> AsValue() const;
scoped_ptr<base::Value> ActivationStateAsValue() const;
@@ -438,6 +440,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_;
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698