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

Unified Diff: content/common/gpu/gpu_channel_manager.cc

Issue 1823723002: Move establish_channel_params.{cc|h} to content/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « content/common/gpu/gpu_channel_manager.h ('k') | content/common/gpu/gpu_channel_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel_manager.cc
diff --git a/content/common/gpu/gpu_channel_manager.cc b/content/common/gpu/gpu_channel_manager.cc
index feb2def0b5408fa369284e88fe7a51374464827a..35d244b5f44414f492d781fa020a84775f9b271f 100644
--- a/content/common/gpu/gpu_channel_manager.cc
+++ b/content/common/gpu/gpu_channel_manager.cc
@@ -12,7 +12,6 @@
#include "base/single_thread_task_runner.h"
#include "base/thread_task_runner_handle.h"
#include "build/build_config.h"
-#include "content/common/gpu/establish_channel_params.h"
#include "content/common/gpu/gpu_channel.h"
#include "content/common/gpu/gpu_channel_manager_delegate.h"
#include "content/common/gpu/gpu_memory_buffer_factory.h"
@@ -159,13 +158,16 @@ scoped_ptr<GpuChannel> GpuChannelManager::CreateGpuChannel(
}
IPC::ChannelHandle GpuChannelManager::EstablishChannel(
- const EstablishChannelParams& params) {
- scoped_ptr<GpuChannel> channel(CreateGpuChannel(
- params.client_id, params.client_tracing_id, params.preempts,
- params.allow_view_command_buffers, params.allow_real_time_streams));
+ int client_id,
+ uint64_t client_tracing_id,
+ bool preempts,
+ bool allow_view_command_buffers,
+ bool allow_real_time_streams) {
+ scoped_ptr<GpuChannel> channel(
+ CreateGpuChannel(client_id, client_tracing_id, preempts,
+ allow_view_command_buffers, allow_real_time_streams));
IPC::ChannelHandle channel_handle = channel->Init(shutdown_event_);
-
- gpu_channels_.set(params.client_id, std::move(channel));
+ gpu_channels_.set(client_id, std::move(channel));
return channel_handle;
}
« no previous file with comments | « content/common/gpu/gpu_channel_manager.h ('k') | content/common/gpu/gpu_channel_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698