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

Side by Side Diff: content/browser/gpu/compositor_util.cc

Issue 1784623005: Test dynamic priorities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « cc/raster/tile_task_runner.h ('k') | content/renderer/raster_worker_pool.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/gpu/compositor_util.h" 5 #include "content/browser/gpu/compositor_util.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 int num_processors = base::SysInfo::NumberOfProcessors(); 175 int num_processors = base::SysInfo::NumberOfProcessors();
176 176
177 #if defined(OS_ANDROID) 177 #if defined(OS_ANDROID)
178 // Android may report 6 to 8 CPUs for big.LITTLE configurations. 178 // Android may report 6 to 8 CPUs for big.LITTLE configurations.
179 // Limit the number of raster threads based on maximum of 4 big cores. 179 // Limit the number of raster threads based on maximum of 4 big cores.
180 num_processors = std::min(num_processors, 4); 180 num_processors = std::min(num_processors, 4);
181 #endif 181 #endif
182 182
183 int num_raster_threads = num_processors / 2; 183 int num_raster_threads = num_processors / 2;
184 184
185 #if defined(OS_ANDROID) 185 #if 0
186 // Limit the number of raster threads to 1 on Android. 186 // Limit the number of raster threads to 1 on Android.
187 // TODO(reveman): Remove this when we have a better mechanims to prevent 187 // TODO(reveman): Remove this when we have a better mechanims to prevent
188 // pre-paint raster work from slowing down non-raster work. crbug.com/504515 188 // pre-paint raster work from slowing down non-raster work. crbug.com/504515
189 num_raster_threads = 1; 189 num_raster_threads = 1;
190 #endif 190 #endif
191 191
192 const base::CommandLine& command_line = 192 const base::CommandLine& command_line =
193 *base::CommandLine::ForCurrentProcess(); 193 *base::CommandLine::ForCurrentProcess();
194 194
195 if (command_line.HasSwitch(switches::kNumRasterThreads)) { 195 if (command_line.HasSwitch(switches::kNumRasterThreads)) {
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 } 399 }
400 } 400 }
401 return problem_list; 401 return problem_list;
402 } 402 }
403 403
404 std::vector<std::string> GetDriverBugWorkarounds() { 404 std::vector<std::string> GetDriverBugWorkarounds() {
405 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); 405 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds();
406 } 406 }
407 407
408 } // namespace content 408 } // namespace content
OLDNEW
« no previous file with comments | « cc/raster/tile_task_runner.h ('k') | content/renderer/raster_worker_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698