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

Unified Diff: content/common/gpu/gpu_video_decode_accelerator.cc

Issue 7021020: Clean up video frame sizes, types in Video Decode API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 9 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
Index: content/common/gpu/gpu_video_decode_accelerator.cc
diff --git a/content/common/gpu/gpu_video_decode_accelerator.cc b/content/common/gpu/gpu_video_decode_accelerator.cc
index 35d0a0b0ec3c325d71e36ee943dafed3f33d0e5a..32eca29abb4c5e88e39af1f9934a97ee775fd99c 100644
--- a/content/common/gpu/gpu_video_decode_accelerator.cc
+++ b/content/common/gpu/gpu_video_decode_accelerator.cc
@@ -52,11 +52,9 @@ void GpuVideoDecodeAccelerator::OnChannelError() {
}
void GpuVideoDecodeAccelerator::ProvidePictureBuffers(
- uint32 requested_num_of_buffers,
- const gfx::Size& dimensions,
- media::VideoDecodeAccelerator::MemoryType type) {
+ uint32 requested_num_of_buffers, const gfx::Size& dimensions) {
if (!Send(new AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers(
- route_id_, requested_num_of_buffers, dimensions, type))) {
+ route_id_, requested_num_of_buffers, dimensions))) {
LOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers) "
<< "failed";
}
@@ -80,9 +78,7 @@ void GpuVideoDecodeAccelerator::PictureReady(
if (!Send(new AcceleratedVideoDecoderHostMsg_PictureReady(
route_id_,
picture.picture_buffer_id(),
- picture.bitstream_buffer_id(),
- picture.visible_size(),
- picture.decoded_size()))) {
+ picture.bitstream_buffer_id()))) {
LOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_PictureReady) failed";
}
}

Powered by Google App Engine
This is Rietveld 408576698