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

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

Issue 130443005: [#5] Pass gfx structs by const ref (gfx::Vector2dF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated the review comments Created 6 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
« no previous file with comments | « cc/trees/layer_tree_host_common.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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 SharedBitmapManager* manager, 107 SharedBitmapManager* manager,
108 int id); 108 int id);
109 virtual ~LayerTreeHostImpl(); 109 virtual ~LayerTreeHostImpl();
110 110
111 // InputHandler implementation 111 // InputHandler implementation
112 virtual void BindToClient(InputHandlerClient* client) OVERRIDE; 112 virtual void BindToClient(InputHandlerClient* client) OVERRIDE;
113 virtual InputHandler::ScrollStatus ScrollBegin( 113 virtual InputHandler::ScrollStatus ScrollBegin(
114 gfx::Point viewport_point, 114 gfx::Point viewport_point,
115 InputHandler::ScrollInputType type) OVERRIDE; 115 InputHandler::ScrollInputType type) OVERRIDE;
116 virtual bool ScrollBy(gfx::Point viewport_point, 116 virtual bool ScrollBy(gfx::Point viewport_point,
117 gfx::Vector2dF scroll_delta) OVERRIDE; 117 const gfx::Vector2dF& scroll_delta) OVERRIDE;
118 virtual bool ScrollVerticallyByPage(gfx::Point viewport_point, 118 virtual bool ScrollVerticallyByPage(gfx::Point viewport_point,
119 ScrollDirection direction) OVERRIDE; 119 ScrollDirection direction) OVERRIDE;
120 virtual void SetRootLayerScrollOffsetDelegate( 120 virtual void SetRootLayerScrollOffsetDelegate(
121 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate) OVERRIDE; 121 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate) OVERRIDE;
122 virtual void OnRootLayerDelegatedScrollOffsetChanged() OVERRIDE; 122 virtual void OnRootLayerDelegatedScrollOffsetChanged() OVERRIDE;
123 virtual void ScrollEnd() OVERRIDE; 123 virtual void ScrollEnd() OVERRIDE;
124 virtual InputHandler::ScrollStatus FlingScrollBegin() OVERRIDE; 124 virtual InputHandler::ScrollStatus FlingScrollBegin() OVERRIDE;
125 virtual void NotifyCurrentFlingVelocity(gfx::Vector2dF velocity) OVERRIDE; 125 virtual void NotifyCurrentFlingVelocity(
126 const gfx::Vector2dF& velocity) OVERRIDE;
126 virtual void MouseMoveAt(gfx::Point viewport_point) OVERRIDE; 127 virtual void MouseMoveAt(gfx::Point viewport_point) OVERRIDE;
127 virtual void PinchGestureBegin() OVERRIDE; 128 virtual void PinchGestureBegin() OVERRIDE;
128 virtual void PinchGestureUpdate(float magnify_delta, 129 virtual void PinchGestureUpdate(float magnify_delta,
129 gfx::Point anchor) OVERRIDE; 130 gfx::Point anchor) OVERRIDE;
130 virtual void PinchGestureEnd() OVERRIDE; 131 virtual void PinchGestureEnd() OVERRIDE;
131 virtual void StartPageScaleAnimation(gfx::Vector2d target_offset, 132 virtual void StartPageScaleAnimation(gfx::Vector2d target_offset,
132 bool anchor_point, 133 bool anchor_point,
133 float page_scale, 134 float page_scale,
134 base::TimeDelta duration) OVERRIDE; 135 base::TimeDelta duration) OVERRIDE;
135 virtual void ScheduleAnimation() OVERRIDE; 136 virtual void ScheduleAnimation() OVERRIDE;
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 void EnforceZeroBudget(bool zero_budget); 465 void EnforceZeroBudget(bool zero_budget);
465 466
466 void AnimatePageScale(base::TimeTicks monotonic_time); 467 void AnimatePageScale(base::TimeTicks monotonic_time);
467 void AnimateScrollbars(base::TimeTicks monotonic_time); 468 void AnimateScrollbars(base::TimeTicks monotonic_time);
468 void AnimateTopControls(base::TimeTicks monotonic_time); 469 void AnimateTopControls(base::TimeTicks monotonic_time);
469 470
470 gfx::Vector2dF ScrollLayerWithViewportSpaceDelta( 471 gfx::Vector2dF ScrollLayerWithViewportSpaceDelta(
471 LayerImpl* layer_impl, 472 LayerImpl* layer_impl,
472 float scale_from_viewport_to_screen_space, 473 float scale_from_viewport_to_screen_space,
473 const gfx::PointF& viewport_point, 474 const gfx::PointF& viewport_point,
474 gfx::Vector2dF viewport_delta); 475 const gfx::Vector2dF& viewport_delta);
475 476
476 void UpdateMaxScrollOffset(); 477 void UpdateMaxScrollOffset();
477 void TrackDamageForAllSurfaces( 478 void TrackDamageForAllSurfaces(
478 LayerImpl* root_draw_layer, 479 LayerImpl* root_draw_layer,
479 const LayerImplList& render_surface_layer_list); 480 const LayerImplList& render_surface_layer_list);
480 481
481 void UpdateTileManagerMemoryPolicy(const ManagedMemoryPolicy& policy); 482 void UpdateTileManagerMemoryPolicy(const ManagedMemoryPolicy& policy);
482 483
483 // Returns false if the frame should not be displayed. This function should 484 // Returns false if the frame should not be displayed. This function should
484 // only be called from PrepareToDraw, as DidDrawAllLayers must be called 485 // only be called from PrepareToDraw, as DidDrawAllLayers must be called
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 int id_; 652 int id_;
652 653
653 std::set<SwapPromiseMonitor*> swap_promise_monitor_; 654 std::set<SwapPromiseMonitor*> swap_promise_monitor_;
654 655
655 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 656 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
656 }; 657 };
657 658
658 } // namespace cc 659 } // namespace cc
659 660
660 #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.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698