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

Unified Diff: content/gpu/gpu_child_thread.cc

Issue 2696473002: gpu: Use mojom API for creating gpu channel. (Closed)
Patch Set: . Created 3 years, 10 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/gpu/gpu_child_thread.cc
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
index 44318de65e89083ddd0e961bc1654d238e4a1d5e..3f53ad19721536ee5de95456ebd439d1d1cacf9c 100644
--- a/content/gpu/gpu_child_thread.cc
+++ b/content/gpu/gpu_child_thread.cc
@@ -271,7 +271,6 @@ bool GpuChildThread::OnMessageReceived(const IPC::Message& msg) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(GpuChildThread, msg)
- IPC_MESSAGE_HANDLER(GpuMsg_EstablishChannel, OnEstablishChannel)
IPC_MESSAGE_HANDLER(GpuMsg_CloseChannel, OnCloseChannel)
IPC_MESSAGE_HANDLER(GpuMsg_DestroyGpuMemoryBuffer, OnDestroyGpuMemoryBuffer)
IPC_MESSAGE_HANDLER(GpuMsg_LoadedShader, OnLoadedShader)
@@ -466,17 +465,6 @@ void GpuChildThread::OnGpuSwitched() {
ui::GpuSwitchingManager::GetInstance()->NotifyGpuSwitched();
}
-void GpuChildThread::OnEstablishChannel(const EstablishChannelParams& params) {
- if (!gpu_channel_manager())
- return;
-
- IPC::ChannelHandle channel_handle = gpu_channel_manager()->EstablishChannel(
- params.client_id, params.client_tracing_id, params.preempts,
- params.allow_view_command_buffers, params.allow_real_time_streams);
- gpu_service_->media_gpu_channel_manager()->AddChannel(params.client_id);
- Send(new GpuHostMsg_ChannelEstablished(channel_handle));
-}
-
void GpuChildThread::OnCloseChannel(int32_t client_id) {
if (gpu_channel_manager())
gpu_channel_manager()->RemoveChannel(client_id);

Powered by Google App Engine
This is Rietveld 408576698