Index: remoting/protocol/video_renderer.h |
diff --git a/remoting/protocol/video_renderer.h b/remoting/protocol/video_renderer.h |
index 4d2c05f7c5f5de024cde73c892fe6cca2047b3d7..85ccb0d91214c2819185f701a81dfb4574feec11 100644 |
--- a/remoting/protocol/video_renderer.h |
+++ b/remoting/protocol/video_renderer.h |
@@ -8,11 +8,16 @@ |
namespace remoting { |
namespace protocol { |
+class FrameConsumer; |
class SessionConfig; |
class VideoStub; |
// VideoRenderer is responsible for decoding and displaying incoming video |
-// stream. |
+// stream. This interface is used by ConnectionToHost implementations to |
+// render received video frames. ConnectionToHost may feed encoded frames to the |
+// VideoStub or decode them and pass decoded frames to the FrameConsumer. |
+// |
+// TODO(sergeyu): Reconsider this design. |
class VideoRenderer { |
public: |
virtual ~VideoRenderer() {} |
@@ -23,6 +28,9 @@ class VideoRenderer { |
// Returns the VideoStub interface of this renderer. |
virtual VideoStub* GetVideoStub() = 0; |
+ |
+ // Returns the FrameConsumer interface for this renderer. |
+ virtual FrameConsumer* GetFrameConsumer() = 0; |
}; |
} // namespace protocol; |