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

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: Final patch cleanup. 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
« no previous file with comments | « media/cast/cast_sender_impl.cc ('k') | media/cast/sender/video_encoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..bcb323c12a1fd83fa99cbba0baccf30894e7e0d5 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,11 @@ class VideoEncoder {
// Inform the encoder to only reference frames older or equal to frame_id;
virtual void LatestFrameIdToReference(uint32 frame_id) = 0;
+
+ // Creates a |VideoFrameFactory| object to vend |VideoFrame| object with
+ // encoder affinity (defined as offering some sort of performance benefit).
+ // This is an optional capability and by default returns null.
+ virtual scoped_ptr<VideoFrameFactory> CreateVideoFrameFactory();
};
} // namespace cast
« no previous file with comments | « media/cast/cast_sender_impl.cc ('k') | media/cast/sender/video_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698