OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "content/renderer/gpu/render_widget_compositor.h" | 5 #include "content/renderer/gpu/render_widget_compositor.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 class StubRenderWidgetCompositorDelegate | 36 class StubRenderWidgetCompositorDelegate |
37 : public RenderWidgetCompositorDelegate { | 37 : public RenderWidgetCompositorDelegate { |
38 public: | 38 public: |
39 // RenderWidgetCompositorDelegate implementation. | 39 // RenderWidgetCompositorDelegate implementation. |
40 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 40 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
41 const gfx::Vector2dF& outer_delta, | 41 const gfx::Vector2dF& outer_delta, |
42 const gfx::Vector2dF& elastic_overscroll_delta, | 42 const gfx::Vector2dF& elastic_overscroll_delta, |
43 float page_scale, | 43 float page_scale, |
44 float top_controls_delta) override {} | 44 float top_controls_delta) override {} |
| 45 void RecordWheelAndTouchScrollingCount(bool has_scrolled_by_wheel, |
| 46 bool has_scrolled_by_touch) override {} |
45 void BeginMainFrame(double frame_time_sec) override {} | 47 void BeginMainFrame(double frame_time_sec) override {} |
46 void RequestNewCompositorFrameSink( | 48 void RequestNewCompositorFrameSink( |
47 bool fallback, | 49 bool fallback, |
48 const CompositorFrameSinkCallback& callback) override { | 50 const CompositorFrameSinkCallback& callback) override { |
49 callback.Run(nullptr); | 51 callback.Run(nullptr); |
50 } | 52 } |
51 void DidCommitAndDrawCompositorFrame() override {} | 53 void DidCommitAndDrawCompositorFrame() override {} |
52 void DidCommitCompositorFrame() override {} | 54 void DidCommitCompositorFrame() override {} |
53 void DidCompletePageScaleAnimation() override {} | 55 void DidCompletePageScaleAnimation() override {} |
54 void DidReceiveCompositorFrameAck() override {} | 56 void DidReceiveCompositorFrameAck() override {} |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 | 306 |
305 TEST_F(RenderWidgetCompositorFrameSinkTest, FallbackSuccessNormalSuccess) { | 307 TEST_F(RenderWidgetCompositorFrameSinkTest, FallbackSuccessNormalSuccess) { |
306 // The first success is a fallback, but the next should not be a fallback. | 308 // The first success is a fallback, but the next should not be a fallback. |
307 RunTest(false, | 309 RunTest(false, |
308 RenderWidgetCompositor::COMPOSITOR_FRAME_SINK_RETRIES_BEFORE_FALLBACK, | 310 RenderWidgetCompositor::COMPOSITOR_FRAME_SINK_RETRIES_BEFORE_FALLBACK, |
309 1, 1); | 311 1, 1); |
310 } | 312 } |
311 | 313 |
312 } // namespace | 314 } // namespace |
313 } // namespace content | 315 } // namespace content |
OLD | NEW |