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

Unified Diff: cc/layer_tree_impl.h

Issue 12025031: Find root scroll layer at tree activation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
Index: cc/layer_tree_impl.h
diff --git a/cc/layer_tree_impl.h b/cc/layer_tree_impl.h
index e83647b57f4a9cc5bd137f636da1731309cf047c..284e9bc2f47f905bc796cabe5c3611953e68f551 100644
--- a/cc/layer_tree_impl.h
+++ b/cc/layer_tree_impl.h
@@ -30,6 +30,7 @@ class LayerTreeImpl;
class LayerTreeSettings;
class OutputSurface;
class PinchZoomViewport;
+class Proxy;
class ResourceProvider;
class TileManager;
@@ -88,18 +89,12 @@ class CC_EXPORT LayerTreeImpl {
hud_layer_ = layer_impl;
}
- LayerImpl* root_scroll_layer() { return root_scroll_layer_; }
- const LayerImpl* root_scroll_layer() const { return root_scroll_layer_; }
- void set_root_scroll_layer(LayerImpl* layer_impl) {
- root_scroll_layer_ = layer_impl;
+ LayerImpl* RootScrollLayer();
+ LayerImpl* CurrentlyScrollingLayer();
+ void set_currently_scrolling_layer(LayerImpl* layer) {
+ currently_scrolling_layer_ = layer;
}
- LayerImpl* currently_scrolling_layer() { return currently_scrolling_layer_; }
- void set_currently_scrolling_layer(LayerImpl* layer_impl) {
- currently_scrolling_layer_ = layer_impl;
- }
-
- void FindRootScrollLayer();
void ClearCurrentlyScrollingLayer();
void UpdateMaxScrollOffset();
@@ -140,6 +135,8 @@ class CC_EXPORT LayerTreeImpl {
protected:
LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl);
+ void FindRootScrollLayer();
+
LayerTreeHostImpl* layer_tree_host_impl_;
int source_frame_number_;
scoped_ptr<LayerImpl> root_layer_;

Powered by Google App Engine
This is Rietveld 408576698