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

Unified Diff: webrtc/common_video/video_render_frames.h

Issue 2008513003: Let VideoRenderFrames::FrameToRender return rtc::Optional (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Revert unique_ptr change. Created 4 years, 7 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/common_video/incoming_video_stream.cc ('k') | webrtc/common_video/video_render_frames.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_video/video_render_frames.h
diff --git a/webrtc/common_video/video_render_frames.h b/webrtc/common_video/video_render_frames.h
index 450c1f2215fac7d01f59fc0968adefb0e7e85098..acd955887f81405cd220e997348c92d0d58f9c90 100644
--- a/webrtc/common_video/video_render_frames.h
+++ b/webrtc/common_video/video_render_frames.h
@@ -15,6 +15,7 @@
#include <list>
+#include "webrtc/base/optional.h"
#include "webrtc/video_frame.h"
namespace webrtc {
@@ -27,8 +28,8 @@ class VideoRenderFrames {
// Add a frame to the render queue
int32_t AddFrame(const VideoFrame& new_frame);
- // Get a frame for rendering, or a zero-size frame if it's not time to render.
- VideoFrame FrameToRender();
+ // Get a frame for rendering, or false if it's not time to render.
+ rtc::Optional<VideoFrame> FrameToRender();
// Releases all frames
int32_t ReleaseAllFrames();
« no previous file with comments | « webrtc/common_video/incoming_video_stream.cc ('k') | webrtc/common_video/video_render_frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698