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

Unified Diff: media/cast/cast_sender_impl.cc

Issue 207593002: Cast: Enable use of VideoEncodeAccelerator for hardware video encoding (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 6 years, 9 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
Index: media/cast/cast_sender_impl.cc
diff --git a/media/cast/cast_sender_impl.cc b/media/cast/cast_sender_impl.cc
index 3c9046116f65771c3ad779d225cd510fb2fb510a..35d9f235b52a358697f7bf6e201eb4e16f7f9e5a 100644
--- a/media/cast/cast_sender_impl.cc
+++ b/media/cast/cast_sender_impl.cc
@@ -113,14 +113,16 @@ void CastSenderImpl::InitializeAudio(
void CastSenderImpl::InitializeVideo(
const VideoSenderConfig& video_config,
const CastInitializationCallback& cast_initialization_cb,
- const scoped_refptr<GpuVideoAcceleratorFactories>& gpu_factories) {
+ const CreateVideoEncodeAcceleratorCallback& create_vea_cb,
+ const CreateVideoEncodeMemoryCallback& create_video_encode_mem_cb) {
DCHECK(cast_environment_->CurrentlyOn(CastEnvironment::MAIN));
CHECK(video_config.use_external_encoder ||
cast_environment_->HasVideoEncoderThread());
video_sender_.reset(new VideoSender(cast_environment_,
video_config,
- gpu_factories,
+ create_vea_cb,
+ create_video_encode_mem_cb,
cast_initialization_cb,
transport_sender_));

Powered by Google App Engine
This is Rietveld 408576698