OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | |
3 * | |
4 * Use of this source code is governed by a BSD-style license | |
5 * that can be found in the LICENSE file in the root of the source | |
6 * tree. An additional intellectual property rights grant can be found | |
7 * in the file PATENTS. All contributing project authors may | |
8 * be found in the AUTHORS file in the root of the source tree. | |
9 */ | |
10 | |
11 #ifndef WEBRTC_VIDEO_RENDERER_H_ | |
12 #define WEBRTC_VIDEO_RENDERER_H_ | |
13 | |
14 #include "webrtc/media/base/videosinkinterface.h" | |
15 | |
16 namespace webrtc { | |
17 | |
18 class VideoFrame; | |
19 | |
20 class VideoRenderer : public rtc::VideoSinkInterface<VideoFrame> { | |
21 public: | |
22 // This function returns true if WebRTC should not delay frames for | |
23 // smoothness. In general, this case means the renderer can schedule frames to | |
24 // optimize smoothness. | |
25 virtual bool SmoothsRenderedFrames() const { return false; } | |
26 | |
27 protected: | |
28 virtual ~VideoRenderer() {} | |
29 }; | |
30 } // namespace webrtc | |
31 | |
32 #endif // WEBRTC_VIDEO_RENDERER_H_ | |
OLD | NEW |