OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/gpu/gpu_channel.h" | 5 #include "chrome/gpu/gpu_channel.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <windows.h> | 8 #include <windows.h> |
9 #endif | 9 #endif |
10 | 10 |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/lock.h" |
12 #include "base/process_util.h" | 13 #include "base/process_util.h" |
13 #include "base/string_util.h" | 14 #include "base/string_util.h" |
14 #include "chrome/common/child_process.h" | 15 #include "chrome/common/child_process.h" |
15 #include "chrome/common/chrome_constants.h" | 16 #include "chrome/common/chrome_constants.h" |
16 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
17 #include "chrome/common/gpu_messages.h" | 18 #include "chrome/common/gpu_messages.h" |
18 #include "chrome/gpu/gpu_thread.h" | 19 #include "chrome/gpu/gpu_thread.h" |
19 #include "chrome/gpu/gpu_video_service.h" | 20 #include "chrome/gpu/gpu_video_service.h" |
20 | 21 |
21 #if defined(OS_POSIX) | 22 #if defined(OS_POSIX) |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 channel_name, IPC::Channel::MODE_SERVER, this, NULL, | 258 channel_name, IPC::Channel::MODE_SERVER, this, NULL, |
258 ChildProcess::current()->io_message_loop(), false, | 259 ChildProcess::current()->io_message_loop(), false, |
259 ChildProcess::current()->GetShutDownEvent())); | 260 ChildProcess::current()->GetShutDownEvent())); |
260 | 261 |
261 return true; | 262 return true; |
262 } | 263 } |
263 | 264 |
264 std::string GpuChannel::GetChannelName() { | 265 std::string GpuChannel::GetChannelName() { |
265 return StringPrintf("%d.r%d", base::GetCurrentProcId(), renderer_id_); | 266 return StringPrintf("%d.r%d", base::GetCurrentProcId(), renderer_id_); |
266 } | 267 } |
OLD | NEW |