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

Unified Diff: extensions/renderer/api/display_source/wifi_display/wifi_display_video_encoder.h

Issue 1905673002: [chrome.displaySource] Add common functionality to base video encoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Rebase 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 | « no previous file | extensions/renderer/api/display_source/wifi_display/wifi_display_video_encoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/api/display_source/wifi_display/wifi_display_video_encoder.h
diff --git a/extensions/renderer/api/display_source/wifi_display/wifi_display_video_encoder.h b/extensions/renderer/api/display_source/wifi_display/wifi_display_video_encoder.h
index db5b642490f5c9279819cb8054d95a3001acc0a1..ec17ef69b7582c39d09b8859092ae475916c1962 100644
--- a/extensions/renderer/api/display_source/wifi_display/wifi_display_video_encoder.h
+++ b/extensions/renderer/api/display_source/wifi_display/wifi_display_video_encoder.h
@@ -57,17 +57,25 @@ class WiFiDisplayVideoEncoder : public WiFiDisplayMediaEncoder {
// Encodes the given raw frame. The resulting encoded frame is passed
// as an |encoded_callback|'s argument which is set via 'SetCallbacks'
// method.
- virtual void InsertRawVideoFrame(
- const scoped_refptr<media::VideoFrame>& video_frame,
- base::TimeTicks reference_time) = 0;
+ void InsertRawVideoFrame(const scoped_refptr<media::VideoFrame>& video_frame,
+ base::TimeTicks reference_time);
// Requests the next encoded frame to be an instantaneous decoding refresh
// (IDR) picture.
- virtual void RequestIDRPicture() = 0;
+ void RequestIDRPicture();
protected:
- WiFiDisplayVideoEncoder();
+ explicit WiFiDisplayVideoEncoder(
+ scoped_refptr<base::SingleThreadTaskRunner> media_task_runner);
~WiFiDisplayVideoEncoder() override;
+
+ virtual void InsertFrameOnMediaThread(
+ scoped_refptr<media::VideoFrame> video_frame,
+ base::TimeTicks reference_time,
+ bool send_idr) = 0;
+
+ scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_;
+ bool send_idr_;
};
} // namespace extensions
« no previous file with comments | « no previous file | extensions/renderer/api/display_source/wifi_display/wifi_display_video_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698