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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 247 |
248 void GpuVideoDecodeAccelerator::NotifyResetDone() { | 248 void GpuVideoDecodeAccelerator::NotifyResetDone() { |
249 if (!Send(new AcceleratedVideoDecoderHostMsg_ResetDone(host_route_id_))) | 249 if (!Send(new AcceleratedVideoDecoderHostMsg_ResetDone(host_route_id_))) |
250 LOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_ResetDone) failed"; | 250 LOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_ResetDone) failed"; |
251 } | 251 } |
252 | 252 |
253 bool GpuVideoDecodeAccelerator::Send(IPC::Message* message) { | 253 bool GpuVideoDecodeAccelerator::Send(IPC::Message* message) { |
254 DCHECK(sender_); | 254 DCHECK(sender_); |
255 return sender_->Send(message); | 255 return sender_->Send(message); |
256 } | 256 } |
OLD | NEW |