| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/renderer/gpu/gpu_video_decode_accelerator_host.h" | 5 #include "content/renderer/gpu/gpu_video_decode_accelerator_host.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/process_util.h" |
| 10 #include "base/task.h" | 11 #include "base/task.h" |
| 11 #include "content/common/gpu/gpu_messages.h" | 12 #include "content/common/gpu/gpu_messages.h" |
| 12 #include "content/common/view_messages.h" | 13 #include "content/common/view_messages.h" |
| 13 #include "content/renderer/gpu/gpu_channel_host.h" | 14 #include "content/renderer/gpu/gpu_channel_host.h" |
| 14 #include "content/renderer/render_thread_impl.h" | 15 #include "content/renderer/render_thread_impl.h" |
| 15 #include "ipc/ipc_message_macros.h" | 16 #include "ipc/ipc_message_macros.h" |
| 16 #include "ipc/ipc_message_utils.h" | 17 #include "ipc/ipc_message_utils.h" |
| 17 | 18 |
| 18 using media::VideoDecodeAccelerator; | 19 using media::VideoDecodeAccelerator; |
| 19 | 20 |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 client_->NotifyEndOfStream(); | 173 client_->NotifyEndOfStream(); |
| 173 } | 174 } |
| 174 | 175 |
| 175 void GpuVideoDecodeAcceleratorHost::OnErrorNotification(uint32 error) { | 176 void GpuVideoDecodeAcceleratorHost::OnErrorNotification(uint32 error) { |
| 176 DCHECK(CalledOnValidThread()); | 177 DCHECK(CalledOnValidThread()); |
| 177 if (!client_) | 178 if (!client_) |
| 178 return; | 179 return; |
| 179 client_->NotifyError( | 180 client_->NotifyError( |
| 180 static_cast<media::VideoDecodeAccelerator::Error>(error)); | 181 static_cast<media::VideoDecodeAccelerator::Error>(error)); |
| 181 } | 182 } |
| OLD | NEW |