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/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/logging.h" | 10 #include "base/logging.h" |
11 #include "base/stl_util-inl.h" | 11 #include "base/stl_util.h" |
12 #include "gpu/command_buffer/common/command_buffer.h" | 12 #include "gpu/command_buffer/common/command_buffer.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 #include "content/common/gpu/gpu_channel.h" | 15 #include "content/common/gpu/gpu_channel.h" |
16 #include "content/common/gpu/gpu_command_buffer_stub.h" | 16 #include "content/common/gpu/gpu_command_buffer_stub.h" |
17 #include "content/common/gpu/gpu_messages.h" | 17 #include "content/common/gpu/gpu_messages.h" |
18 #if defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) | 18 #if defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) |
19 #include "content/common/gpu/media/omx_video_decode_accelerator.h" | 19 #include "content/common/gpu/media/omx_video_decode_accelerator.h" |
20 #include "ui/gfx/gl/gl_surface_egl.h" | 20 #include "ui/gfx/gl/gl_surface_egl.h" |
21 #endif | 21 #endif |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 | 243 |
244 void GpuVideoDecodeAccelerator::NotifyResetDone() { | 244 void GpuVideoDecodeAccelerator::NotifyResetDone() { |
245 if (!Send(new AcceleratedVideoDecoderHostMsg_ResetDone(host_route_id_))) | 245 if (!Send(new AcceleratedVideoDecoderHostMsg_ResetDone(host_route_id_))) |
246 LOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_ResetDone) failed"; | 246 LOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_ResetDone) failed"; |
247 } | 247 } |
248 | 248 |
249 bool GpuVideoDecodeAccelerator::Send(IPC::Message* message) { | 249 bool GpuVideoDecodeAccelerator::Send(IPC::Message* message) { |
250 DCHECK(sender_); | 250 DCHECK(sender_); |
251 return sender_->Send(message); | 251 return sender_->Send(message); |
252 } | 252 } |
OLD | NEW |