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

Unified Diff: cc/layer_tree_host_impl.h

Issue 12408028: cc: Delay start of scrollbar animation setNeedsRedraw. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to 187970 and update test Created 7 years, 9 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/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_host_impl.h
diff --git a/cc/layer_tree_host_impl.h b/cc/layer_tree_host_impl.h
index 6e90e93fc2913272e7a89bfde1b324240eb4e5d9..509e2778f370dcd4c2b6f8be842870273c0cf436 100644
--- a/cc/layer_tree_host_impl.h
+++ b/cc/layer_tree_host_impl.h
@@ -65,6 +65,7 @@ class LayerTreeHostImplClient {
virtual void SendManagedMemoryStats() = 0;
virtual bool IsInsideDraw() = 0;
virtual void RenewTreePriority() = 0;
+ virtual void RequestScrollbarAnimationOnImplThread(double delay) = 0;
jamesr 2013/03/14 19:52:01 let's use base::TimeDeltas for delays. With this
};
// LayerTreeHostImpl owns the LayerImpl trees as well as associated rendering
@@ -108,6 +109,8 @@ class CC_EXPORT LayerTreeHostImpl : public InputHandlerClient,
virtual bool haveRootScrollLayer() const OVERRIDE;
virtual float rootScrollLayerTotalScrollY() const OVERRIDE;
+ void StartScrollbarAnimation(base::TimeTicks now);
+
struct CC_EXPORT FrameData : public RenderPassSink {
FrameData();
~FrameData();
@@ -377,6 +380,8 @@ class CC_EXPORT LayerTreeHostImpl : public InputHandlerClient,
static LayerImpl* GetNonCompositedContentLayerRecursive(LayerImpl* layer);
+ void StartScrollbarAnimationRecursive(LayerImpl* layer, base::TimeTicks time);
+
scoped_ptr<OutputSurface> output_surface_;
scoped_ptr<ResourceProvider> resource_provider_;
scoped_ptr<Renderer> renderer_;
« no previous file with comments | « no previous file | cc/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698