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 <memory> |
| 8 |
7 #include "base/callback.h" | 9 #include "base/callback.h" |
8 #include "base/command_line.h" | 10 #include "base/command_line.h" |
9 #include "base/logging.h" | 11 #include "base/logging.h" |
10 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
11 #include "base/memory/shared_memory.h" | 13 #include "base/memory/shared_memory.h" |
12 #include "base/numerics/safe_math.h" | 14 #include "base/numerics/safe_math.h" |
13 #include "base/sys_info.h" | 15 #include "base/sys_info.h" |
14 #include "build/build_config.h" | 16 #include "build/build_config.h" |
15 #include "gpu/ipc/client/gpu_memory_buffer_impl.h" | 17 #include "gpu/ipc/client/gpu_memory_buffer_impl.h" |
16 #include "gpu/ipc/service/gpu_channel.h" | 18 #include "gpu/ipc/service/gpu_channel.h" |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 Send(new AcceleratedVideoEncoderHostMsg_NotifyInputDone(host_route_id_, | 382 Send(new AcceleratedVideoEncoderHostMsg_NotifyInputDone(host_route_id_, |
381 frame_id)); | 383 frame_id)); |
382 // Just let |shm| fall out of scope. | 384 // Just let |shm| fall out of scope. |
383 } | 385 } |
384 | 386 |
385 void GpuVideoEncodeAccelerator::Send(IPC::Message* message) { | 387 void GpuVideoEncodeAccelerator::Send(IPC::Message* message) { |
386 stub_->channel()->Send(message); | 388 stub_->channel()->Send(message); |
387 } | 389 } |
388 | 390 |
389 } // namespace content | 391 } // namespace content |
OLD | NEW |