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

Unified Diff: content/renderer/media/rtc_video_decoder.cc

Issue 170843004: Pass Client pointer in Initialize() for VDA/VEA (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: b0ec4672 Build fixes. Created 6 years, 10 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: content/renderer/media/rtc_video_decoder.cc
diff --git a/content/renderer/media/rtc_video_decoder.cc b/content/renderer/media/rtc_video_decoder.cc
index ce1f24c6b520755daf9a58e07f2a2a7fd7265be7..78be1a60b823c2281c83a2ca038970d7905f26c8 100644
--- a/content/renderer/media/rtc_video_decoder.cc
+++ b/content/renderer/media/rtc_video_decoder.cc
@@ -672,7 +672,9 @@ void RTCVideoDecoder::ReusePictureBuffer(
void RTCVideoDecoder::CreateVDA(media::VideoCodecProfile profile,
base::WaitableEvent* waiter) {
DCHECK(vda_task_runner_->BelongsToCurrentThread());
- vda_ = factories_->CreateVideoDecodeAccelerator(profile, this);
+ vda_ = factories_->CreateVideoDecodeAccelerator(profile);
+ if (vda_)
+ vda_->Initialize(this, profile);
Ami GONE FROM CHROMIUM 2014/02/24 23:12:40 CHECK this doesn't fail (b/c gvdah.cc can't)
sheu 2014/02/24 23:48:20 The call point for CreateVDA() is in RTCVideoDecod
waiter->Signal();
}

Powered by Google App Engine
This is Rietveld 408576698