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

Side by Side Diff: content/renderer/media/media_recorder_handler.h

Issue 1384483005: MediaStream Recorder: Support VP9 encoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_RECORDER_HANDLER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_RECORDER_HANDLER_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_RECORDER_HANDLER_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_RECORDER_HANDLER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 base::TimeTicks timestamp, 63 base::TimeTicks timestamp,
64 bool is_key_frame); 64 bool is_key_frame);
65 void WriteData(base::StringPiece data); 65 void WriteData(base::StringPiece data);
66 66
67 void OnVideoFrameForTesting(const scoped_refptr<media::VideoFrame>& frame, 67 void OnVideoFrameForTesting(const scoped_refptr<media::VideoFrame>& frame,
68 const base::TimeTicks& timestamp); 68 const base::TimeTicks& timestamp);
69 69
70 // Bound to the main render thread. 70 // Bound to the main render thread.
71 base::ThreadChecker main_render_thread_checker_; 71 base::ThreadChecker main_render_thread_checker_;
72 72
73 bool use_vp9_;
miu 2015/10/07 18:16:35 Comment that false means VP8.
mcasas 2015/10/07 21:01:14 Done.
74
73 bool recording_; 75 bool recording_;
74 blink::WebMediaStream media_stream_; // The MediaStream being recorded. 76 blink::WebMediaStream media_stream_; // The MediaStream being recorded.
75 77
76 // |client_| is a weak pointer, and is valid for the lifetime of this object. 78 // |client_| is a weak pointer, and is valid for the lifetime of this object.
77 blink::WebMediaRecorderHandlerClient* client_; 79 blink::WebMediaRecorderHandlerClient* client_;
78 80
79 ScopedVector<VideoTrackRecorder> video_recorders_; 81 ScopedVector<VideoTrackRecorder> video_recorders_;
80 82
81 // Worker class doing the actual Webm Muxing work. 83 // Worker class doing the actual Webm Muxing work.
82 scoped_ptr<media::WebmMuxer> webm_muxer_; 84 scoped_ptr<media::WebmMuxer> webm_muxer_;
83 85
84 base::WeakPtrFactory<MediaRecorderHandler> weak_factory_; 86 base::WeakPtrFactory<MediaRecorderHandler> weak_factory_;
85 87
86 DISALLOW_COPY_AND_ASSIGN(MediaRecorderHandler); 88 DISALLOW_COPY_AND_ASSIGN(MediaRecorderHandler);
87 }; 89 };
88 90
89 } // namespace content 91 } // namespace content
90 #endif // CONTENT_RENDERER_MEDIA_MEDIA_RECORDER_HANDLER_H_ 92 #endif // CONTENT_RENDERER_MEDIA_MEDIA_RECORDER_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/media_recorder_handler.cc » ('j') | content/renderer/media/video_track_recorder.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698