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

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

Issue 2409923002: cc: Rename SwapBuffers on CompositorFrameSink to SubmitCompositorFrame (Closed)
Patch Set: swap-to-submit: rebase Created 4 years, 2 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/proxy_main.cc ('k') | cc/trees/remote_channel_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_REMOTE_CHANNEL_IMPL_H_ 5 #ifndef CC_TREES_REMOTE_CHANNEL_IMPL_H_
6 #define CC_TREES_REMOTE_CHANNEL_IMPL_H_ 6 #define CC_TREES_REMOTE_CHANNEL_IMPL_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 void Stop() override; 150 void Stop() override;
151 void SetMutator(std::unique_ptr<LayerTreeMutator> mutator) override; 151 void SetMutator(std::unique_ptr<LayerTreeMutator> mutator) override;
152 bool SupportsImplScrolling() const override; 152 bool SupportsImplScrolling() const override;
153 void UpdateTopControlsState(TopControlsState constraints, 153 void UpdateTopControlsState(TopControlsState constraints,
154 TopControlsState current, 154 TopControlsState current,
155 bool animate) override; 155 bool animate) override;
156 bool MainFrameWillHappenForTesting() override; 156 bool MainFrameWillHappenForTesting() override;
157 157
158 // Called on impl thread. 158 // Called on impl thread.
159 // ChannelImpl implementation 159 // ChannelImpl implementation
160 void DidCompleteSwapBuffers() override; 160 void DidReceiveCompositorFrameAck() override;
161 void BeginMainFrameNotExpectedSoon() override; 161 void BeginMainFrameNotExpectedSoon() override;
162 void DidCommitAndDrawFrame() override; 162 void DidCommitAndDrawFrame() override;
163 void SetAnimationEvents(std::unique_ptr<AnimationEvents> queue) override; 163 void SetAnimationEvents(std::unique_ptr<AnimationEvents> queue) override;
164 void DidLoseCompositorFrameSink() override; 164 void DidLoseCompositorFrameSink() override;
165 void RequestNewCompositorFrameSink() override; 165 void RequestNewCompositorFrameSink() override;
166 void DidInitializeCompositorFrameSink(bool success) override; 166 void DidInitializeCompositorFrameSink(bool success) override;
167 void DidCompletePageScaleAnimation() override; 167 void DidCompletePageScaleAnimation() override;
168 void BeginMainFrame(std::unique_ptr<BeginMainFrameAndCommitState> 168 void BeginMainFrame(std::unique_ptr<BeginMainFrameAndCommitState>
169 begin_main_frame_state) override; 169 begin_main_frame_state) override;
170 170
171 void SendMessageProto(std::unique_ptr<proto::CompositorMessage> proto); 171 void SendMessageProto(std::unique_ptr<proto::CompositorMessage> proto);
172 172
173 // called on main thread. 173 // called on main thread.
174 void HandleProto(const proto::CompositorMessageToImpl& proto); 174 void HandleProto(const proto::CompositorMessageToImpl& proto);
175 void DidCompleteSwapBuffersOnMain(); 175 void DidReceiveCompositorFrameAckOnMain();
176 void DidCommitAndDrawFrameOnMain(); 176 void DidCommitAndDrawFrameOnMain();
177 void DidLoseCompositorFrameSinkOnMain(); 177 void DidLoseCompositorFrameSinkOnMain();
178 void RequestNewCompositorFrameSinkOnMain(); 178 void RequestNewCompositorFrameSinkOnMain();
179 void DidInitializeCompositorFrameSinkOnMain(bool success); 179 void DidInitializeCompositorFrameSinkOnMain(bool success);
180 void SendMessageProtoOnMain(std::unique_ptr<proto::CompositorMessage> proto); 180 void SendMessageProtoOnMain(std::unique_ptr<proto::CompositorMessage> proto);
181 void PostSetNeedsRedrawToImpl(const gfx::Rect& damaged_rect); 181 void PostSetNeedsRedrawToImpl(const gfx::Rect& damaged_rect);
182 182
183 void InitializeImplOnImpl(CompletionEvent* completion, 183 void InitializeImplOnImpl(CompletionEvent* completion,
184 LayerTreeHostInProcess* layer_tree_host); 184 LayerTreeHostInProcess* layer_tree_host);
185 void ShutdownImplOnImpl(CompletionEvent* completion); 185 void ShutdownImplOnImpl(CompletionEvent* completion);
(...skipping 13 matching lines...) Expand all
199 CompositorThreadOnly compositor_thread_vars_unsafe_; 199 CompositorThreadOnly compositor_thread_vars_unsafe_;
200 200
201 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; 201 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_;
202 202
203 DISALLOW_COPY_AND_ASSIGN(RemoteChannelImpl); 203 DISALLOW_COPY_AND_ASSIGN(RemoteChannelImpl);
204 }; 204 };
205 205
206 } // namespace cc 206 } // namespace cc
207 207
208 #endif // CC_TREES_REMOTE_CHANNEL_IMPL_H_ 208 #endif // CC_TREES_REMOTE_CHANNEL_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/proxy_main.cc ('k') | cc/trees/remote_channel_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698