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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/video_renderer.h
diff --git a/remoting/client/video_renderer.h b/remoting/client/video_renderer.h
index 8ba04f09e2bafb0ced6a66f1af3b635f2a5d85d9..221c824192577540c3349c43c991bcdad873e8a7 100644
--- a/remoting/client/video_renderer.h
+++ b/remoting/client/video_renderer.h
@@ -5,26 +5,30 @@
#ifndef REMOTING_CLIENT_VIDEO_RENDERER_H_
#define REMOTING_CLIENT_VIDEO_RENDERER_H_
-#include "remoting/protocol/video_stub.h"
-
namespace remoting {
class ChromotingStats;
namespace protocol {
class SessionConfig;
+class VideoStub;
} // namespace protocol;
// VideoRenderer is responsible for decoding and displaying incoming video
// stream.
-class VideoRenderer : public protocol::VideoStub {
+class VideoRenderer {
public:
+ virtual ~VideoRenderer() {}
+
// Configures the renderer with the supplied |config|. This must be called
// exactly once before video data is supplied to the renderer.
virtual void OnSessionConfig(const protocol::SessionConfig& config) = 0;
// Return the statistics recorded by this client.
virtual ChromotingStats* GetStats() = 0;
+
+ // Returns the VideoStub interface of this renderer.
+ virtual protocol::VideoStub* GetVideoStub() = 0;
};
} // namespace remoting
« 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