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

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 f96c2e557c35ffb4ed31d59e35fc56352d86b523..01caba4d5f1ad02c81a68b3441507e65ddf7ed9c 100644
--- a/cc/layer_tree_impl.h
+++ b/cc/layer_tree_impl.h
@@ -31,6 +31,7 @@ class LayerTreeSettings;
class OutputSurface;
class PaintTimeCounter;
class PinchZoomViewport;
+class Proxy;
class ResourceProvider;
class TileManager;
@@ -90,20 +91,15 @@ 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 FindRootScrollLayer();
void UpdateMaxScrollOffset();
SkColor background_color() const { return background_color_; }

Powered by Google App Engine
This is Rietveld 408576698