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

Unified Diff: media/filters/gpu_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: 48f212da fischman@ comments. 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: media/filters/gpu_video_decoder.cc
diff --git a/media/filters/gpu_video_decoder.cc b/media/filters/gpu_video_decoder.cc
index b87041a98b5db6126cdeca5859b64a303e8a0382..0026376c1fe6816699f3240ecb644b97210bc8eb 100644
--- a/media/filters/gpu_video_decoder.cc
+++ b/media/filters/gpu_video_decoder.cc
@@ -190,9 +190,8 @@ void GpuVideoDecoder::Initialize(const VideoDecoderConfig& config,
return;
}
- vda_ =
- factories_->CreateVideoDecodeAccelerator(config.profile(), this).Pass();
- if (!vda_) {
+ vda_ = factories_->CreateVideoDecodeAccelerator(config.profile()).Pass();
+ if (!vda_ || !vda_->Initialize(this, config.profile())) {
Ami GONE FROM CHROMIUM 2014/02/25 00:01:35 I love this formulation because it crystallizes so
sheu 2014/02/25 00:37:16 I don't think that's innately a failure -- it's mo
Ami GONE FROM CHROMIUM 2014/02/25 00:50:51 <MadTV>Lowered expectaaations...</MadTV>
status_cb.Run(DECODER_ERROR_NOT_SUPPORTED);
return;
}
« no previous file with comments | « media/filters/gpu_video_accelerator_factories.h ('k') | media/filters/mock_gpu_video_accelerator_factories.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698