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

Unified Diff: media/gpu/ipc/service/media_gpu_channel.cc

Issue 2864603002: Provide callback to create mojo AndroidOverlays to AVDA. (Closed)
Patch Set: fixed deps Created 3 years, 7 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: media/gpu/ipc/service/media_gpu_channel.cc
diff --git a/media/gpu/ipc/service/media_gpu_channel.cc b/media/gpu/ipc/service/media_gpu_channel.cc
index 2f5732d046bbbf24b1e819b3fbae5a53f87c26f6..39b381571340699901c81b63a7fa8f66a2aa5ff4 100644
--- a/media/gpu/ipc/service/media_gpu_channel.cc
+++ b/media/gpu/ipc/service/media_gpu_channel.cc
@@ -90,8 +90,12 @@ class MediaGpuChannelFilter : public IPC::MessageFilter {
};
MediaGpuChannel::MediaGpuChannel(gpu::GpuChannel* channel,
- const base::UnguessableToken& channel_token)
- : channel_(channel) {
+ const base::UnguessableToken& channel_token,
+ service_manager::Connector* connector,
+ const char* browser_service_name)
+ : channel_(channel),
+ connector_(connector),
+ browser_service_name_(browser_service_name) {
channel_->AddFilter(new MediaGpuChannelFilter(channel_token));
}
@@ -149,7 +153,8 @@ void MediaGpuChannel::OnCreateVideoDecoder(
return;
}
GpuVideoDecodeAccelerator* decoder = new GpuVideoDecodeAccelerator(
- decoder_route_id, stub, stub->channel()->io_task_runner());
+ decoder_route_id, stub, stub->channel()->io_task_runner(), connector_,
+ browser_service_name_);
bool succeeded = decoder->Initialize(config);
GpuCommandBufferMsg_CreateVideoDecoder::WriteReplyParams(reply_message,
succeeded);

Powered by Google App Engine
This is Rietveld 408576698