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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_LAYER_TREE_IMPL_H_ 5 #ifndef CC_LAYER_TREE_IMPL_H_
6 #define CC_LAYER_TREE_IMPL_H_ 6 #define CC_LAYER_TREE_IMPL_H_
7 7
8 #include "base/hash_tables.h" 8 #include "base/hash_tables.h"
9 #include "cc/layer_impl.h" 9 #include "cc/layer_impl.h"
10 10
(...skipping 13 matching lines...) Expand all
24 class DebugRectHistory; 24 class DebugRectHistory;
25 class FrameRateCounter; 25 class FrameRateCounter;
26 class HeadsUpDisplayLayerImpl; 26 class HeadsUpDisplayLayerImpl;
27 class LayerTreeDebugState; 27 class LayerTreeDebugState;
28 class LayerTreeHostImpl; 28 class LayerTreeHostImpl;
29 class LayerTreeImpl; 29 class LayerTreeImpl;
30 class LayerTreeSettings; 30 class LayerTreeSettings;
31 class OutputSurface; 31 class OutputSurface;
32 class PaintTimeCounter; 32 class PaintTimeCounter;
33 class PinchZoomViewport; 33 class PinchZoomViewport;
34 class Proxy;
34 class ResourceProvider; 35 class ResourceProvider;
35 class TileManager; 36 class TileManager;
36 37
37 class CC_EXPORT LayerTreeImpl { 38 class CC_EXPORT LayerTreeImpl {
38 public: 39 public:
39 typedef std::vector<LayerImpl*> LayerList; 40 typedef std::vector<LayerImpl*> LayerList;
40 41
41 static scoped_ptr<LayerTreeImpl> create(LayerTreeHostImpl* layer_tree_host_imp l) 42 static scoped_ptr<LayerTreeImpl> create(LayerTreeHostImpl* layer_tree_host_imp l)
42 { 43 {
43 return make_scoped_ptr(new LayerTreeImpl(layer_tree_host_impl)); 44 return make_scoped_ptr(new LayerTreeImpl(layer_tree_host_impl));
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 int source_frame_number() const { return source_frame_number_; } 84 int source_frame_number() const { return source_frame_number_; }
84 void set_source_frame_number(int frame_number) { 85 void set_source_frame_number(int frame_number) {
85 source_frame_number_ = frame_number; 86 source_frame_number_ = frame_number;
86 } 87 }
87 88
88 HeadsUpDisplayLayerImpl* hud_layer() { return hud_layer_; } 89 HeadsUpDisplayLayerImpl* hud_layer() { return hud_layer_; }
89 void set_hud_layer(HeadsUpDisplayLayerImpl* layer_impl) { 90 void set_hud_layer(HeadsUpDisplayLayerImpl* layer_impl) {
90 hud_layer_ = layer_impl; 91 hud_layer_ = layer_impl;
91 } 92 }
92 93
93 LayerImpl* root_scroll_layer() { return root_scroll_layer_; } 94 LayerImpl* RootScrollLayer();
94 const LayerImpl* root_scroll_layer() const { return root_scroll_layer_; } 95 LayerImpl* CurrentlyScrollingLayer();
95 void set_root_scroll_layer(LayerImpl* layer_impl) { 96 void set_currently_scrolling_layer(LayerImpl* layer) {
96 root_scroll_layer_ = layer_impl; 97 currently_scrolling_layer_ = layer;
97 } 98 }
98 99
99 LayerImpl* currently_scrolling_layer() { return currently_scrolling_layer_; } 100 void ClearCurrentlyScrollingLayer();
100 void set_currently_scrolling_layer(LayerImpl* layer_impl) {
101 currently_scrolling_layer_ = layer_impl;
102 }
103 101
104 void FindRootScrollLayer(); 102 void FindRootScrollLayer();
105 void ClearCurrentlyScrollingLayer();
106
107 void UpdateMaxScrollOffset(); 103 void UpdateMaxScrollOffset();
108 104
109 SkColor background_color() const { return background_color_; } 105 SkColor background_color() const { return background_color_; }
110 void set_background_color(SkColor color) { background_color_ = color; } 106 void set_background_color(SkColor color) { background_color_ = color; }
111 107
112 bool has_transparent_background() const { 108 bool has_transparent_background() const {
113 return has_transparent_background_; 109 return has_transparent_background_;
114 } 110 }
115 void set_has_transparent_background(bool transparent) { 111 void set_has_transparent_background(bool transparent) {
116 has_transparent_background_ = transparent; 112 has_transparent_background_ = transparent;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 LayerList render_surface_layer_list_; 162 LayerList render_surface_layer_list_;
167 163
168 bool contents_textures_purged_; 164 bool contents_textures_purged_;
169 165
170 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 166 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
171 }; 167 };
172 168
173 } 169 }
174 170
175 #endif // CC_LAYER_TREE_IMPL_H_ 171 #endif // CC_LAYER_TREE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698