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

Unified Diff: content/gpu/gpu_info_collector_android.cc

Issue 14672026: gpu: Disable API check on virtual contexts for Qualcomm. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_info_collector_android.cc
diff --git a/content/gpu/gpu_info_collector_android.cc b/content/gpu/gpu_info_collector_android.cc
index a190c9d8a78fe01cd51a3e7a1aed6dc3bf890d94..f148608e11ef6b8d27d5f87b58bc2bc69c19e5ef 100644
--- a/content/gpu/gpu_info_collector_android.cc
+++ b/content/gpu/gpu_info_collector_android.cc
@@ -84,17 +84,10 @@ bool CollectBasicGraphicsInfo(content::GPUInfo* gpu_info) {
bool is_nexus7 = model.find("nexus 7") != std::string::npos;
bool is_nexus10 = model.find("nexus 10") != std::string::npos;
- // Virtual contexts crash when switching surfaces, but only on SDK 16,
- // so we us full context switching for now. If virtual contexts can
- // avoid some of it's extra surface switches, or Qualcomm gives us
- // a more directed work-around, we can remove this.
- int sdk_int = base::android::BuildInfo::GetInstance()->sdk_int();
-
// IMG: avoid context switching perf problems, crashes with share groups
// Mali-T604: http://crbug.com/154715
// QualComm, NVIDIA: Crashes with share groups
- if (is_vivante || is_img || is_mali_t604 || is_nexus7
- || (is_qualcomm && sdk_int != 16)) {
+ if (is_vivante || is_img || is_mali_t604 || is_nexus7 || is_qualcomm) {
CommandLine::ForCurrentProcess()->AppendSwitch(
switches::kEnableVirtualGLContexts);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698