| 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 30 matching lines...) Expand all Loading... |
| 41 float page_scale, | 41 float page_scale, |
| 42 float top_controls_delta) override {} | 42 float top_controls_delta) override {} |
| 43 void BeginMainFrame(double frame_time_sec) override {} | 43 void BeginMainFrame(double frame_time_sec) override {} |
| 44 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink( | 44 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink( |
| 45 bool fallback) override { | 45 bool fallback) override { |
| 46 return nullptr; | 46 return nullptr; |
| 47 } | 47 } |
| 48 void DidCommitAndDrawCompositorFrame() override {} | 48 void DidCommitAndDrawCompositorFrame() override {} |
| 49 void DidCommitCompositorFrame() override {} | 49 void DidCommitCompositorFrame() override {} |
| 50 void DidCompletePageScaleAnimation() override {} | 50 void DidCompletePageScaleAnimation() override {} |
| 51 void DidCompleteSwapBuffers() override {} | 51 void DidReceiveCompositorFrameAck() override {} |
| 52 void ForwardCompositorProto(const std::vector<uint8_t>& proto) override {} | 52 void ForwardCompositorProto(const std::vector<uint8_t>& proto) override {} |
| 53 bool IsClosing() const override { return false; } | 53 bool IsClosing() const override { return false; } |
| 54 void OnSwapBuffersAborted() override {} | |
| 55 void OnSwapBuffersComplete() override {} | |
| 56 void OnSwapBuffersPosted() override {} | |
| 57 void RequestScheduleAnimation() override {} | 54 void RequestScheduleAnimation() override {} |
| 58 void UpdateVisualState() override {} | 55 void UpdateVisualState() override {} |
| 59 void WillBeginCompositorFrame() override {} | 56 void WillBeginCompositorFrame() override {} |
| 60 std::unique_ptr<cc::SwapPromise> RequestCopyOfOutputForLayoutTest( | 57 std::unique_ptr<cc::SwapPromise> RequestCopyOfOutputForLayoutTest( |
| 61 std::unique_ptr<cc::CopyOutputRequest> request) override { | 58 std::unique_ptr<cc::CopyOutputRequest> request) override { |
| 62 return nullptr; | 59 return nullptr; |
| 63 } | 60 } |
| 64 }; | 61 }; |
| 65 | 62 |
| 66 class FakeRenderWidgetCompositorDelegate | 63 class FakeRenderWidgetCompositorDelegate |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 | 288 |
| 292 TEST_F(RenderWidgetCompositorFrameSinkTest, FallbackSuccessNormalSuccess) { | 289 TEST_F(RenderWidgetCompositorFrameSinkTest, FallbackSuccessNormalSuccess) { |
| 293 // The first success is a fallback, but the next should not be a fallback. | 290 // The first success is a fallback, but the next should not be a fallback. |
| 294 RunTest(false, | 291 RunTest(false, |
| 295 RenderWidgetCompositor::COMPOSITOR_FRAME_SINK_RETRIES_BEFORE_FALLBACK, | 292 RenderWidgetCompositor::COMPOSITOR_FRAME_SINK_RETRIES_BEFORE_FALLBACK, |
| 296 1, 1); | 293 1, 1); |
| 297 } | 294 } |
| 298 | 295 |
| 299 } // namespace | 296 } // namespace |
| 300 } // namespace content | 297 } // namespace content |
| OLD | NEW |