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

Unified Diff: content/renderer/pepper_platform_video_decoder_impl.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: content/renderer/pepper_platform_video_decoder_impl.cc
diff --git a/content/renderer/pepper_platform_video_decoder_impl.cc b/content/renderer/pepper_platform_video_decoder_impl.cc
index 79600bb2dec401419ba5bc2ef47248724d532a9c..81b98571212b623751bb77366fccaf7b0cddb241 100644
--- a/content/renderer/pepper_platform_video_decoder_impl.cc
+++ b/content/renderer/pepper_platform_video_decoder_impl.cc
@@ -24,7 +24,7 @@ PlatformVideoDecoderImpl::PlatformVideoDecoderImpl(
PlatformVideoDecoderImpl::~PlatformVideoDecoderImpl() {}
-bool PlatformVideoDecoderImpl::Initialize(const std::vector<int32>& configs) {
+bool PlatformVideoDecoderImpl::Initialize(Profile profile) {
// TODO(vrk): Support multiple decoders.
if (decoder_)
return true;
@@ -45,7 +45,7 @@ bool PlatformVideoDecoderImpl::Initialize(const std::vector<int32>& configs) {
// Send IPC message to initialize decoder in GPU process.
decoder_ = channel->CreateVideoDecoder(
- command_buffer_route_id_, configs, this);
+ command_buffer_route_id_, profile, this);
return decoder_.get() != NULL;
}

Powered by Google App Engine
This is Rietveld 408576698