| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "content/browser/gpu/gpu_data_manager_impl_private.h" | 5 #include "content/browser/gpu/gpu_data_manager_impl_private.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 CommandLine::ForCurrentProcess()->GetSwitchValuePath( | 653 CommandLine::ForCurrentProcess()->GetSwitchValuePath( |
| 654 switches::kSwiftShaderPath); | 654 switches::kSwiftShaderPath); |
| 655 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_MULTISAMPLING) && | 655 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_MULTISAMPLING) && |
| 656 !command_line->HasSwitch(switches::kDisableGLMultisampling)) { | 656 !command_line->HasSwitch(switches::kDisableGLMultisampling)) { |
| 657 command_line->AppendSwitch(switches::kDisableGLMultisampling); | 657 command_line->AppendSwitch(switches::kDisableGLMultisampling); |
| 658 } | 658 } |
| 659 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_TEXTURE_SHARING)) { | 659 if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_TEXTURE_SHARING)) { |
| 660 command_line->AppendSwitch(switches::kDisableImageTransportSurface); | 660 command_line->AppendSwitch(switches::kDisableImageTransportSurface); |
| 661 reduce_sandbox = true; | 661 reduce_sandbox = true; |
| 662 } | 662 } |
| 663 if (gpu_driver_bugs_.find(gpu::DISABLE_D3D11) != gpu_driver_bugs_.end()) |
| 664 command_line->AppendSwitch(switches::kDisableD3D11); |
| 663 if (use_swiftshader_) { | 665 if (use_swiftshader_) { |
| 664 command_line->AppendSwitchASCII(switches::kUseGL, "swiftshader"); | 666 command_line->AppendSwitchASCII(switches::kUseGL, "swiftshader"); |
| 665 if (swiftshader_path.empty()) | 667 if (swiftshader_path.empty()) |
| 666 swiftshader_path = swiftshader_path_; | 668 swiftshader_path = swiftshader_path_; |
| 667 } else if ((IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_WEBGL) || | 669 } else if ((IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_WEBGL) || |
| 668 IsFeatureBlacklisted( | 670 IsFeatureBlacklisted( |
| 669 gpu::GPU_FEATURE_TYPE_ACCELERATED_COMPOSITING) || | 671 gpu::GPU_FEATURE_TYPE_ACCELERATED_COMPOSITING) || |
| 670 IsFeatureBlacklisted( | 672 IsFeatureBlacklisted( |
| 671 gpu::GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS)) && | 673 gpu::GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS)) && |
| 672 (use_gl == "any")) { | 674 (use_gl == "any")) { |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1196 void GpuDataManagerImplPrivate::OnGpuProcessInitFailure() { | 1198 void GpuDataManagerImplPrivate::OnGpuProcessInitFailure() { |
| 1197 gpu_process_accessible_ = false; | 1199 gpu_process_accessible_ = false; |
| 1198 gpu_info_.finalized = true; | 1200 gpu_info_.finalized = true; |
| 1199 complete_gpu_info_already_requested_ = true; | 1201 complete_gpu_info_already_requested_ = true; |
| 1200 // Some observers might be waiting. | 1202 // Some observers might be waiting. |
| 1201 NotifyGpuInfoUpdate(); | 1203 NotifyGpuInfoUpdate(); |
| 1202 } | 1204 } |
| 1203 | 1205 |
| 1204 } // namespace content | 1206 } // namespace content |
| 1205 | 1207 |
| OLD | NEW |