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

Side by Side Diff: cc/trees/layer_tree_impl.h

Issue 23922006: Plumb PinchVirtualViewport layers into CC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments, patch for landing. Created 7 years, 3 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
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_TREES_LAYER_TREE_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_
6 #define CC_TREES_LAYER_TREE_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 } 111 }
112 112
113 LayerImpl* RootScrollLayer() const; 113 LayerImpl* RootScrollLayer() const;
114 LayerImpl* RootContainerLayer() const; 114 LayerImpl* RootContainerLayer() const;
115 LayerImpl* CurrentlyScrollingLayer() const; 115 LayerImpl* CurrentlyScrollingLayer() const;
116 void SetCurrentlyScrollingLayer(LayerImpl* layer); 116 void SetCurrentlyScrollingLayer(LayerImpl* layer);
117 void ClearCurrentlyScrollingLayer(); 117 void ClearCurrentlyScrollingLayer();
118 118
119 void FindRootScrollLayer(); 119 void FindRootScrollLayer();
120 void UpdateMaxScrollOffset(); 120 void UpdateMaxScrollOffset();
121 void SetViewportLayersFromIds(int page_scale_layer_id,
122 int inner_viewport_scroll_layer_id,
123 int outer_viewport_scroll_layer_id);
124 void ClearViewportLayers();
121 void ApplySentScrollAndScaleDeltasFromAbortedCommit(); 125 void ApplySentScrollAndScaleDeltasFromAbortedCommit();
122 void ApplyScrollDeltasSinceBeginFrame(); 126 void ApplyScrollDeltasSinceBeginFrame();
123 127
124 SkColor background_color() const { return background_color_; } 128 SkColor background_color() const { return background_color_; }
125 void set_background_color(SkColor color) { background_color_ = color; } 129 void set_background_color(SkColor color) { background_color_ = color; }
126 130
127 bool has_transparent_background() const { 131 bool has_transparent_background() const {
128 return has_transparent_background_; 132 return has_transparent_background_;
129 } 133 }
130 void set_has_transparent_background(bool transparent) { 134 void set_has_transparent_background(bool transparent) {
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 LayerTreeHostImpl* layer_tree_host_impl_; 224 LayerTreeHostImpl* layer_tree_host_impl_;
221 int source_frame_number_; 225 int source_frame_number_;
222 scoped_ptr<LayerImpl> root_layer_; 226 scoped_ptr<LayerImpl> root_layer_;
223 HeadsUpDisplayLayerImpl* hud_layer_; 227 HeadsUpDisplayLayerImpl* hud_layer_;
224 LayerImpl* root_scroll_layer_; 228 LayerImpl* root_scroll_layer_;
225 LayerImpl* currently_scrolling_layer_; 229 LayerImpl* currently_scrolling_layer_;
226 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; 230 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_;
227 SkColor background_color_; 231 SkColor background_color_;
228 bool has_transparent_background_; 232 bool has_transparent_background_;
229 233
234 LayerImpl* page_scale_layer_;
235 LayerImpl* inner_viewport_scroll_layer_;
236 LayerImpl* outer_viewport_scroll_layer_;
237
230 float page_scale_factor_; 238 float page_scale_factor_;
231 float page_scale_delta_; 239 float page_scale_delta_;
232 float sent_page_scale_delta_; 240 float sent_page_scale_delta_;
233 float min_page_scale_factor_; 241 float min_page_scale_factor_;
234 float max_page_scale_factor_; 242 float max_page_scale_factor_;
235 243
236 typedef base::hash_map<int, LayerImpl*> LayerIdMap; 244 typedef base::hash_map<int, LayerImpl*> LayerIdMap;
237 LayerIdMap layer_id_map_; 245 LayerIdMap layer_id_map_;
238 246
239 std::vector<LayerImpl*> layers_with_copy_output_request_; 247 std::vector<LayerImpl*> layers_with_copy_output_request_;
(...skipping 17 matching lines...) Expand all
257 265
258 UIResourceRequestQueue ui_resource_request_queue_; 266 UIResourceRequestQueue ui_resource_request_queue_;
259 267
260 private: 268 private:
261 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 269 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
262 }; 270 };
263 271
264 } // namespace cc 272 } // namespace cc
265 273
266 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 274 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698