OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 5 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 void DidInitializeCompositorFrameSink() override; | 186 void DidInitializeCompositorFrameSink() override; |
187 void DidFailToInitializeCompositorFrameSink() override; | 187 void DidFailToInitializeCompositorFrameSink() override; |
188 void WillCommit() override; | 188 void WillCommit() override; |
189 void DidCommit() override; | 189 void DidCommit() override; |
190 void DidCommitAndDrawFrame() override; | 190 void DidCommitAndDrawFrame() override; |
191 void DidReceiveCompositorFrameAck() override; | 191 void DidReceiveCompositorFrameAck() override; |
192 void DidCompletePageScaleAnimation() override; | 192 void DidCompletePageScaleAnimation() override; |
193 | 193 |
194 // cc::LayerTreeHostSingleThreadClient implementation. | 194 // cc::LayerTreeHostSingleThreadClient implementation. |
195 void RequestScheduleAnimation() override; | 195 void RequestScheduleAnimation() override; |
196 void DidPostSwapBuffers() override; | 196 void DidSubmitCompositorFrame() override; |
197 void DidAbortSwapBuffers() override; | 197 void DidLoseCompositorFrameSink() override; |
198 | 198 |
199 // cc::RemoteProtoChannel implementation. | 199 // cc::RemoteProtoChannel implementation. |
200 void SetProtoReceiver(ProtoReceiver* receiver) override; | 200 void SetProtoReceiver(ProtoReceiver* receiver) override; |
201 void SendCompositorProto(const cc::proto::CompositorMessage& proto) override; | 201 void SendCompositorProto(const cc::proto::CompositorMessage& proto) override; |
202 | 202 |
203 enum { | 203 enum { |
204 COMPOSITOR_FRAME_SINK_RETRIES_BEFORE_FALLBACK = 4, | 204 COMPOSITOR_FRAME_SINK_RETRIES_BEFORE_FALLBACK = 4, |
205 MAX_COMPOSITOR_FRAME_SINK_RETRIES = 5, | 205 MAX_COMPOSITOR_FRAME_SINK_RETRIES = 5, |
206 }; | 206 }; |
207 | 207 |
(...skipping 22 matching lines...) Expand all Loading... |
230 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; | 230 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; |
231 | 231 |
232 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; | 232 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; |
233 | 233 |
234 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 234 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
235 }; | 235 }; |
236 | 236 |
237 } // namespace content | 237 } // namespace content |
238 | 238 |
239 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 239 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |