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 |