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

Side by Side Diff: content/common/gpu/media/gpu_video_decode_accelerator.cc

Issue 426873004: Pass decoded picture size from VDA to client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android build Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/gpu/media/gpu_video_decode_accelerator.h" 5 #include "content/common/gpu/media/gpu_video_decode_accelerator.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 SetTextureCleared(picture); 205 SetTextureCleared(picture);
206 } else { 206 } else {
207 DCHECK(io_message_loop_->BelongsToCurrentThread()); 207 DCHECK(io_message_loop_->BelongsToCurrentThread());
208 DebugAutoLock auto_lock(debug_uncleared_textures_lock_); 208 DebugAutoLock auto_lock(debug_uncleared_textures_lock_);
209 DCHECK_EQ(0u, uncleared_textures_.count(picture.picture_buffer_id())); 209 DCHECK_EQ(0u, uncleared_textures_.count(picture.picture_buffer_id()));
210 } 210 }
211 211
212 if (!Send(new AcceleratedVideoDecoderHostMsg_PictureReady( 212 if (!Send(new AcceleratedVideoDecoderHostMsg_PictureReady(
213 host_route_id_, 213 host_route_id_,
214 picture.picture_buffer_id(), 214 picture.picture_buffer_id(),
215 picture.bitstream_buffer_id()))) { 215 picture.bitstream_buffer_id(),
216 picture.visible_rect()))) {
216 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_PictureReady) failed"; 217 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_PictureReady) failed";
217 } 218 }
218 } 219 }
219 220
220 void GpuVideoDecodeAccelerator::NotifyError( 221 void GpuVideoDecodeAccelerator::NotifyError(
221 media::VideoDecodeAccelerator::Error error) { 222 media::VideoDecodeAccelerator::Error error) {
222 if (!Send(new AcceleratedVideoDecoderHostMsg_ErrorNotification( 223 if (!Send(new AcceleratedVideoDecoderHostMsg_ErrorNotification(
223 host_route_id_, error))) { 224 host_route_id_, error))) {
224 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_ErrorNotification) " 225 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_ErrorNotification) "
225 << "failed"; 226 << "failed";
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 return stub_->channel()->Send(message); 507 return stub_->channel()->Send(message);
507 } 508 }
508 509
509 void GpuVideoDecodeAccelerator::SendCreateDecoderReply(IPC::Message* message, 510 void GpuVideoDecodeAccelerator::SendCreateDecoderReply(IPC::Message* message,
510 bool succeeded) { 511 bool succeeded) {
511 GpuCommandBufferMsg_CreateVideoDecoder::WriteReplyParams(message, succeeded); 512 GpuCommandBufferMsg_CreateVideoDecoder::WriteReplyParams(message, succeeded);
512 Send(message); 513 Send(message);
513 } 514 }
514 515
515 } // namespace content 516 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/media/dxva_video_decode_accelerator.cc ('k') | content/common/gpu/media/v4l2_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698