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

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

Issue 12632009: Merge 186345 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1410/src/
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/gpu/gpu_internals_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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.h" 5 #include "content/browser/gpu/gpu_data_manager_impl.h"
6 6
7 #if defined(OS_MACOSX) 7 #if defined(OS_MACOSX)
8 #include <ApplicationServices/ApplicationServices.h> 8 #include <ApplicationServices/ApplicationServices.h>
9 #endif // OS_MACOSX 9 #endif // OS_MACOSX
10 10
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 break; 428 break;
429 } 429 }
430 } else { 430 } else {
431 command_line->AppendSwitchASCII(switches::kSupportsDualGpus, "false"); 431 command_line->AppendSwitchASCII(switches::kSupportsDualGpus, "false");
432 } 432 }
433 433
434 if (!swiftshader_path.empty()) 434 if (!swiftshader_path.empty())
435 command_line->AppendSwitchPath(switches::kSwiftShaderPath, 435 command_line->AppendSwitchPath(switches::kSwiftShaderPath,
436 swiftshader_path); 436 swiftshader_path);
437 437
438 #if defined(OS_WIN)
439 // DisplayLink 7.1 and earlier can cause the GPU process to crash on startup.
440 // http://crbug.com/177611
441 if (gpu_info_.display_link_version.IsValid()
442 && gpu_info_.display_link_version.IsOlderThan("7.2")) {
443 command_line->AppendSwitch(switches::kReduceGpuSandbox);
444 }
445 #endif
446
438 { 447 {
439 base::AutoLock auto_lock(gpu_info_lock_); 448 base::AutoLock auto_lock(gpu_info_lock_);
440 if (gpu_info_.optimus) 449 if (gpu_info_.optimus)
441 command_line->AppendSwitch(switches::kReduceGpuSandbox); 450 command_line->AppendSwitch(switches::kReduceGpuSandbox);
442 if (gpu_info_.amd_switchable) { 451 if (gpu_info_.amd_switchable) {
443 // The image transport surface currently doesn't work with AMD Dynamic 452 // The image transport surface currently doesn't work with AMD Dynamic
444 // Switchable graphics. 453 // Switchable graphics.
445 command_line->AppendSwitch(switches::kReduceGpuSandbox); 454 command_line->AppendSwitch(switches::kReduceGpuSandbox);
446 command_line->AppendSwitch(switches::kDisableImageTransportSurface); 455 command_line->AppendSwitch(switches::kDisableImageTransportSurface);
447 } 456 }
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 BLOCK_STATUS_MAX); 785 BLOCK_STATUS_MAX);
777 786
778 return DOMAIN_BLOCK_STATUS_NOT_BLOCKED; 787 return DOMAIN_BLOCK_STATUS_NOT_BLOCKED;
779 } 788 }
780 789
781 int64 GpuDataManagerImpl::GetBlockAllDomainsDurationInMs() const { 790 int64 GpuDataManagerImpl::GetBlockAllDomainsDurationInMs() const {
782 return kBlockAllDomainsMs; 791 return kBlockAllDomainsMs;
783 } 792 }
784 793
785 } // namespace content 794 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698