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

Unified Diff: chrome/gpu/gpu_channel.cc

Issue 6189008: GPU service respects --single-process (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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: chrome/gpu/gpu_channel.cc
===================================================================
--- chrome/gpu/gpu_channel.cc (revision 71128)
+++ chrome/gpu/gpu_channel.cc (working copy)
@@ -23,8 +23,10 @@
#include "ipc/ipc_channel_posix.h"
#endif
-GpuChannel::GpuChannel(int renderer_id)
- : renderer_id_(renderer_id) {
+GpuChannel::GpuChannel(GpuThread* gpu_thread, int renderer_id)
+ : gpu_thread_(gpu_thread),
+ renderer_id_(renderer_id) {
+ DCHECK(gpu_thread);
const CommandLine* command_line = CommandLine::ForCurrentProcess();
log_messages_ = command_line->HasSwitch(switches::kLogPluginMessages);
}
@@ -254,7 +256,7 @@
}
std::string GpuChannel::GetChannelName() {
- return StringPrintf("%d.r%d", base::GetCurrentProcId(), renderer_id_);
+ return StringPrintf("%d.r%d.gpu", base::GetCurrentProcId(), renderer_id_);
}
#if defined(OS_POSIX)

Powered by Google App Engine
This is Rietveld 408576698