OLD | NEW |
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 #ifndef REMOTING_CLIENT_VIDEO_RENDERER_H_ | 5 #ifndef REMOTING_CLIENT_VIDEO_RENDERER_H_ |
6 #define REMOTING_CLIENT_VIDEO_RENDERER_H_ | 6 #define REMOTING_CLIENT_VIDEO_RENDERER_H_ |
7 | 7 |
8 #include "remoting/protocol/video_stub.h" | |
9 | |
10 namespace remoting { | 8 namespace remoting { |
11 | 9 |
12 class ChromotingStats; | 10 class ChromotingStats; |
13 | 11 |
14 namespace protocol { | 12 namespace protocol { |
15 class SessionConfig; | 13 class SessionConfig; |
| 14 class VideoStub; |
16 } // namespace protocol; | 15 } // namespace protocol; |
17 | 16 |
18 // VideoRenderer is responsible for decoding and displaying incoming video | 17 // VideoRenderer is responsible for decoding and displaying incoming video |
19 // stream. | 18 // stream. |
20 class VideoRenderer : public protocol::VideoStub { | 19 class VideoRenderer { |
21 public: | 20 public: |
| 21 virtual ~VideoRenderer() {} |
| 22 |
22 // Configures the renderer with the supplied |config|. This must be called | 23 // Configures the renderer with the supplied |config|. This must be called |
23 // exactly once before video data is supplied to the renderer. | 24 // exactly once before video data is supplied to the renderer. |
24 virtual void OnSessionConfig(const protocol::SessionConfig& config) = 0; | 25 virtual void OnSessionConfig(const protocol::SessionConfig& config) = 0; |
25 | 26 |
26 // Return the statistics recorded by this client. | 27 // Return the statistics recorded by this client. |
27 virtual ChromotingStats* GetStats() = 0; | 28 virtual ChromotingStats* GetStats() = 0; |
| 29 |
| 30 // Returns the VideoStub interface of this renderer. |
| 31 virtual protocol::VideoStub* GetVideoStub() = 0; |
28 }; | 32 }; |
29 | 33 |
30 } // namespace remoting | 34 } // namespace remoting |
31 | 35 |
32 #endif // REMOTING_CLIENT_VIDEO_RENDERER_H_ | 36 #endif // REMOTING_CLIENT_VIDEO_RENDERER_H_ |
OLD | NEW |