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

Side by Side Diff: blimp/client/core/compositor/blimp_compositor.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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_ 5 #ifndef BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_
6 #define BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_ 6 #define BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 const gfx::Vector2dF& elastic_overscroll_delta, 117 const gfx::Vector2dF& elastic_overscroll_delta,
118 float page_scale, 118 float page_scale,
119 float top_controls_delta) override {} 119 float top_controls_delta) override {}
120 void RequestNewCompositorFrameSink() override; 120 void RequestNewCompositorFrameSink() override;
121 void DidInitializeCompositorFrameSink() override; 121 void DidInitializeCompositorFrameSink() override;
122 // TODO(khushalsagar): Need to handle context initialization failures. 122 // TODO(khushalsagar): Need to handle context initialization failures.
123 void DidFailToInitializeCompositorFrameSink() override {} 123 void DidFailToInitializeCompositorFrameSink() override {}
124 void WillCommit() override {} 124 void WillCommit() override {}
125 void DidCommit() override {} 125 void DidCommit() override {}
126 void DidCommitAndDrawFrame() override; 126 void DidCommitAndDrawFrame() override;
127 void DidCompleteSwapBuffers() override {} 127 void DidReceiveCompositorFrameAck() override {}
128 void DidCompletePageScaleAnimation() override {} 128 void DidCompletePageScaleAnimation() override {}
129 129
130 // RemoteProtoChannel implementation. 130 // RemoteProtoChannel implementation.
131 void SetProtoReceiver(ProtoReceiver* receiver) override; 131 void SetProtoReceiver(ProtoReceiver* receiver) override;
132 void SendCompositorProto(const cc::proto::CompositorMessage& proto) override; 132 void SendCompositorProto(const cc::proto::CompositorMessage& proto) override;
133 133
134 // BlimpCompositorFrameSinkProxy implementation. 134 // BlimpCompositorFrameSinkProxy implementation.
135 void BindToProxyClient( 135 void BindToProxyClient(
136 base::WeakPtr<BlimpCompositorFrameSinkProxyClient> proxy_client) override; 136 base::WeakPtr<BlimpCompositorFrameSinkProxyClient> proxy_client) override;
137 void SwapCompositorFrame(cc::CompositorFrame frame) override; 137 void SubmitCompositorFrame(cc::CompositorFrame frame) override;
138 void UnbindProxyClient() override; 138 void UnbindProxyClient() override;
139 139
140 // SurfaceFactoryClient implementation. 140 // SurfaceFactoryClient implementation.
141 void ReturnResources(const cc::ReturnedResourceArray& resources) override; 141 void ReturnResources(const cc::ReturnedResourceArray& resources) override;
142 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override {} 142 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override {}
143 143
144 // Called when the a ContextProvider has been created by the 144 // Called when the a ContextProvider has been created by the
145 // CompositorDependencies class. If |host_| is waiting on an 145 // CompositorDependencies class. If |host_| is waiting on an
146 // CompositorFrameSink this will build one for it. 146 // CompositorFrameSink this will build one for it.
147 void OnContextProvidersCreated( 147 void OnContextProvidersCreated(
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 217
218 base::WeakPtrFactory<BlimpCompositor> weak_ptr_factory_; 218 base::WeakPtrFactory<BlimpCompositor> weak_ptr_factory_;
219 219
220 DISALLOW_COPY_AND_ASSIGN(BlimpCompositor); 220 DISALLOW_COPY_AND_ASSIGN(BlimpCompositor);
221 }; 221 };
222 222
223 } // namespace client 223 } // namespace client
224 } // namespace blimp 224 } // namespace blimp
225 225
226 #endif // BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_ 226 #endif // BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « blimp/client/app/compositor/browser_compositor.cc ('k') | blimp/client/core/compositor/blimp_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698