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

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

Issue 142863008: Revert of [#7] Pass gfx structs by const ref (gfx::Size) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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_common_unittest.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 <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 bool visible() const { return visible_; } 290 bool visible() const { return visible_; }
291 291
292 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); } 292 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); }
293 void SetNeedsRedraw(); 293 void SetNeedsRedraw();
294 294
295 ManagedMemoryPolicy ActualManagedMemoryPolicy() const; 295 ManagedMemoryPolicy ActualManagedMemoryPolicy() const;
296 296
297 size_t memory_allocation_limit_bytes() const; 297 size_t memory_allocation_limit_bytes() const;
298 int memory_allocation_priority_cutoff() const; 298 int memory_allocation_priority_cutoff() const;
299 299
300 void SetViewportSize(const gfx::Size& device_viewport_size); 300 void SetViewportSize(gfx::Size device_viewport_size);
301 301
302 void SetOverdrawBottomHeight(float overdraw_bottom_height); 302 void SetOverdrawBottomHeight(float overdraw_bottom_height);
303 float overdraw_bottom_height() const { return overdraw_bottom_height_; } 303 float overdraw_bottom_height() const { return overdraw_bottom_height_; }
304 304
305 void SetOverhangUIResource(UIResourceId overhang_ui_resource_id, 305 void SetOverhangUIResource(UIResourceId overhang_ui_resource_id,
306 const gfx::Size& overhang_ui_resource_size); 306 gfx::Size overhang_ui_resource_size);
307 307
308 void SetDeviceScaleFactor(float device_scale_factor); 308 void SetDeviceScaleFactor(float device_scale_factor);
309 float device_scale_factor() const { return device_scale_factor_; } 309 float device_scale_factor() const { return device_scale_factor_; }
310 310
311 const gfx::Transform& DrawTransform() const; 311 const gfx::Transform& DrawTransform() const;
312 312
313 scoped_ptr<ScrollAndScaleSet> ProcessScrollDeltas(); 313 scoped_ptr<ScrollAndScaleSet> ProcessScrollDeltas();
314 314
315 bool needs_animate_layers() const { 315 bool needs_animate_layers() const {
316 return !animation_registrar_->active_animation_controllers().empty(); 316 return !animation_registrar_->active_animation_controllers().empty();
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 int id_; 652 int id_;
653 653
654 std::set<SwapPromiseMonitor*> swap_promise_monitor_; 654 std::set<SwapPromiseMonitor*> swap_promise_monitor_;
655 655
656 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 656 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
657 }; 657 };
658 658
659 } // namespace cc 659 } // namespace cc
660 660
661 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 661 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698