From d0070ba1ca9f06ad5d52272c7da3827f38b1ddf0 Mon Sep 17 00:00:00 2001 From: aelias Date: Sat, 31 Jan 2015 05:44:49 -0800 Subject: Convert scroll offsets to use SyncedProperty. This contains the logic used to synchronize scroll deltas between the main, pending and active tree into the generic SyncedProperty class. Each LayerImpl has a refptr to one, which is shared between the pending and active version of that layer. This removes the need for the logic to backsync deltas to the pending tree, reduces code duplication with analogous properties like page scale factor, and clarifies the principles behind CC's synchronization approach. This should be a no-op change. BUG= Review URL: https://codereview.chromium.org/800613009 Cr-Commit-Position: refs/heads/master@{#314053} --- cc/trees/layer_tree_impl.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'cc/trees/layer_tree_impl.h') diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h index 3ad278b..160a965 100644 --- a/cc/trees/layer_tree_impl.h +++ b/cc/trees/layer_tree_impl.h @@ -135,7 +135,6 @@ class CC_EXPORT LayerTreeImpl { LayerImpl* OuterViewportScrollLayer() const; gfx::ScrollOffset TotalScrollOffset() const; gfx::ScrollOffset TotalMaxScrollOffset() const; - gfx::Vector2dF TotalScrollDelta() const; LayerImpl* InnerViewportContainerLayer() const; LayerImpl* OuterViewportContainerLayer() const; @@ -153,7 +152,6 @@ class CC_EXPORT LayerTreeImpl { } LayerImpl* page_scale_layer() { return page_scale_layer_; } void ApplySentScrollAndScaleDeltasFromAbortedCommit(); - void ApplyScrollDeltasSinceBeginMainFrame(); SkColor background_color() const { return background_color_; } void set_background_color(SkColor color) { background_color_ = color; } -- cgit v1.1