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

Side by Side Diff: remoting/protocol/fake_video_renderer.cc

Issue 1559933003: Pass VideoRenderer interface to ConnectionToHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_frame_consumer
Patch Set: Created 4 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
« no previous file with comments | « remoting/protocol/fake_video_renderer.h ('k') | remoting/protocol/ice_connection_to_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "remoting/protocol/fake_video_renderer.h"
6
7 #include <utility>
8
9 #include "base/callback.h"
10 #include "base/logging.h"
11 #include "remoting/proto/video.pb.h"
12
13 namespace remoting {
14 namespace protocol {
15
16 FakeVideoStub::FakeVideoStub() {}
17 FakeVideoStub::~FakeVideoStub() {}
18
19 void FakeVideoStub::ProcessVideoPacket(scoped_ptr<VideoPacket> video_packet,
20 const base::Closure& done) {
21 received_packets_.push_back(std::move(video_packet));
22 done.Run();
23 }
24
25 FakeVideoRenderer::FakeVideoRenderer() {}
26 FakeVideoRenderer::~FakeVideoRenderer() {}
27
28 void FakeVideoRenderer::OnSessionConfig(const SessionConfig& config) {}
29
30 FakeVideoStub* FakeVideoRenderer::GetVideoStub() {
31 return &video_stub_;
32 }
33
34 FrameConsumer* FakeVideoRenderer::GetFrameConsumer() {
35 NOTIMPLEMENTED();
36 return nullptr;
37 }
38
39 } // namespace protocol
40 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/fake_video_renderer.h ('k') | remoting/protocol/ice_connection_to_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698