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

Unified Diff: content/renderer/media/video_track_recorder.h

Issue 1884383002: VideoTrackRecorder: Adding inner class H264Encoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: hbos@ comments: adding explicit dep to openh264 in content.gyp and content/renderer/BUILD.gn Created 4 years, 8 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 | « content/renderer/media/DEPS ('k') | content/renderer/media/video_track_recorder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/video_track_recorder.h
diff --git a/content/renderer/media/video_track_recorder.h b/content/renderer/media/video_track_recorder.h
index aa2a4b2ec1dfc2a0be32f9f6c78edb0ce9a07de9..a49733f9d70077e2f92ae071344b3f4003b0bcda 100644
--- a/content/renderer/media/video_track_recorder.h
+++ b/content/renderer/media/video_track_recorder.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/threading/thread_checker.h"
+#include "content/public/common/features.h"
#include "content/public/renderer/media_stream_video_sink.h"
#include "third_party/WebKit/public/platform/WebMediaStreamTrack.h"
@@ -31,6 +32,9 @@ class CONTENT_EXPORT VideoTrackRecorder
enum class CodecId {
VP8,
VP9,
+#if BUILDFLAG(RTC_USE_H264)
+ H264,
+#endif
};
class Encoder;
@@ -61,7 +65,7 @@ class CONTENT_EXPORT VideoTrackRecorder
blink::WebMediaStreamTrack track_;
// Inner class to encode using whichever codec is configured.
- const scoped_refptr<Encoder> encoder_;
+ scoped_refptr<Encoder> encoder_;
DISALLOW_COPY_AND_ASSIGN(VideoTrackRecorder);
};
« no previous file with comments | « content/renderer/media/DEPS ('k') | content/renderer/media/video_track_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698