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

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

Issue 2354423002: Enable ANGLE ES3 by default in Chromium (Windows) (Closed)
Patch Set: order Created 4 years, 3 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_workaround_type.h » ('j') | ui/gl/gl_context_egl.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 <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 } 690 }
691 691
692 void GpuDataManagerImplPrivate::AppendGpuCommandLine( 692 void GpuDataManagerImplPrivate::AppendGpuCommandLine(
693 base::CommandLine* command_line, 693 base::CommandLine* command_line,
694 gpu::GpuPreferences* gpu_preferences) const { 694 gpu::GpuPreferences* gpu_preferences) const {
695 DCHECK(command_line); 695 DCHECK(command_line);
696 696
697 std::string use_gl = 697 std::string use_gl =
698 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 698 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
699 switches::kUseGL); 699 switches::kUseGL);
700 if (gpu_driver_bugs_.find(gpu::DISABLE_ES3_ANGLE) != gpu_driver_bugs_.end())
701 command_line->AppendSwitch(switches::kDisableES3ANGLE);
700 if (gpu_driver_bugs_.find(gpu::DISABLE_D3D11) != gpu_driver_bugs_.end()) 702 if (gpu_driver_bugs_.find(gpu::DISABLE_D3D11) != gpu_driver_bugs_.end())
701 command_line->AppendSwitch(switches::kDisableD3D11); 703 command_line->AppendSwitch(switches::kDisableD3D11);
702 if (gpu_driver_bugs_.find(gpu::DISABLE_DIRECT_COMPOSITION) != 704 if (gpu_driver_bugs_.find(gpu::DISABLE_DIRECT_COMPOSITION) !=
703 gpu_driver_bugs_.end()) 705 gpu_driver_bugs_.end())
704 command_line->AppendSwitch(switches::kDisableDirectComposition); 706 command_line->AppendSwitch(switches::kDisableDirectComposition);
705 if (use_swiftshader_) { 707 if (use_swiftshader_) {
706 command_line->AppendSwitchASCII(switches::kUseGL, "swiftshader"); 708 command_line->AppendSwitchASCII(switches::kUseGL, "swiftshader");
707 } else if ((IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_WEBGL) || 709 } else if ((IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_WEBGL) ||
708 IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_GPU_COMPOSITING) || 710 IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_GPU_COMPOSITING) ||
709 IsFeatureBlacklisted( 711 IsFeatureBlacklisted(
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
1290 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure; 1292 gpu_info_.context_info_state = gpu::kCollectInfoFatalFailure;
1291 #if defined(OS_WIN) 1293 #if defined(OS_WIN)
1292 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure; 1294 gpu_info_.dx_diagnostics_info_state = gpu::kCollectInfoFatalFailure;
1293 #endif 1295 #endif
1294 complete_gpu_info_already_requested_ = true; 1296 complete_gpu_info_already_requested_ = true;
1295 // Some observers might be waiting. 1297 // Some observers might be waiting.
1296 NotifyGpuInfoUpdate(); 1298 NotifyGpuInfoUpdate();
1297 } 1299 }
1298 1300
1299 } // namespace content 1301 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | gpu/config/gpu_driver_bug_workaround_type.h » ('j') | ui/gl/gl_context_egl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698