| 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()))) { | |
| 217 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_PictureReady) failed"; | 216 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_PictureReady) failed"; |
| 218 } | 217 } |
| 219 } | 218 } |
| 220 | 219 |
| 221 void GpuVideoDecodeAccelerator::NotifyError( | 220 void GpuVideoDecodeAccelerator::NotifyError( |
| 222 media::VideoDecodeAccelerator::Error error) { | 221 media::VideoDecodeAccelerator::Error error) { |
| 223 if (!Send(new AcceleratedVideoDecoderHostMsg_ErrorNotification( | 222 if (!Send(new AcceleratedVideoDecoderHostMsg_ErrorNotification( |
| 224 host_route_id_, error))) { | 223 host_route_id_, error))) { |
| 225 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_ErrorNotification) " | 224 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_ErrorNotification) " |
| 226 << "failed"; | 225 << "failed"; |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 return stub_->channel()->Send(message); | 506 return stub_->channel()->Send(message); |
| 508 } | 507 } |
| 509 | 508 |
| 510 void GpuVideoDecodeAccelerator::SendCreateDecoderReply(IPC::Message* message, | 509 void GpuVideoDecodeAccelerator::SendCreateDecoderReply(IPC::Message* message, |
| 511 bool succeeded) { | 510 bool succeeded) { |
| 512 GpuCommandBufferMsg_CreateVideoDecoder::WriteReplyParams(message, succeeded); | 511 GpuCommandBufferMsg_CreateVideoDecoder::WriteReplyParams(message, succeeded); |
| 513 Send(message); | 512 Send(message); |
| 514 } | 513 } |
| 515 | 514 |
| 516 } // namespace content | 515 } // namespace content |
| OLD | NEW |