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

Unified Diff: media/cast/cast_sender.h

Issue 116623002: Cast: Adding support for GPU accelerated encode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed dependency on content Created 7 years 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/cast_sender.h
diff --git a/media/cast/cast_sender.h b/media/cast/cast_sender.h
index abe22f5634508f891f7933ad2a93e7d508163518..25cac54e46d34d6957e416f839cfcd44bbf0f5e0 100644
--- a/media/cast/cast_sender.h
+++ b/media/cast/cast_sender.h
@@ -18,6 +18,7 @@
#include "base/time/time.h"
#include "media/cast/cast_config.h"
#include "media/cast/cast_environment.h"
+#include "media/filters/gpu_video_accelerator_factories.h"
namespace media {
class AudioBus;
@@ -38,14 +39,6 @@ class FrameInput : public base::RefCountedThreadSafe<FrameInput> {
const scoped_refptr<media::VideoFrame>& video_frame,
const base::TimeTicks& capture_time) = 0;
- // The video_frame must be valid until the callback is called.
- // The callback is called from the main cast thread as soon as
- // the cast sender is done with the frame; it does not mean that the encoded
- // frame has been sent out.
- virtual void InsertCodedVideoFrame(const EncodedVideoFrame* video_frame,
- const base::TimeTicks& capture_time,
- const base::Closure callback) = 0;
-
// The |audio_bus| must be valid until the |done_callback| is called.
// The callback is called from the main cast thread as soon as the encoder is
// done with |audio_bus|; it does not mean that the encoded data has been
@@ -78,8 +71,9 @@ class CastSender {
scoped_refptr<CastEnvironment> cast_environment,
const AudioSenderConfig& audio_config,
const VideoSenderConfig& video_config,
- VideoEncoderController* const video_encoder_controller,
+ const scoped_refptr<GpuVideoAcceleratorFactories>& gpu_factories,
PacketSender* const packet_sender);
+ // TODO(pwestin): Add callback for status messages; initialized, errors etc.
virtual ~CastSender() {}

Powered by Google App Engine
This is Rietveld 408576698