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

Side by Side Diff: remoting/client/video_renderer.h

Issue 910343002: Decompose VideoRenderer from VideoStub. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix perf test Created 5 years, 10 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/client/software_video_renderer.cc ('k') | remoting/test/protocol_perftest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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_
OLDNEW
« no previous file with comments | « remoting/client/software_video_renderer.cc ('k') | remoting/test/protocol_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698