| Index: content/common/gpu/gpu_command_buffer_stub.cc
|
| diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
|
| index 729f66d7da4f753b1bd7c81f82c96ef0710a2df7..bd57c41f19d2c76b3a6d8d4e369c0267680dd497 100644
|
| --- a/content/common/gpu/gpu_command_buffer_stub.cc
|
| +++ b/content/common/gpu/gpu_command_buffer_stub.cc
|
| @@ -22,6 +22,7 @@
|
| #include "content/common/gpu/media/gpu_video_decode_accelerator.h"
|
| #include "content/common/gpu/media/gpu_video_encode_accelerator.h"
|
| #include "content/public/common/content_client.h"
|
| +#include "content/public/common/content_switches.h"
|
| #include "gpu/command_buffer/common/constants.h"
|
| #include "gpu/command_buffer/common/gles2_cmd_utils.h"
|
| #include "gpu/command_buffer/common/mailbox.h"
|
| @@ -472,6 +473,13 @@ void GpuCommandBufferStub::OnInitialize(
|
|
|
| decoder_.reset(::gpu::gles2::GLES2Decoder::Create(context_group_.get()));
|
|
|
| + if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kSingleProcess) &&
|
| + !base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kInProcessGPU)) {
|
| + decoder_->SetAllowExit(true);
|
| + }
|
| +
|
| scheduler_.reset(new gpu::GpuScheduler(command_buffer_.get(),
|
| decoder_.get(),
|
| decoder_.get()));
|
|
|