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

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

Issue 2629243002: content: Remove blimp compositing dependencies. (Closed)
Patch Set: .. Created 3 years, 11 months 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void BeginMainFrame(double frame_time_sec) override {} 44 void BeginMainFrame(double frame_time_sec) override {}
45 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink( 45 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink(
46 const cc::FrameSinkId& frame_sink_id, 46 const cc::FrameSinkId& frame_sink_id,
47 bool fallback) override { 47 bool fallback) override {
48 return nullptr; 48 return nullptr;
49 } 49 }
50 void DidCommitAndDrawCompositorFrame() override {} 50 void DidCommitAndDrawCompositorFrame() override {}
51 void DidCommitCompositorFrame() override {} 51 void DidCommitCompositorFrame() override {}
52 void DidCompletePageScaleAnimation() override {} 52 void DidCompletePageScaleAnimation() override {}
53 void DidReceiveCompositorFrameAck() override {} 53 void DidReceiveCompositorFrameAck() override {}
54 void ForwardCompositorProto(const std::vector<uint8_t>& proto) override {}
55 bool IsClosing() const override { return false; } 54 bool IsClosing() const override { return false; }
56 void RequestScheduleAnimation() override {} 55 void RequestScheduleAnimation() override {}
57 void UpdateVisualState() override {} 56 void UpdateVisualState() override {}
58 void WillBeginCompositorFrame() override {} 57 void WillBeginCompositorFrame() override {}
59 std::unique_ptr<cc::SwapPromise> RequestCopyOfOutputForLayoutTest( 58 std::unique_ptr<cc::SwapPromise> RequestCopyOfOutputForLayoutTest(
60 std::unique_ptr<cc::CopyOutputRequest> request) override { 59 std::unique_ptr<cc::CopyOutputRequest> request) override {
61 return nullptr; 60 return nullptr;
62 } 61 }
63 }; 62 };
64 63
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 292
294 TEST_F(RenderWidgetCompositorFrameSinkTest, FallbackSuccessNormalSuccess) { 293 TEST_F(RenderWidgetCompositorFrameSinkTest, FallbackSuccessNormalSuccess) {
295 // The first success is a fallback, but the next should not be a fallback. 294 // The first success is a fallback, but the next should not be a fallback.
296 RunTest(false, 295 RunTest(false,
297 RenderWidgetCompositor::COMPOSITOR_FRAME_SINK_RETRIES_BEFORE_FALLBACK, 296 RenderWidgetCompositor::COMPOSITOR_FRAME_SINK_RETRIES_BEFORE_FALLBACK,
298 1, 1); 297 1, 1);
299 } 298 }
300 299
301 } // namespace 300 } // namespace
302 } // namespace content 301 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor_delegate.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698