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

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

Issue 13637017: Delete layout_viewport_size. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android 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
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_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 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_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 231
232 virtual void SetVisible(bool visible); 232 virtual void SetVisible(bool visible);
233 bool visible() const { return visible_; } 233 bool visible() const { return visible_; }
234 234
235 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); } 235 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); }
236 236
237 size_t memory_allocation_limit_bytes() const { 237 size_t memory_allocation_limit_bytes() const {
238 return managed_memory_policy_.bytes_limit_when_visible; 238 return managed_memory_policy_.bytes_limit_when_visible;
239 } 239 }
240 240
241 void SetViewportSize(gfx::Size layout_viewport_size, 241 void SetViewportSize(gfx::Size device_viewport_size);
242 gfx::Size device_viewport_size);
243 gfx::Size layout_viewport_size() const { return layout_viewport_size_; }
244 gfx::Size device_viewport_size() const { return device_viewport_size_; } 242 gfx::Size device_viewport_size() const { return device_viewport_size_; }
245 243
246 void SetOverdrawBottomHeight(float overdraw_bottom_height); 244 void SetOverdrawBottomHeight(float overdraw_bottom_height);
247 float overdraw_bottom_height() const { return overdraw_bottom_height_; } 245 float overdraw_bottom_height() const { return overdraw_bottom_height_; }
248 246
249 void SetDeviceScaleFactor(float device_scale_factor); 247 void SetDeviceScaleFactor(float device_scale_factor);
250 float device_scale_factor() const { return device_scale_factor_; } 248 float device_scale_factor() const { return device_scale_factor_; }
251 249
252 scoped_ptr<ScrollAndScaleSet> ProcessScrollDeltas(); 250 scoped_ptr<ScrollAndScaleSet> ProcessScrollDeltas();
253 251
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 421
424 // In impl-side painting mode, inert tree with layers that can be recycled 422 // In impl-side painting mode, inert tree with layers that can be recycled
425 // by the next sync from the main thread. 423 // by the next sync from the main thread.
426 scoped_ptr<LayerTreeImpl> recycle_tree_; 424 scoped_ptr<LayerTreeImpl> recycle_tree_;
427 425
428 bool did_lock_scrolling_layer_; 426 bool did_lock_scrolling_layer_;
429 bool should_bubble_scrolls_; 427 bool should_bubble_scrolls_;
430 bool wheel_scrolling_; 428 bool wheel_scrolling_;
431 LayerTreeSettings settings_; 429 LayerTreeSettings settings_;
432 LayerTreeDebugState debug_state_; 430 LayerTreeDebugState debug_state_;
433 gfx::Size layout_viewport_size_;
434 gfx::Size device_viewport_size_; 431 gfx::Size device_viewport_size_;
435 float overdraw_bottom_height_; 432 float overdraw_bottom_height_;
436 float device_scale_factor_; 433 float device_scale_factor_;
437 bool visible_; 434 bool visible_;
438 ManagedMemoryPolicy managed_memory_policy_; 435 ManagedMemoryPolicy managed_memory_policy_;
439 436
440 bool pinch_gesture_active_; 437 bool pinch_gesture_active_;
441 gfx::Point previous_pinch_anchor_; 438 gfx::Point previous_pinch_anchor_;
442 439
443 // This is set by AnimateLayers() and used by UpdateAnimationState() 440 // This is set by AnimateLayers() and used by UpdateAnimationState()
(...skipping 27 matching lines...) Expand all
471 scoped_ptr<AnimationRegistrar> animation_registrar_; 468 scoped_ptr<AnimationRegistrar> animation_registrar_;
472 469
473 RenderingStatsInstrumentation* rendering_stats_instrumentation_; 470 RenderingStatsInstrumentation* rendering_stats_instrumentation_;
474 471
475 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 472 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
476 }; 473 };
477 474
478 } // namespace cc 475 } // namespace cc
479 476
480 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 477 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698