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

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

Issue 2805353002: Merge 58: Handle HW encoder errors in VideoTrackRecorder (Closed)
Patch Set: Created 3 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 | « no previous file | content/renderer/media_recorder/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_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..667cb237b822bb38c3c9bf9c2006fec859d36dd5 100644
--- a/content/renderer/media_recorder/video_track_recorder.h
+++ b/content/renderer/media_recorder/video_track_recorder.h
@@ -53,6 +53,7 @@ class CONTENT_EXPORT VideoTrackRecorder
std::unique_ptr<std::string> encoded_data,
base::TimeTicks capture_timestamp,
bool is_key_frame)>;
+ using OnErrorCB = base::Closure;
static CodecId GetPreferredCodecId();
@@ -73,8 +74,10 @@ class CONTENT_EXPORT VideoTrackRecorder
void InitializeEncoder(CodecId codec,
const OnEncodedVideoCB& on_encoded_video_callback,
int32_t bits_per_second,
+ bool allow_vea_encoder,
const scoped_refptr<media::VideoFrame>& frame,
base::TimeTicks capture_time);
+ void OnError();
// Used to check that we are destroyed on the same thread we were created.
base::ThreadChecker main_render_thread_checker_;
@@ -85,7 +88,8 @@ class CONTENT_EXPORT VideoTrackRecorder
// Inner class to encode using whichever codec is configured.
scoped_refptr<Encoder> encoder_;
- base::Callback<void(const scoped_refptr<media::VideoFrame>& frame,
+ base::Callback<void(bool allow_vea_encoder,
+ const scoped_refptr<media::VideoFrame>& frame,
base::TimeTicks capture_time)>
initialize_encoder_callback_;
« no previous file with comments | « no previous file | content/renderer/media_recorder/video_track_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698