Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: content/browser/gpu/gpu_data_manager_impl_private.cc

Issue 18501018: Enable ANGLE D3D11 runtime for Windows 7+. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | gpu/config/gpu_driver_bug_list_json.cc » ('j') | ui/gl/gl_switches.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | gpu/config/gpu_driver_bug_list_json.cc » ('j') | ui/gl/gl_switches.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698