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

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

Issue 10408003: Plumb extra_data() to VideoDecodeAccelerator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rev interface versino Created 8 years, 7 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/pepper_platform_video_decoder_impl.cc
diff --git a/content/renderer/media/pepper_platform_video_decoder_impl.cc b/content/renderer/media/pepper_platform_video_decoder_impl.cc
index 503cd43dbe56bc745f9e39167d1a3a5115d990cd..9a21a9934fffc640b3cd301f473f75b7d13b42b1 100644
--- a/content/renderer/media/pepper_platform_video_decoder_impl.cc
+++ b/content/renderer/media/pepper_platform_video_decoder_impl.cc
@@ -24,7 +24,10 @@ PlatformVideoDecoderImpl::PlatformVideoDecoderImpl(
PlatformVideoDecoderImpl::~PlatformVideoDecoderImpl() {}
-bool PlatformVideoDecoderImpl::Initialize(media::VideoCodecProfile profile) {
+bool PlatformVideoDecoderImpl::Initialize(
+ media::VideoCodecProfile profile,
+ const gfx::Size& frame_size,
+ const std::vector<uint8_t>& extra_data) {
// TODO(vrk): Support multiple decoders.
if (decoder_)
return true;
@@ -44,7 +47,7 @@ bool PlatformVideoDecoderImpl::Initialize(media::VideoCodecProfile profile) {
// Send IPC message to initialize decoder in GPU process.
decoder_ = channel->CreateVideoDecoder(
- command_buffer_route_id_, profile, this);
+ command_buffer_route_id_, profile, frame_size, extra_data, this);
return decoder_.get() != NULL;
}

Powered by Google App Engine
This is Rietveld 408576698