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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 void WillBeginMainFrame() override; | 169 void WillBeginMainFrame() override; |
170 void DidBeginMainFrame() override; | 170 void DidBeginMainFrame() override; |
171 void BeginMainFrame(const cc::BeginFrameArgs& args) override; | 171 void BeginMainFrame(const cc::BeginFrameArgs& args) override; |
172 void BeginMainFrameNotExpectedSoon() override; | 172 void BeginMainFrameNotExpectedSoon() override; |
173 void UpdateLayerTreeHost() override; | 173 void UpdateLayerTreeHost() override; |
174 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 174 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
175 const gfx::Vector2dF& outer_delta, | 175 const gfx::Vector2dF& outer_delta, |
176 const gfx::Vector2dF& elastic_overscroll_delta, | 176 const gfx::Vector2dF& elastic_overscroll_delta, |
177 float page_scale, | 177 float page_scale, |
178 float top_controls_delta) override; | 178 float top_controls_delta) override; |
179 void RequestNewOutputSurface() override; | 179 void RequestNewCompositorFrameSink() override; |
180 void DidInitializeOutputSurface() override; | 180 void DidInitializeCompositorFrameSink() override; |
181 void DidFailToInitializeOutputSurface() override; | 181 void DidFailToInitializeCompositorFrameSink() override; |
182 void WillCommit() override; | 182 void WillCommit() override; |
183 void DidCommit() override; | 183 void DidCommit() override; |
184 void DidCommitAndDrawFrame() override; | 184 void DidCommitAndDrawFrame() override; |
185 void DidCompleteSwapBuffers() override; | 185 void DidCompleteSwapBuffers() override; |
186 void DidCompletePageScaleAnimation() override; | 186 void DidCompletePageScaleAnimation() override; |
187 | 187 |
188 // cc::LayerTreeHostSingleThreadClient implementation. | 188 // cc::LayerTreeHostSingleThreadClient implementation. |
189 void RequestScheduleAnimation() override; | 189 void RequestScheduleAnimation() override; |
190 void DidPostSwapBuffers() override; | 190 void DidPostSwapBuffers() override; |
191 void DidAbortSwapBuffers() override; | 191 void DidAbortSwapBuffers() override; |
192 | 192 |
193 // cc::RemoteProtoChannel implementation. | 193 // cc::RemoteProtoChannel implementation. |
194 void SetProtoReceiver(ProtoReceiver* receiver) override; | 194 void SetProtoReceiver(ProtoReceiver* receiver) override; |
195 void SendCompositorProto(const cc::proto::CompositorMessage& proto) override; | 195 void SendCompositorProto(const cc::proto::CompositorMessage& proto) override; |
196 | 196 |
197 enum { | 197 enum { |
198 OUTPUT_SURFACE_RETRIES_BEFORE_FALLBACK = 4, | 198 COMPOSITOR_FRAME_SINK_RETRIES_BEFORE_FALLBACK = 4, |
199 MAX_OUTPUT_SURFACE_RETRIES = 5, | 199 MAX_COMPOSITOR_FRAME_SINK_RETRIES = 5, |
200 }; | 200 }; |
201 | 201 |
202 protected: | 202 protected: |
203 friend class RenderViewImplScaleFactorTest; | 203 friend class RenderViewImplScaleFactorTest; |
204 | 204 |
205 RenderWidgetCompositor(RenderWidgetCompositorDelegate* delegate, | 205 RenderWidgetCompositor(RenderWidgetCompositorDelegate* delegate, |
206 CompositorDependencies* compositor_deps); | 206 CompositorDependencies* compositor_deps); |
207 | 207 |
208 void Initialize(float device_scale_factor); | 208 void Initialize(float device_scale_factor); |
209 cc::LayerTreeHostInterface* layer_tree_host() { | 209 cc::LayerTreeHostInterface* layer_tree_host() { |
(...skipping 16 matching lines...) Expand all Loading... |
226 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; | 226 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; |
227 | 227 |
228 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; | 228 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; |
229 | 229 |
230 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 230 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
231 }; | 231 }; |
232 | 232 |
233 } // namespace content | 233 } // namespace content |
234 | 234 |
235 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 235 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |