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

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

Issue 927463004: cc: Default threaded GPU rasterization to ON. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | no next file » | 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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 294
295 bool IsThreadedGpuRasterizationEnabled() { 295 bool IsThreadedGpuRasterizationEnabled() {
296 if (!IsImplSidePaintingEnabled()) 296 if (!IsImplSidePaintingEnabled())
297 return false; 297 return false;
298 298
299 const base::CommandLine& command_line = 299 const base::CommandLine& command_line =
300 *base::CommandLine::ForCurrentProcess(); 300 *base::CommandLine::ForCurrentProcess();
301 301
302 if (command_line.HasSwitch(switches::kDisableThreadedGpuRasterization)) 302 if (command_line.HasSwitch(switches::kDisableThreadedGpuRasterization))
303 return false; 303 return false;
304 if (command_line.HasSwitch(switches::kEnableThreadedGpuRasterization))
305 return true;
306 304
307 return false; 305 return true;
308 } 306 }
309 307
310 bool UseSurfacesEnabled() { 308 bool UseSurfacesEnabled() {
311 #if defined(OS_ANDROID) 309 #if defined(OS_ANDROID)
312 return false; 310 return false;
313 #else 311 #else
314 const base::CommandLine& command_line = 312 const base::CommandLine& command_line =
315 *base::CommandLine::ForCurrentProcess(); 313 *base::CommandLine::ForCurrentProcess();
316 314
317 return command_line.HasSwitch(switches::kUseSurfaces); 315 return command_line.HasSwitch(switches::kUseSurfaces);
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 } 431 }
434 } 432 }
435 return problem_list; 433 return problem_list;
436 } 434 }
437 435
438 std::vector<std::string> GetDriverBugWorkarounds() { 436 std::vector<std::string> GetDriverBugWorkarounds() {
439 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); 437 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds();
440 } 438 }
441 439
442 } // namespace content 440 } // namespace content
OLDNEW
« 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