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

Unified Diff: content/common/gpu/media/gpu_video_decode_accelerator.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/common/gpu/media/gpu_video_decode_accelerator.cc
diff --git a/content/common/gpu/media/gpu_video_decode_accelerator.cc b/content/common/gpu/media/gpu_video_decode_accelerator.cc
index 54e909115ba52ab5001c228b769830cb7dcb03fd..42d1f6590d8337eef0ec89ca982df2dab7850815 100644
--- a/content/common/gpu/media/gpu_video_decode_accelerator.cc
+++ b/content/common/gpu/media/gpu_video_decode_accelerator.cc
@@ -104,7 +104,7 @@ void GpuVideoDecodeAccelerator::NotifyError(
}
void GpuVideoDecodeAccelerator::Initialize(
- const std::vector<int32>& configs,
+ const media::VideoDecodeAccelerator::Profile profile,
IPC::Message* init_done_msg) {
DCHECK(!video_decode_accelerator_.get());
DCHECK(!init_done_msg_);
@@ -117,7 +117,7 @@ void GpuVideoDecodeAccelerator::Initialize(
gfx::GLSurfaceEGL::GetHardwareDisplay(),
stub_->scheduler()->decoder()->GetGLContext()->GetHandle());
video_decode_accelerator_ = omx_decoder;
- video_decode_accelerator_->Initialize(configs);
+ video_decode_accelerator_->Initialize(profile);
#else
NOTIMPLEMENTED() << "HW video decode acceleration not available.";
NotifyError(media::VideoDecodeAccelerator::PLATFORM_FAILURE);

Powered by Google App Engine
This is Rietveld 408576698