Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 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 #ifndef REMOTING_TEST_VIDEO_RENDERER_H_ | |
| 6 #define REMOTING_TEST_VIDEO_RENDERER_H_ | |
| 7 | |
| 8 #include "base/callback.h" | |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "remoting/client/video_renderer.h" | |
| 11 #include "remoting/protocol/video_stub.h" | |
| 12 | |
| 13 namespace remoting { | |
| 14 namespace test { | |
| 15 | |
| 16 // Processes video packets as they are received from the remote host. | |
| 17 class VideoRenderer : | |
|
Sergey Ulanov
2015/03/09 06:44:41
call it TestVideoRenderer?
joedow
2015/03/09 21:09:26
Done.
| |
| 18 public remoting::VideoRenderer, | |
| 19 public protocol::VideoStub { | |
| 20 public: | |
| 21 VideoRenderer(); | |
| 22 ~VideoRenderer() override; | |
| 23 | |
| 24 private: | |
| 25 // remoting::VideoRenderer interface. | |
|
Sergey Ulanov
2015/03/09 06:44:41
This should be in the public part of this class. W
joedow
2015/03/09 21:09:26
Done.
| |
| 26 void OnSessionConfig(const protocol::SessionConfig& config) override; | |
| 27 ChromotingStats* GetStats() override; | |
| 28 protocol::VideoStub* GetVideoStub() override; | |
| 29 | |
| 30 // protocol::VideoStub interface. | |
| 31 void ProcessVideoPacket( | |
| 32 scoped_ptr<remoting::VideoPacket> video_packet, | |
| 33 const base::Closure& done) override; | |
| 34 | |
| 35 // Track the number of populated video frames which have been received. | |
| 36 int video_frames_processed_; | |
| 37 | |
| 38 DISALLOW_COPY_AND_ASSIGN(VideoRenderer); | |
| 39 }; | |
| 40 | |
| 41 } // namespace test | |
| 42 } // namespace remoting | |
| 43 | |
| 44 #endif // REMOTING_TEST_VIDEO_RENDERER_H_ | |
| OLD | NEW |