summaryrefslogtreecommitdiffstats
path: root/remoting/client/video_renderer.h
blob: 8ba04f09e2bafb0ced6a66f1af3b635f2a5d85d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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;
}  // namespace protocol;

// VideoRenderer is responsible for decoding and displaying incoming video
// stream.
class VideoRenderer : public protocol::VideoStub {
 public:
  // 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;
};

}  // namespace remoting

#endif  // REMOTING_CLIENT_VIDEO_RENDERER_H_