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

Unified Diff: ppapi/cpp/dev/video_decoder_dev.cc

Issue 7779001: Replace the use of an int32* with a proper struct for decoder configuration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replaced struct with explicit profile parameter. Created 9 years, 4 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: ppapi/cpp/dev/video_decoder_dev.cc
diff --git a/ppapi/cpp/dev/video_decoder_dev.cc b/ppapi/cpp/dev/video_decoder_dev.cc
index cde75f6025f8e34cf2029c9a2924d9e05932d9bb..f7ab651887dd472a07c9442ead2d8e3d70fb624e 100644
--- a/ppapi/cpp/dev/video_decoder_dev.cc
+++ b/ppapi/cpp/dev/video_decoder_dev.cc
@@ -23,22 +23,22 @@ template <> const char* interface_name<PPB_VideoDecoder_Dev>() {
} // namespace
-VideoDecoder_Dev::VideoDecoder_Dev(const Instance& instance,
+VideoDecoder_Dev::VideoDecoder_Dev(const Instance* instance,
const Context3D_Dev& context,
- const PP_VideoConfigElement* config) {
+ PP_VideoDecoder_Profile profile) {
if (!has_interface<PPB_VideoDecoder_Dev>())
return;
PassRefFromConstructor(get_interface<PPB_VideoDecoder_Dev>()->Create(
- instance.pp_instance(), context.pp_resource(), config));
+ instance->pp_instance(), context.pp_resource(), profile));
}
-VideoDecoder_Dev::VideoDecoder_Dev(const Instance& instance,
+VideoDecoder_Dev::VideoDecoder_Dev(const Instance* instance,
const Graphics3D_Dev& context,
- const PP_VideoConfigElement* config) {
+ PP_VideoDecoder_Profile profile) {
if (!has_interface<PPB_VideoDecoder_Dev>())
return;
PassRefFromConstructor(get_interface<PPB_VideoDecoder_Dev>()->Create(
- instance.pp_instance(), context.pp_resource(), config));
+ instance->pp_instance(), context.pp_resource(), profile));
}
VideoDecoder_Dev::VideoDecoder_Dev(PP_Resource resource) : Resource(resource) {

Powered by Google App Engine
This is Rietveld 408576698