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

Unified Diff: content/common/gpu/media/media_channel.cc

Issue 1845563005: Refactor content/common/gpu into gpu/ipc/service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix gn libs defs Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/media/media_channel.cc
diff --git a/content/common/gpu/media/media_channel.cc b/content/common/gpu/media/media_channel.cc
index c2b6eff4103beb9cd45d564f6b47e1705848a8eb..98826cc6cbd28dbd573d0bbac332b8af5ca8fa27 100644
--- a/content/common/gpu/media/media_channel.cc
+++ b/content/common/gpu/media/media_channel.cc
@@ -4,10 +4,10 @@
#include "content/common/gpu/media/media_channel.h"
-#include "content/common/gpu/gpu_channel.h"
#include "content/common/gpu/media/gpu_video_decode_accelerator.h"
#include "content/common/gpu/media/gpu_video_encode_accelerator.h"
#include "content/common/gpu/media/media_messages.h"
+#include "gpu/ipc/service/gpu_channel.h"
namespace content {
@@ -16,8 +16,8 @@ namespace {
void SendCreateJpegDecoderResult(
scoped_ptr<IPC::Message> reply_message,
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
- base::WeakPtr<GpuChannel> channel,
- scoped_refptr<GpuChannelMessageFilter> filter,
+ base::WeakPtr<gpu::GpuChannel> channel,
+ scoped_refptr<gpu::GpuChannelMessageFilter> filter,
bool result) {
GpuChannelMsg_CreateJpegDecoder::WriteReplyParams(reply_message.get(),
result);
@@ -55,7 +55,7 @@ class MediaChannelDispatchHelper {
DISALLOW_COPY_AND_ASSIGN(MediaChannelDispatchHelper);
};
-MediaChannel::MediaChannel(GpuChannel* channel) : channel_(channel) {}
+MediaChannel::MediaChannel(gpu::GpuChannel* channel) : channel_(channel) {}
MediaChannel::~MediaChannel() {}
@@ -99,7 +99,7 @@ void MediaChannel::OnCreateVideoDecoder(
int32_t decoder_route_id,
IPC::Message* reply_message) {
TRACE_EVENT0("gpu", "MediaChannel::OnCreateVideoDecoder");
- GpuCommandBufferStub* stub =
+ gpu::GpuCommandBufferStub* stub =
channel_->LookupCommandBuffer(command_buffer_route_id);
if (!stub) {
reply_message->set_reply_error();
@@ -121,7 +121,7 @@ void MediaChannel::OnCreateVideoEncoder(int32_t command_buffer_route_id,
const CreateVideoEncoderParams& params,
IPC::Message* reply_message) {
TRACE_EVENT0("gpu", "MediaChannel::OnCreateVideoEncoder");
- GpuCommandBufferStub* stub =
+ gpu::GpuCommandBufferStub* stub =
channel_->LookupCommandBuffer(command_buffer_route_id);
if (!stub) {
reply_message->set_reply_error();

Powered by Google App Engine
This is Rietveld 408576698