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

Unified Diff: webkit/plugins/ppapi/resource_creation_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/resource_creation_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/resource_creation_impl.cc
diff --git a/webkit/plugins/ppapi/resource_creation_impl.cc b/webkit/plugins/ppapi/resource_creation_impl.cc
index 17ef13b6fd004304406504b8276cd0d4e7535ebc..ee10679477bc04cbb3fa85a49634874bb885a6df 100644
--- a/webkit/plugins/ppapi/resource_creation_impl.cc
+++ b/webkit/plugins/ppapi/resource_creation_impl.cc
@@ -310,8 +310,16 @@ PP_Resource ResourceCreationImpl::CreateVideoCapture(PP_Instance instance) {
PP_Resource ResourceCreationImpl::CreateVideoDecoder(
PP_Instance instance,
PP_Resource graphics3d_id,
- PP_VideoDecoder_Profile profile) {
- return PPB_VideoDecoder_Impl::Create(instance, graphics3d_id, profile);
+ PP_VideoDecoder_Profile profile,
+ const PP_Size& frame_size,
+ const uint8_t* extra_data,
+ uint32_t extra_data_size) {
+ std::vector<uint8_t> extra_data_vector;
+ if (extra_data)
+ extra_data_vector.assign(extra_data, extra_data + extra_data_size);
+
+ return PPB_VideoDecoder_Impl::Create(instance, graphics3d_id, profile,
+ gfx::Size(frame_size.width, frame_size.height), extra_data_vector);
}
PP_Resource ResourceCreationImpl::CreateVideoLayer(PP_Instance instance,
« no previous file with comments | « webkit/plugins/ppapi/resource_creation_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698