OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |