diff options
author | fischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-01 03:18:28 +0000 |
---|---|---|
committer | fischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-01 03:18:28 +0000 |
commit | 2ffc31a4ee37b7745d2bdc8ed2a704f7f02c9589 (patch) | |
tree | 34122669bf4397a7c59156d6af5f47f49af08933 /webkit/plugins/ppapi/ppb_video_decoder_impl.h | |
parent | 1695f071610fc582b0bd9342cb13a4eae291707f (diff) | |
download | chromium_src-2ffc31a4ee37b7745d2bdc8ed2a704f7f02c9589.zip chromium_src-2ffc31a4ee37b7745d2bdc8ed2a704f7f02c9589.tar.gz chromium_src-2ffc31a4ee37b7745d2bdc8ed2a704f7f02c9589.tar.bz2 |
Replace the use of an int32* with an explicit profile for decoder configuration.
Replaces the error-prone, overly-general, error-containing, and brittle
manually-terminated array-of-ints holding name/value pairs (except for names
that don't take values) with a simple profile parameter (specifying only information we
actually use today).
BUG=none
TEST=trybots, ovdatest, gles2
Review URL: http://codereview.chromium.org/7779001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99111 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/ppapi/ppb_video_decoder_impl.h')
-rw-r--r-- | webkit/plugins/ppapi/ppb_video_decoder_impl.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/webkit/plugins/ppapi/ppb_video_decoder_impl.h b/webkit/plugins/ppapi/ppb_video_decoder_impl.h index a76d0ec..48b7b15 100644 --- a/webkit/plugins/ppapi/ppb_video_decoder_impl.h +++ b/webkit/plugins/ppapi/ppb_video_decoder_impl.h @@ -19,7 +19,6 @@ #include "webkit/plugins/ppapi/plugin_delegate.h" struct PP_PictureBuffer_Dev; -struct PP_VideoDecoderConfig_Dev; struct PP_VideoBitstreamBuffer_Dev; struct PPB_VideoDecoder_Dev; struct PPP_VideoDecoder_Dev; @@ -49,7 +48,7 @@ class PPB_VideoDecoder_Impl : public ::ppapi::Resource, // initialize. static PP_Resource Create(PP_Instance instance, PP_Resource graphics_context, - const PP_VideoConfigElement* config); + PP_VideoDecoder_Profile profile); // Resource overrides. virtual PPB_VideoDecoder_API* AsPPB_VideoDecoder_API() OVERRIDE; @@ -82,7 +81,7 @@ class PPB_VideoDecoder_Impl : public ::ppapi::Resource, bool Init(PP_Resource graphics_context, PluginDelegate::PlatformContext3D* context, gpu::gles2::GLES2Implementation* gles2_impl, - const PP_VideoConfigElement* config); + PP_VideoDecoder_Profile profile); // This is NULL before initialization, and if this PPB_VideoDecoder_Impl is // swapped with another. |