Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Side by Side Diff: content/renderer/gpu/render_widget_compositor_unittest.cc

Issue 2444563002: cc: Remove "SwapBuffers" naming from LayerTreeHostSingleThreadClient (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698