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

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

Issue 12461002: android: Add basic support for Broadcom GPUs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up ifdef 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 | gpu/command_buffer/service/async_pixel_transfer_delegate_android.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_private.cc
diff --git a/content/browser/gpu/gpu_data_manager_impl_private.cc b/content/browser/gpu/gpu_data_manager_impl_private.cc
index 080bb94dc9f7dffe2394aa7005248a19bffc097d..fc29be299cd7c8174ac5ca80d8b1ee4f47509681 100644
--- a/content/browser/gpu/gpu_data_manager_impl_private.cc
+++ b/content/browser/gpu/gpu_data_manager_impl_private.cc
@@ -98,6 +98,8 @@ void ApplyAndroidWorkarounds(const GPUInfo& gpu_info,
gpu_info.gl_vendor.find("ARM") != std::string::npos;
bool is_qualcomm =
gpu_info.gl_vendor.find("Qualcomm") != std::string::npos;
+ bool is_broadcom =
+ gpu_info.gl_vendor.find("Broadcom") != std::string::npos;
bool is_mali_t604 = is_arm &&
gpu_info.gl_renderer.find("Mali-T604") != std::string::npos;
@@ -113,7 +115,8 @@ void ApplyAndroidWorkarounds(const 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_vivante || is_img || is_mali_t604 || is_nexus7 || is_qualcomm)
+ if (is_vivante || is_img || is_mali_t604 || is_nexus7 || is_qualcomm ||
+ is_broadcom)
command_line->AppendSwitch(switches::kEnableVirtualGLContexts);
gfx::DeviceDisplayInfo info;
« no previous file with comments | « no previous file | gpu/command_buffer/service/async_pixel_transfer_delegate_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698