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

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 188682 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 | « cc/layer_impl.cc ('k') | 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 b2b70e036193a8dc6bed54f7f37226756c09bb94..a6ecfa9559992b863aa0e5bb1f841cdaad3a31ba 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(base::TimeDelta delay) = 0;
};
// LayerTreeHostImpl owns the LayerImpl trees as well as associated rendering
@@ -107,6 +108,8 @@ class CC_EXPORT LayerTreeHostImpl : public InputHandlerClient,
virtual void setNeedsRedraw() OVERRIDE;
virtual bool haveRootScrollLayer() const OVERRIDE;
+ void StartScrollbarAnimation(base::TimeTicks now);
+
struct CC_EXPORT FrameData : public RenderPassSink {
FrameData();
~FrameData();
@@ -381,6 +384,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 | « cc/layer_impl.cc ('k') | cc/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698