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

Side by Side Diff: webrtc/video_renderer.h

Issue 1419673014: Remove frame time scheduing in IncomingVideoStream (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_VIDEO_ENGINE_NEW_INCLUDE_VIDEO_RENDERER_H_ 11 #ifndef WEBRTC_VIDEO_ENGINE_NEW_INCLUDE_VIDEO_RENDERER_H_
12 #define WEBRTC_VIDEO_ENGINE_NEW_INCLUDE_VIDEO_RENDERER_H_ 12 #define WEBRTC_VIDEO_ENGINE_NEW_INCLUDE_VIDEO_RENDERER_H_
13 13
14 namespace webrtc { 14 namespace webrtc {
15 15
16 class VideoFrame; 16 class VideoFrame;
17 17
18 class VideoRenderer { 18 class VideoRenderer {
19 public: 19 public:
20 // This function should return as soon as possible and not block until it's 20 // This function should return as soon as possible and not block until it's
21 // time to render the frame. 21 // time to render the frame.
22 // TODO(mflodman) Remove time_to_render_ms when VideoFrame contains NTP. 22 // TODO(mflodman) Remove time_to_render_ms when VideoFrame contains NTP.
23 virtual void RenderFrame(const VideoFrame& video_frame, 23 virtual void RenderFrame(const VideoFrame& video_frame,
24 int time_to_render_ms) = 0; 24 int time_to_render_ms) = 0;
25 25
26 virtual bool IsTextureSupported() const = 0; 26 virtual bool IsTextureSupported() const = 0;
27 27
28 // This function returns true if the renderer has the ability to schedule
29 // frames for rendering smoothness.
30 virtual bool CanScheduleFrame() const { return false; }
31
28 protected: 32 protected:
29 virtual ~VideoRenderer() {} 33 virtual ~VideoRenderer() {}
30 }; 34 };
31 } // namespace webrtc 35 } // namespace webrtc
32 36
33 #endif // WEBRTC_VIDEO_ENGINE_NEW_INCLUDE_VIDEO_RENDERER_H_ 37 #endif // WEBRTC_VIDEO_ENGINE_NEW_INCLUDE_VIDEO_RENDERER_H_
OLDNEW
« talk/media/webrtc/webrtcvideoengine2.h ('K') | « webrtc/video/video_receive_stream.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698