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

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
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 "remoting/proto/video.pb.h"
11
12 namespace remoting {
13 namespace protocol {
14
15 FakeVideoStub::FakeVideoStub() {}
16 FakeVideoStub::~FakeVideoStub() {}
17
18 void FakeVideoStub::ProcessVideoPacket(scoped_ptr<VideoPacket> video_packet,
19 const base::Closure& done) {
20 received_packets_.push_back(std::move(video_packet));
21 done.Run();
22 }
23
24 FakeVideoRenderer::FakeVideoRenderer() {}
25 FakeVideoRenderer::~FakeVideoRenderer() {}
26
27 void FakeVideoRenderer::OnSessionConfig(const SessionConfig& config) {}
28
29 FakeVideoStub* FakeVideoRenderer::GetVideoStub() {
30 return &video_stub_;
31 }
32
33 } // namespace protocol
34 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698