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

Unified Diff: cc/trees/layer_tree_host_impl.h

Issue 704463003: Move overscroll bounce to impl thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/input/scroll_elasticity_controller.h ('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 157fe00eb67013347d1840a7c9499e392b885fcf..af398ef1a3ff8c21bfc917e7c5d306785ce221e5 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -57,6 +57,7 @@ class RenderPassDrawQuad;
class RenderingStatsInstrumentation;
class ResourcePool;
class ScrollbarLayerImplBase;
+class TreeScrollElasticityClient;
class TextureMailboxDeleter;
class TopControlsManager;
class UIResourceBitmap;
@@ -156,6 +157,8 @@ class CC_EXPORT LayerTreeHostImpl
bool HaveTouchEventHandlersAt(const gfx::Point& viewport_port) override;
scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor(
ui::LatencyInfo* latency) override;
+ ScrollElasticityControllerClient*
+ GetScrollElasticityControllerClient() override;
// TopControlsManagerClient implementation.
void SetControlsTopOffset(float offset) override;
@@ -627,6 +630,11 @@ class CC_EXPORT LayerTreeHostImpl
int scroll_layer_id_when_mouse_over_scrollbar_;
ScopedPtrVector<SwapPromise> swap_promises_for_main_thread_scroll_update_;
+ // The LayerTreeHostImpl class could implement the
+ // ScrollElasticityControllerClient interface itself, but an interface
+ // class is created to keep related state and functions separate.
+ scoped_ptr<TreeScrollElasticityClient> scroll_elasticity_client_;
+
bool tile_priorities_dirty_;
// The optional delegate for the root layer scroll offset.
« no previous file with comments | « cc/input/scroll_elasticity_controller.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698