| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/media_channel.h" | 5 #include "media/gpu/ipc/service/media_channel.h" |
| 6 | 6 |
| 7 #include "content/common/gpu/media/gpu_video_decode_accelerator.h" | |
| 8 #include "content/common/gpu/media/gpu_video_encode_accelerator.h" | |
| 9 #include "gpu/ipc/service/gpu_channel.h" | 7 #include "gpu/ipc/service/gpu_channel.h" |
| 10 #include "media/gpu/ipc/common/media_messages.h" | 8 #include "media/gpu/ipc/common/media_messages.h" |
| 9 #include "media/gpu/ipc/service/gpu_video_decode_accelerator.h" |
| 10 #include "media/gpu/ipc/service/gpu_video_encode_accelerator.h" |
| 11 | 11 |
| 12 namespace content { | 12 namespace media { |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 void SendCreateJpegDecoderResult( | 16 void SendCreateJpegDecoderResult( |
| 17 std::unique_ptr<IPC::Message> reply_message, | 17 std::unique_ptr<IPC::Message> reply_message, |
| 18 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, | 18 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, |
| 19 base::WeakPtr<gpu::GpuChannel> channel, | 19 base::WeakPtr<gpu::GpuChannel> channel, |
| 20 scoped_refptr<gpu::GpuChannelMessageFilter> filter, | 20 scoped_refptr<gpu::GpuChannelMessageFilter> filter, |
| 21 bool result) { | 21 bool result) { |
| 22 GpuChannelMsg_CreateJpegDecoder::WriteReplyParams(reply_message.get(), | 22 GpuChannelMsg_CreateJpegDecoder::WriteReplyParams(reply_message.get(), |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 encoder->Initialize(params.input_format, params.input_visible_size, | 135 encoder->Initialize(params.input_format, params.input_visible_size, |
| 136 params.output_profile, params.initial_bitrate); | 136 params.output_profile, params.initial_bitrate); |
| 137 GpuCommandBufferMsg_CreateVideoEncoder::WriteReplyParams(reply_message, | 137 GpuCommandBufferMsg_CreateVideoEncoder::WriteReplyParams(reply_message, |
| 138 succeeded); | 138 succeeded); |
| 139 Send(reply_message); | 139 Send(reply_message); |
| 140 | 140 |
| 141 // encoder is registered as a DestructionObserver of this stub and will | 141 // encoder is registered as a DestructionObserver of this stub and will |
| 142 // self-delete during destruction of this stub. | 142 // self-delete during destruction of this stub. |
| 143 } | 143 } |
| 144 | 144 |
| 145 } // namespace content | 145 } // namespace media |
| OLD | NEW |