summaryrefslogtreecommitdiffstats
path: root/remoting/client/plugin/pepper_video_renderer_3d.h
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/client/plugin/pepper_video_renderer_3d.h')
-rw-r--r--remoting/client/plugin/pepper_video_renderer_3d.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/remoting/client/plugin/pepper_video_renderer_3d.h b/remoting/client/plugin/pepper_video_renderer_3d.h
index 473d4f3..b5d77aa 100644
--- a/remoting/client/plugin/pepper_video_renderer_3d.h
+++ b/remoting/client/plugin/pepper_video_renderer_3d.h
@@ -17,6 +17,7 @@
#include "ppapi/utility/completion_callback_factory.h"
#include "remoting/client/chromoting_stats.h"
#include "remoting/client/plugin/pepper_video_renderer.h"
+#include "remoting/protocol/video_stub.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_region.h"
@@ -26,7 +27,8 @@ namespace remoting {
// PepperVideoRenderer that uses the PPB_VideoDecoder interface for video
// decoding and Graphics3D for rendering.
-class PepperVideoRenderer3D : public PepperVideoRenderer {
+class PepperVideoRenderer3D : public PepperVideoRenderer,
+ public protocol::VideoStub {
public:
PepperVideoRenderer3D();
~PepperVideoRenderer3D() override;
@@ -36,8 +38,13 @@ class PepperVideoRenderer3D : public PepperVideoRenderer {
const ClientContext& context,
EventHandler* event_handler) override;
void OnViewChanged(const pp::View& view) override;
+
+ // VideoRenderer interface.
void OnSessionConfig(const protocol::SessionConfig& config) override;
ChromotingStats* GetStats() override;
+ protocol::VideoStub* GetVideoStub() override;
+
+ // protocol::VideoStub interface.
void ProcessVideoPacket(scoped_ptr<VideoPacket> packet,
const base::Closure& done) override;