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

Unified Diff: remoting/protocol/video_renderer.h

Issue 2101833002: [Remoting Android] DisplayUpdaterFactory cleanups (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
Index: remoting/protocol/video_renderer.h
diff --git a/remoting/protocol/video_renderer.h b/remoting/protocol/video_renderer.h
index 4f0eba9a69a2d513eba579fa102dfffa947bdb29..3ddd8722fa23a97f0351d6ee43ea6a20e27cf535 100644
--- a/remoting/protocol/video_renderer.h
+++ b/remoting/protocol/video_renderer.h
@@ -6,9 +6,11 @@
#define REMOTING_CLIENT_VIDEO_RENDERER_H_
namespace remoting {
-namespace protocol {
+class ClientContext;
+namespace protocol {
class FrameConsumer;
+class PerformanceTracker;
class SessionConfig;
class VideoStub;
@@ -22,6 +24,13 @@ class VideoRenderer {
public:
virtual ~VideoRenderer() {}
+ // Initializes the video renderer. This allows the renderer to be initialized
+ // after it is constructed. It is up to the implementation and caller to
+ // either use this function or have their own initialization approach.
+ // |perf_tracker| must outlive the renderer.
+ virtual void Initialize(const ClientContext& client_context,
Sergey Ulanov 2016/06/28 17:59:50 Return bool here as Initialization may fail (for t
Yuwei 2016/06/28 18:46:06 Done.
+ protocol::PerformanceTracker* perf_tracker) {}
Sergey Ulanov 2016/06/28 17:59:50 Please make this pure virtual. Default stub implem
Yuwei 2016/06/28 18:46:06 Done.
+
// 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 SessionConfig& config) = 0;

Powered by Google App Engine
This is Rietveld 408576698