| Index: content/gpu/gpu_child_thread.cc
|
| diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
|
| index 8612a66a2e0070c9d146eb11f05c60c66b7ef78e..d3e6e949b60707fedc11760844073f4df73412da 100644
|
| --- a/content/gpu/gpu_child_thread.cc
|
| +++ b/content/gpu/gpu_child_thread.cc
|
| @@ -116,7 +116,11 @@ bool GpuChildThread::OnControlMessageReceived(const IPC::Message& msg) {
|
| }
|
|
|
| void GpuChildThread::OnInitialize() {
|
| - logging::SetLogMessageHandler(GpuProcessLogMessageHandler);
|
| + // We don't need to pipe log messages if we are running the GPU thread in
|
| + // the browser process.
|
| + if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess) &&
|
| + !CommandLine::ForCurrentProcess()->HasSwitch(switches::kInProcessGPU))
|
| + logging::SetLogMessageHandler(GpuProcessLogMessageHandler);
|
|
|
| // Load the GL implementation and locate the bindings before starting the GPU
|
| // watchdog because this can take a lot of time and the GPU watchdog might
|
|
|