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

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

Issue 2285443002: content: Reduce number of raster threads on big.LITTLE. (Closed)
Patch Set: Created 4 years, 4 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/browser/gpu/compositor_util.cc
diff --git a/content/browser/gpu/compositor_util.cc b/content/browser/gpu/compositor_util.cc
index 8631b5ce70e7a4a3406059d7f768346293c8194b..b0e9cdd4d28b3879fb5eacc55219e92a74bd58fd 100644
--- a/content/browser/gpu/compositor_util.cc
+++ b/content/browser/gpu/compositor_util.cc
@@ -161,9 +161,11 @@ const GpuFeatureInfo GetGpuFeatureInfo(size_t index, bool* eof) {
int NumberOfRendererRasterThreads() {
int num_processors = base::SysInfo::NumberOfProcessors();
-#if defined(OS_ANDROID)
- // Android may report 6 to 8 CPUs for big.LITTLE configurations.
- // Limit the number of raster threads based on maximum of 4 big cores.
+#if defined(OS_ANDROID) || \
+ (defined(OS_CHROMEOS) && defined(ARCH_CPU_ARM_FAMILY))
+ // Android and ChromeOS ARM devices may report 6 to 8 CPUs for big.LITTLE
+ // configurations. Limit the number of raster threads based on maximum of
+ // 4 big cores.
num_processors = std::min(num_processors, 4);
#endif
« 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