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

Unified Diff: media/cast/sender/video_encoder.h

Issue 688423003: [Cast] VideoFrameFactory interface to vend frames with encoder affinity. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 1 month 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: media/cast/sender/video_encoder.h
diff --git a/media/cast/sender/video_encoder.h b/media/cast/sender/video_encoder.h
index b3bdbe44f0b86d559e3289427d1bcf4f9d98902e..d088d8430ec7ab17642788f94fbd78c7b0e4c3b2 100644
--- a/media/cast/sender/video_encoder.h
+++ b/media/cast/sender/video_encoder.h
@@ -17,6 +17,8 @@
namespace media {
namespace cast {
+class VideoFrameFactory;
+
// All these functions are called from the main cast thread.
class VideoEncoder {
public:
@@ -41,6 +43,10 @@ class VideoEncoder {
// Inform the encoder to only reference frames older or equal to frame_id;
virtual void LatestFrameIdToReference(uint32 frame_id) = 0;
+
+ // Allow the encoder to return a specialized video frame factory. May return
+ // null, in which case a default implementation will be used instead.
+ virtual scoped_refptr<VideoFrameFactory> GetVideoFrameFactory() = 0;
Alpha Left Google 2014/11/17 20:23:14 I don't think the threading model for this method
jfroy 2014/11/17 21:23:06 That's not quite the design I had in mind. The ex
Alpha Left Google 2014/11/18 02:57:58 In this patch VideoFrameFactory is always accessed
jfroy 2014/11/18 18:03:59 Sounds good.
};
} // namespace cast

Powered by Google App Engine
This is Rietveld 408576698