OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_encode_accelerator.h" | 5 #include "content/common/gpu/media/gpu_video_encode_accelerator.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
11 #include "base/numerics/safe_math.h" | 11 #include "base/numerics/safe_math.h" |
12 #include "base/sys_info.h" | 12 #include "base/sys_info.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "content/common/gpu/client/gpu_memory_buffer_impl.h" | 14 #include "content/common/gpu/client/gpu_memory_buffer_impl.h" |
15 #include "content/common/gpu/gpu_channel.h" | 15 #include "content/common/gpu/gpu_channel.h" |
16 #include "content/common/gpu/gpu_channel_manager.h" | 16 #include "content/common/gpu/gpu_channel_manager.h" |
17 #include "content/common/gpu/media/gpu_video_accelerator_util.h" | 17 #include "content/common/gpu/media/gpu_video_accelerator_util.h" |
18 #include "content/common/gpu/media/media_messages.h" | 18 #include "content/common/gpu/media/media_messages.h" |
19 #include "content/public/common/content_switches.h" | |
20 #include "ipc/ipc_message_macros.h" | 19 #include "ipc/ipc_message_macros.h" |
21 #include "media/base/bind_to_current_loop.h" | 20 #include "media/base/bind_to_current_loop.h" |
22 #include "media/base/limits.h" | 21 #include "media/base/limits.h" |
23 #include "media/base/video_frame.h" | 22 #include "media/base/video_frame.h" |
24 | 23 |
25 #if defined(OS_CHROMEOS) | 24 #if defined(OS_CHROMEOS) |
26 #if defined(USE_V4L2_CODEC) | 25 #if defined(USE_V4L2_CODEC) |
27 #include "content/common/gpu/media/v4l2_video_encode_accelerator.h" | 26 #include "content/common/gpu/media/v4l2_video_encode_accelerator.h" |
28 #endif | 27 #endif |
29 #if defined(ARCH_CPU_X86_FAMILY) | 28 #if defined(ARCH_CPU_X86_FAMILY) |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 Send(new AcceleratedVideoEncoderHostMsg_NotifyInputDone(host_route_id_, | 453 Send(new AcceleratedVideoEncoderHostMsg_NotifyInputDone(host_route_id_, |
455 frame_id)); | 454 frame_id)); |
456 // Just let |buffers| fall out of scope. | 455 // Just let |buffers| fall out of scope. |
457 } | 456 } |
458 | 457 |
459 void GpuVideoEncodeAccelerator::Send(IPC::Message* message) { | 458 void GpuVideoEncodeAccelerator::Send(IPC::Message* message) { |
460 stub_->channel()->Send(message); | 459 stub_->channel()->Send(message); |
461 } | 460 } |
462 | 461 |
463 } // namespace content | 462 } // namespace content |
OLD | NEW |