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

Unified Diff: webkit/plugins/ppapi/ppb_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
« no previous file with comments | « webkit/plugins/ppapi/ppb_video_decoder_impl.h ('k') | webkit/plugins/ppapi/resource_creation_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_video_decoder_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_video_decoder_impl.cc b/webkit/plugins/ppapi/ppb_video_decoder_impl.cc
index db8a8f662f65f795b911e2f6802098256f62443e..d49a248ebd4a1e2972a0b363ef856dc8d2d03adb 100644
--- a/webkit/plugins/ppapi/ppb_video_decoder_impl.cc
+++ b/webkit/plugins/ppapi/ppb_video_decoder_impl.cc
@@ -85,7 +85,9 @@ static media::VideoCodecProfile PPToMediaProfile(
PP_Resource PPB_VideoDecoder_Impl::Create(
PP_Instance instance,
PP_Resource graphics_context,
- PP_VideoDecoder_Profile profile) {
+ PP_VideoDecoder_Profile profile,
+ const gfx::Size& frame_size,
+ const std::vector<uint8_t>& extra_data) {
EnterResourceNoLock<PPB_Graphics3D_API> enter_context(graphics_context, true);
if (enter_context.failed())
return 0;
@@ -95,7 +97,8 @@ PP_Resource PPB_VideoDecoder_Impl::Create(
scoped_refptr<PPB_VideoDecoder_Impl> decoder(
new PPB_VideoDecoder_Impl(instance));
if (decoder->Init(graphics_context, graphics3d_impl->platform_context(),
- graphics3d_impl->gles2_impl(), profile))
+ graphics3d_impl->gles2_impl(), profile, frame_size,
+ extra_data))
return decoder->GetReference();
return 0;
}
@@ -104,7 +107,9 @@ bool PPB_VideoDecoder_Impl::Init(
PP_Resource graphics_context,
PluginDelegate::PlatformContext3D* context,
gpu::gles2::GLES2Implementation* gles2_impl,
- PP_VideoDecoder_Profile profile) {
+ PP_VideoDecoder_Profile profile,
+ const gfx::Size& frame_size,
+ const std::vector<uint8_t>& extra_data) {
InitCommon(graphics_context, gles2_impl);
int command_buffer_route_id = context->GetCommandBufferRouteId();
@@ -121,7 +126,8 @@ bool PPB_VideoDecoder_Impl::Init(
return false;
FlushCommandBuffer();
- return platform_video_decoder_->Initialize(PPToMediaProfile(profile));
+ return platform_video_decoder_->Initialize(
+ PPToMediaProfile(profile), frame_size, extra_data);
}
int32_t PPB_VideoDecoder_Impl::Decode(
« no previous file with comments | « webkit/plugins/ppapi/ppb_video_decoder_impl.h ('k') | webkit/plugins/ppapi/resource_creation_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698