Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Side by Side Diff: media/gpu/ipc/service/media_channel.cc

Issue 1882373004: Migrate content/common/gpu/media code to media/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix several more bot-identified build issues Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698