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

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

Issue 13637017: Delete layout_viewport_size. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile Created 7 years, 8 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
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_HOST_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <limits> 8 #include <limits>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 void SetRootLayer(scoped_refptr<Layer> root_layer); 169 void SetRootLayer(scoped_refptr<Layer> root_layer);
170 Layer* root_layer() { return root_layer_.get(); } 170 Layer* root_layer() { return root_layer_.get(); }
171 const Layer* root_layer() const { return root_layer_.get(); } 171 const Layer* root_layer() const { return root_layer_.get(); }
172 const Layer* RootScrollLayer() const; 172 const Layer* RootScrollLayer() const;
173 173
174 const LayerTreeSettings& settings() const { return settings_; } 174 const LayerTreeSettings& settings() const { return settings_; }
175 175
176 void SetDebugState(const LayerTreeDebugState& debug_state); 176 void SetDebugState(const LayerTreeDebugState& debug_state);
177 const LayerTreeDebugState& debug_state() const { return debug_state_; } 177 const LayerTreeDebugState& debug_state() const { return debug_state_; }
178 178
179 void SetViewportSize(gfx::Size layout_viewport_size, 179 void SetViewportSize(gfx::Size device_viewport_size);
180 gfx::Size device_viewport_size);
181 void SetOverdrawBottomHeight(float overdraw_bottom_height); 180 void SetOverdrawBottomHeight(float overdraw_bottom_height);
182 181
183 gfx::Size layout_viewport_size() const { return layout_viewport_size_; }
184 gfx::Size device_viewport_size() const { return device_viewport_size_; } 182 gfx::Size device_viewport_size() const { return device_viewport_size_; }
185 float overdraw_bottom_height() const { return overdraw_bottom_height_; } 183 float overdraw_bottom_height() const { return overdraw_bottom_height_; }
186 184
187 void SetPageScaleFactorAndLimits(float page_scale_factor, 185 void SetPageScaleFactorAndLimits(float page_scale_factor,
188 float min_page_scale_factor, 186 float min_page_scale_factor,
189 float max_page_scale_factor); 187 float max_page_scale_factor);
190 188
191 void set_background_color(SkColor color) { background_color_ = color; } 189 void set_background_color(SkColor color) { background_color_ = color; }
192 190
193 void set_has_transparent_background(bool transparent) { 191 void set_has_transparent_background(bool transparent) {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 scoped_refptr<ScrollbarLayer> pinch_zoom_scrollbar_vertical_; 292 scoped_refptr<ScrollbarLayer> pinch_zoom_scrollbar_vertical_;
295 293
296 scoped_ptr<PrioritizedResourceManager> contents_texture_manager_; 294 scoped_ptr<PrioritizedResourceManager> contents_texture_manager_;
297 scoped_ptr<PrioritizedResource> surface_memory_placeholder_; 295 scoped_ptr<PrioritizedResource> surface_memory_placeholder_;
298 296
299 base::WeakPtr<TopControlsManager> top_controls_manager_weak_ptr_; 297 base::WeakPtr<TopControlsManager> top_controls_manager_weak_ptr_;
300 298
301 LayerTreeSettings settings_; 299 LayerTreeSettings settings_;
302 LayerTreeDebugState debug_state_; 300 LayerTreeDebugState debug_state_;
303 301
304 gfx::Size layout_viewport_size_;
305 gfx::Size device_viewport_size_; 302 gfx::Size device_viewport_size_;
306 float overdraw_bottom_height_; 303 float overdraw_bottom_height_;
307 float device_scale_factor_; 304 float device_scale_factor_;
308 305
309 bool visible_; 306 bool visible_;
310 307
311 typedef base::hash_map<WebKit::WebGraphicsContext3D*, 308 typedef base::hash_map<WebKit::WebGraphicsContext3D*,
312 scoped_refptr<RateLimiter> > RateLimiterMap; 309 scoped_refptr<RateLimiter> > RateLimiterMap;
313 RateLimiterMap rate_limiters_; 310 RateLimiterMap rate_limiters_;
314 311
(...skipping 17 matching lines...) Expand all
332 base::TimeDelta duration; 329 base::TimeDelta duration;
333 }; 330 };
334 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 331 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
335 332
336 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 333 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
337 }; 334 };
338 335
339 } // namespace cc 336 } // namespace cc
340 337
341 #endif // CC_TREES_LAYER_TREE_HOST_H_ 338 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698