Index: content/browser/gpu/gpu_data_manager.cc |
=================================================================== |
--- content/browser/gpu/gpu_data_manager.cc (revision 130483) |
+++ content/browser/gpu/gpu_data_manager.cc (working copy) |
@@ -503,6 +503,12 @@ |
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); |
+ } |
} |
void GpuDataManager::SetGpuBlacklist(GpuBlacklist* gpu_blacklist) { |
@@ -736,6 +742,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; |