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

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

Issue 206793003: cc: Split animating and drawing into separate actions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix input handler proxy test build. Created 6 years, 7 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/test/fake_layer_tree_host_impl_client.h ('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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 virtual void DidLoseOutputSurfaceOnImplThread() = 0; 65 virtual void DidLoseOutputSurfaceOnImplThread() = 0;
66 virtual void CommitVSyncParameters(base::TimeTicks timebase, 66 virtual void CommitVSyncParameters(base::TimeTicks timebase,
67 base::TimeDelta interval) = 0; 67 base::TimeDelta interval) = 0;
68 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) = 0; 68 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) = 0;
69 virtual void SetMaxSwapsPendingOnImplThread(int max) = 0; 69 virtual void SetMaxSwapsPendingOnImplThread(int max) = 0;
70 virtual void DidSwapBuffersOnImplThread() = 0; 70 virtual void DidSwapBuffersOnImplThread() = 0;
71 virtual void DidSwapBuffersCompleteOnImplThread() = 0; 71 virtual void DidSwapBuffersCompleteOnImplThread() = 0;
72 virtual void BeginFrame(const BeginFrameArgs& args) = 0; 72 virtual void BeginFrame(const BeginFrameArgs& args) = 0;
73 virtual void OnCanDrawStateChanged(bool can_draw) = 0; 73 virtual void OnCanDrawStateChanged(bool can_draw) = 0;
74 virtual void NotifyReadyToActivate() = 0; 74 virtual void NotifyReadyToActivate() = 0;
75 // Please call these 2 functions through 75 // Please call these 3 functions through
76 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect(). 76 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and
77 // SetNeedsAnimate().
77 virtual void SetNeedsRedrawOnImplThread() = 0; 78 virtual void SetNeedsRedrawOnImplThread() = 0;
78 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) = 0; 79 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) = 0;
80 virtual void SetNeedsAnimateOnImplThread() = 0;
79 virtual void DidInitializeVisibleTileOnImplThread() = 0; 81 virtual void DidInitializeVisibleTileOnImplThread() = 0;
80 virtual void SetNeedsCommitOnImplThread() = 0; 82 virtual void SetNeedsCommitOnImplThread() = 0;
81 virtual void SetNeedsManageTilesOnImplThread() = 0; 83 virtual void SetNeedsManageTilesOnImplThread() = 0;
82 virtual void PostAnimationEventsToMainThreadOnImplThread( 84 virtual void PostAnimationEventsToMainThreadOnImplThread(
83 scoped_ptr<AnimationEventsVector> events) = 0; 85 scoped_ptr<AnimationEventsVector> events) = 0;
84 // Returns true if resources were deleted by this call. 86 // Returns true if resources were deleted by this call.
85 virtual bool ReduceContentsTextureMemoryOnImplThread( 87 virtual bool ReduceContentsTextureMemoryOnImplThread(
86 size_t limit_bytes, 88 size_t limit_bytes,
87 int priority_cutoff) = 0; 89 int priority_cutoff) = 0;
88 virtual void SendManagedMemoryStats() = 0; 90 virtual void SendManagedMemoryStats() = 0;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 virtual InputHandler::ScrollStatus FlingScrollBegin() OVERRIDE; 133 virtual InputHandler::ScrollStatus FlingScrollBegin() OVERRIDE;
132 virtual void MouseMoveAt(const gfx::Point& viewport_point) OVERRIDE; 134 virtual void MouseMoveAt(const gfx::Point& viewport_point) OVERRIDE;
133 virtual void PinchGestureBegin() OVERRIDE; 135 virtual void PinchGestureBegin() OVERRIDE;
134 virtual void PinchGestureUpdate(float magnify_delta, 136 virtual void PinchGestureUpdate(float magnify_delta,
135 const gfx::Point& anchor) OVERRIDE; 137 const gfx::Point& anchor) OVERRIDE;
136 virtual void PinchGestureEnd() OVERRIDE; 138 virtual void PinchGestureEnd() OVERRIDE;
137 virtual void StartPageScaleAnimation(const gfx::Vector2d& target_offset, 139 virtual void StartPageScaleAnimation(const gfx::Vector2d& target_offset,
138 bool anchor_point, 140 bool anchor_point,
139 float page_scale, 141 float page_scale,
140 base::TimeDelta duration) OVERRIDE; 142 base::TimeDelta duration) OVERRIDE;
141 virtual void ScheduleAnimation() OVERRIDE; 143 virtual void SetNeedsAnimate() OVERRIDE;
142 virtual bool HaveTouchEventHandlersAt(const gfx::Point& viewport_port) 144 virtual bool HaveTouchEventHandlersAt(const gfx::Point& viewport_port)
143 OVERRIDE; 145 OVERRIDE;
144 virtual scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( 146 virtual scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor(
145 ui::LatencyInfo* latency) OVERRIDE; 147 ui::LatencyInfo* latency) OVERRIDE;
146 148
147 // TopControlsManagerClient implementation. 149 // TopControlsManagerClient implementation.
148 virtual void DidChangeTopControlsPosition() OVERRIDE; 150 virtual void DidChangeTopControlsPosition() OVERRIDE;
149 virtual bool HaveRootScrollLayer() const OVERRIDE; 151 virtual bool HaveRootScrollLayer() const OVERRIDE;
150 152
151 void StartScrollbarAnimation(); 153 void StartScrollbarAnimation();
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 int id_; 658 int id_;
657 659
658 std::set<SwapPromiseMonitor*> swap_promise_monitor_; 660 std::set<SwapPromiseMonitor*> swap_promise_monitor_;
659 661
660 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 662 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
661 }; 663 };
662 664
663 } // namespace cc 665 } // namespace cc
664 666
665 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 667 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/fake_layer_tree_host_impl_client.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698