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

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

Issue 2691373005: Support alpha channel recording for VPX in MediaRecorder (Closed)
Patch Set: Created 3 years, 9 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: content/renderer/media_recorder/video_track_recorder.h
diff --git a/content/renderer/media_recorder/video_track_recorder.h b/content/renderer/media_recorder/video_track_recorder.h
index 895523d696eaf7e2f1d364762e7df8c8b45209f0..1b623787919df9c2c38d8623962ff9684460aeea 100644
--- a/content/renderer/media_recorder/video_track_recorder.h
+++ b/content/renderer/media_recorder/video_track_recorder.h
@@ -51,6 +51,7 @@ class CONTENT_EXPORT VideoTrackRecorder
using OnEncodedVideoCB =
base::Callback<void(const media::WebmMuxer::VideoParameters& params,
std::unique_ptr<std::string> encoded_data,
+ std::unique_ptr<std::string> encoded_alpha,
base::TimeTicks capture_timestamp,
bool is_key_frame)>;
@@ -76,6 +77,9 @@ class CONTENT_EXPORT VideoTrackRecorder
const scoped_refptr<media::VideoFrame>& frame,
base::TimeTicks capture_time);
+ // TODO(emircan): Remove after refactor, see http://crbug.com/700433.
+ bool CanEncodeAlphaChannelForTesting();
+
// Used to check that we are destroyed on the same thread we were created.
base::ThreadChecker main_render_thread_checker_;

Powered by Google App Engine
This is Rietveld 408576698