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

Unified Diff: gpu/config/gpu_control_list.cc

Issue 1719113002: Fix GPU acceleration on Intel GMA* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix logic Created 4 years, 10 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 | « no previous file | gpu/config/gpu_control_list_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/config/gpu_control_list.cc
diff --git a/gpu/config/gpu_control_list.cc b/gpu/config/gpu_control_list.cc
index a59d3ebd05487a44c455e3f2b149ed7e7a22ec45..09f6d1e6b791b930650c4c8d029fa7aa2c293feb 100644
--- a/gpu/config/gpu_control_list.cc
+++ b/gpu/config/gpu_control_list.cc
@@ -1155,6 +1155,8 @@ bool GpuControlList::GpuControlListEntry::Contains(
if (gpu_info.secondary_gpus[ii].active)
candidates.push_back(gpu_info.secondary_gpus[ii]);
}
+ if (candidates.empty())
+ candidates.push_back(gpu_info.gpu);
default:
break;
}
« no previous file with comments | « no previous file | gpu/config/gpu_control_list_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698