OLD | NEW |
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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 const gfx::Vector2dF& elastic_overscroll_delta, | 121 const gfx::Vector2dF& elastic_overscroll_delta, |
122 float page_scale, | 122 float page_scale, |
123 float top_controls_delta) override {} | 123 float top_controls_delta) override {} |
124 void RequestNewCompositorFrameSink() override; | 124 void RequestNewCompositorFrameSink() override; |
125 void DidInitializeCompositorFrameSink() override; | 125 void DidInitializeCompositorFrameSink() override; |
126 // TODO(khushalsagar): Need to handle context initialization failures. | 126 // TODO(khushalsagar): Need to handle context initialization failures. |
127 void DidFailToInitializeCompositorFrameSink() override {} | 127 void DidFailToInitializeCompositorFrameSink() override {} |
128 void WillCommit() override {} | 128 void WillCommit() override {} |
129 void DidCommit() override {} | 129 void DidCommit() override {} |
130 void DidCommitAndDrawFrame() override; | 130 void DidCommitAndDrawFrame() override; |
131 void DidCompleteSwapBuffers() override {} | 131 void DidReceiveCompositorFrameAck() override {} |
132 void DidCompletePageScaleAnimation() override {} | 132 void DidCompletePageScaleAnimation() override {} |
133 | 133 |
134 // RemoteProtoChannel implementation. | 134 // RemoteProtoChannel implementation. |
135 void SetProtoReceiver(ProtoReceiver* receiver) override; | 135 void SetProtoReceiver(ProtoReceiver* receiver) override; |
136 void SendCompositorProto(const cc::proto::CompositorMessage& proto) override; | 136 void SendCompositorProto(const cc::proto::CompositorMessage& proto) override; |
137 | 137 |
138 // BlimpInputManagerClient implementation. | 138 // BlimpInputManagerClient implementation. |
139 void SendWebGestureEvent( | 139 void SendWebGestureEvent( |
140 const blink::WebGestureEvent& gesture_event) override; | 140 const blink::WebGestureEvent& gesture_event) override; |
141 | 141 |
142 // BlimpCompositorFrameSinkProxy implementation. | 142 // BlimpCompositorFrameSinkProxy implementation. |
143 void BindToProxyClient( | 143 void BindToProxyClient( |
144 base::WeakPtr<BlimpCompositorFrameSinkProxyClient> proxy_client) override; | 144 base::WeakPtr<BlimpCompositorFrameSinkProxyClient> proxy_client) override; |
145 void SwapCompositorFrame(cc::CompositorFrame frame) override; | 145 void SubmitCompositorFrame(cc::CompositorFrame frame) override; |
146 void UnbindProxyClient() override; | 146 void UnbindProxyClient() override; |
147 | 147 |
148 // SurfaceFactoryClient implementation. | 148 // SurfaceFactoryClient implementation. |
149 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 149 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
150 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override {} | 150 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override {} |
151 | 151 |
152 // Called when the a ContextProvider has been created by the | 152 // Called when the a ContextProvider has been created by the |
153 // CompositorDependencies class. If |host_| is waiting on an | 153 // CompositorDependencies class. If |host_| is waiting on an |
154 // CompositorFrameSink this will build one for it. | 154 // CompositorFrameSink this will build one for it. |
155 void OnContextProvidersCreated( | 155 void OnContextProvidersCreated( |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 | 232 |
233 base::WeakPtrFactory<BlimpCompositor> weak_ptr_factory_; | 233 base::WeakPtrFactory<BlimpCompositor> weak_ptr_factory_; |
234 | 234 |
235 DISALLOW_COPY_AND_ASSIGN(BlimpCompositor); | 235 DISALLOW_COPY_AND_ASSIGN(BlimpCompositor); |
236 }; | 236 }; |
237 | 237 |
238 } // namespace client | 238 } // namespace client |
239 } // namespace blimp | 239 } // namespace blimp |
240 | 240 |
241 #endif // BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_ | 241 #endif // BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_H_ |
OLD | NEW |