summaryrefslogtreecommitdiffstats
path: root/tools/perf/benchmarks/silk_flags.py
blob: ef5a8f5bea41005135b2b802fcb3caad6f0698fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

def CustomizeBrowserOptionsForSoftwareRasterization(options):
  """Enables flags needed for forced software rasterization."""
  options.AppendExtraBrowserArgs('--disable-gpu-rasterization')

def CustomizeBrowserOptionsForGpuRasterization(options):
  """Enables flags needed for forced GPU rasterization using Ganesh."""
  options.AppendExtraBrowserArgs('--enable-threaded-compositing')
  options.AppendExtraBrowserArgs('--enable-impl-side-painting')
  options.AppendExtraBrowserArgs('--force-gpu-rasterization')

def CustomizeBrowserOptionsForSyncScrolling(options):
  """Enables flags needed for synchronous (main thread) scrolling."""
  options.AppendExtraBrowserArgs('--disable-threaded-scrolling')