summaryrefslogtreecommitdiffstats
path: root/chrome/gpu/gpu_channel.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/gpu/gpu_channel.cc')
-rw-r--r--chrome/gpu/gpu_channel.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/gpu/gpu_channel.cc b/chrome/gpu/gpu_channel.cc
index 79e9186..3ff6da2 100644
--- a/chrome/gpu/gpu_channel.cc
+++ b/chrome/gpu/gpu_channel.cc
@@ -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 @@ bool GpuChannel::Init() {
}
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)