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

Unified Diff: content/gpu/gpu_info_collector_android.cc

Issue 14069008: GPU: Reduce MakeCurrent calls to fix Orange San Diego (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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
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 157e5b61ff096ddc03827c52781a238097451cef..59c9edd7acfabfbd0c9daf585404444ca19a97c1 100644
--- a/content/gpu/gpu_info_collector_android.cc
+++ b/content/gpu/gpu_info_collector_android.cc
@@ -73,6 +73,7 @@ bool CollectBasicGraphicsInfo(content::GPUInfo* gpu_info) {
bool is_img = vendor.find("imagination") != std::string::npos;
bool is_arm = vendor.find("arm") != std::string::npos;
bool is_qualcomm = vendor.find("qualcomm") != std::string::npos;
+ bool is_hisilicon = vendor.find("hisilicon") != std::string::npos;
bool is_mali_t604 = is_arm && renderer.find("mali-t604") != std::string::npos;
base::android::BuildInfo* build_info =
@@ -85,7 +86,7 @@ bool CollectBasicGraphicsInfo(content::GPUInfo* gpu_info) {
// IMG: avoid context switching perf problems, crashes with share groups
// Mali-T604: http://crbug.com/154715
// QualComm, NVIDIA: Crashes with share groups
- if (is_img || is_mali_t604 || is_qualcomm || is_nexus7) {
+ if (is_img || is_mali_t604 || is_qualcomm || is_nexus7 || is_hisilicon) {
CommandLine::ForCurrentProcess()->AppendSwitch(
switches::kEnableVirtualGLContexts);
}
« no previous file with comments | « no previous file | gpu/command_buffer/service/gl_context_virtual.cc » ('j') | gpu/command_buffer/service/gl_context_virtual.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698