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

Unified Diff: webrtc/video/video_send_stream.h

Issue 2303273002: Expose Ivf logging through the native API (Closed)
Patch Set: Fix memory leak Created 4 years, 3 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
Index: webrtc/video/video_send_stream.h
diff --git a/webrtc/video/video_send_stream.h b/webrtc/video/video_send_stream.h
index 932264265dddf75e3e762b6325141c0e4ae07957..78ffd845cee98c14d9cbba90151360af508f8793 100644
--- a/webrtc/video/video_send_stream.h
+++ b/webrtc/video/video_send_stream.h
@@ -76,6 +76,16 @@ class VideoSendStream : public webrtc::VideoSendStream {
Stats GetStats() override;
typedef std::map<uint32_t, RtpState> RtpStateMap;
+
+ // Takes ownership of each file, is responsible for closing them later.
+ // Calling this method will close and finalize any current logs.
+ // Giving rtc::kInvalidPlatformFileValue in any position disables logging
+ // for the corresponding stream.
+ void SetLogFiles(
+ rtc::PlatformFile file1 = rtc::kInvalidPlatformFileValue,
+ rtc::PlatformFile file2 = rtc::kInvalidPlatformFileValue,
+ rtc::PlatformFile file3 = rtc::kInvalidPlatformFileValue) override;
+
sprang_webrtc 2016/09/04 14:48:48 Again, more descriptive name please. Also need to
palmkvist 2016/09/05 11:57:37 Does this seem reasonable? // informative comments
sprang_webrtc 2016/09/05 12:23:53 sgtm
RtpStateMap StopPermanentlyAndGetRtpStates();
private:

Powered by Google App Engine
This is Rietveld 408576698