| Index: content/browser/gpu/gpu_process_host.cc
|
| diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
|
| index faa4ebd939e945a5b7905f53cb25a3ff2c88983f..7ac4f5ee567824f8bc32b0844176dbcf8120aea1 100644
|
| --- a/content/browser/gpu/gpu_process_host.cc
|
| +++ b/content/browser/gpu/gpu_process_host.cc
|
| @@ -969,13 +969,6 @@ void GpuProcessHost::StopGpuProcess() {
|
| }
|
|
|
| bool GpuProcessHost::LaunchGpuProcess(gpu::GpuPreferences* gpu_preferences) {
|
| - if (!(gpu_enabled_ &&
|
| - GpuDataManagerImpl::GetInstance()->ShouldUseSwiftShader()) &&
|
| - !hardware_gpu_enabled_) {
|
| - SendOutstandingReplies();
|
| - return false;
|
| - }
|
| -
|
| const base::CommandLine& browser_command_line =
|
| *base::CommandLine::ForCurrentProcess();
|
|
|
| @@ -1032,6 +1025,13 @@ bool GpuProcessHost::LaunchGpuProcess(gpu::GpuPreferences* gpu_preferences) {
|
| (cmd_line->GetSwitchValueASCII(switches::kUseGL) == "swiftshader");
|
| }
|
|
|
| + bool current_gpu_type_enabled =
|
| + swiftshader_rendering_ ? gpu_enabled_ : hardware_gpu_enabled_;
|
| + if (!current_gpu_type_enabled) {
|
| + SendOutstandingReplies();
|
| + return false;
|
| + }
|
| +
|
| UMA_HISTOGRAM_BOOLEAN("GPU.GPU.GPUProcessSoftwareRendering",
|
| swiftshader_rendering_);
|
|
|
|
|