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

Unified Diff: content/browser/gpu/gpu_data_manager_impl.cc

Issue 10031047: Merge 131225 - Disable image transport surface on AMD's dynamic switchable graphics. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1084/src/
Patch Set: Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/gpu_util.cc ('k') | content/gpu/gpu_info_collector_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_data_manager_impl.cc
===================================================================
--- content/browser/gpu/gpu_data_manager_impl.cc (revision 131659)
+++ content/browser/gpu/gpu_data_manager_impl.cc (working copy)
@@ -239,6 +239,12 @@
base::AutoLock auto_lock(gpu_info_lock_);
if (gpu_info_.optimus)
command_line->AppendSwitch(switches::kReduceGpuSandbox);
+ if (gpu_info_.amd_switchable) {
+ // The image transport surface currently doesn't work with AMD Dynamic
+ // Switchable graphics.
+ command_line->AppendSwitch(switches::kReduceGpuSandbox);
+ command_line->AppendSwitch(switches::kDisableImageTransportSurface);
+ }
}
}
@@ -340,6 +346,7 @@
object->finalized = other.finalized;
object->initialization_time = other.initialization_time;
object->optimus |= other.optimus;
+ object->amd_switchable |= other.amd_switchable;
if (object->driver_vendor.empty()) {
changed |= object->driver_vendor != other.driver_vendor;
« no previous file with comments | « chrome/browser/gpu_util.cc ('k') | content/gpu/gpu_info_collector_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698