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/client/gpu_video_decode_accelerator_host.h" | 5 #include "content/common/gpu/client/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/message_loop.h" |
10 #include "content/common/gpu/client/gpu_channel_host.h" | 10 #include "content/common/gpu/client/gpu_channel_host.h" |
11 #include "content/common/gpu/gpu_messages.h" | 11 #include "content/common/gpu/gpu_messages.h" |
12 #include "content/common/view_messages.h" | 12 #include "content/common/view_messages.h" |
13 #include "ipc/ipc_message_macros.h" | 13 #include "ipc/ipc_message_macros.h" |
14 #include "ipc/ipc_message_utils.h" | 14 #include "ipc/ipc_message_utils.h" |
15 | 15 |
16 #if defined(OS_WIN) | 16 #if defined(OS_WIN) |
17 #include "content/public/common/sandbox_init.h" | 17 #include "content/public/common/sandbox_init.h" |
18 #endif // OS_WIN | 18 #endif // OS_WIN |
19 | 19 |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 void GpuVideoDecodeAcceleratorHost::OnErrorNotification(uint32 error) { | 218 void GpuVideoDecodeAcceleratorHost::OnErrorNotification(uint32 error) { |
219 DCHECK(CalledOnValidThread()); | 219 DCHECK(CalledOnValidThread()); |
220 if (!client_) | 220 if (!client_) |
221 return; | 221 return; |
222 client_->NotifyError( | 222 client_->NotifyError( |
223 static_cast<media::VideoDecodeAccelerator::Error>(error)); | 223 static_cast<media::VideoDecodeAccelerator::Error>(error)); |
224 client_ = NULL; | 224 client_ = NULL; |
225 } | 225 } |
226 | 226 |
227 } // namespace content | 227 } // namespace content |
OLD | NEW |