OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 | 5 |
6 def CustomizeBrowserOptionsForSoftwareRasterization(options): | 6 def CustomizeBrowserOptionsForSoftwareRasterization(options): |
7 """Enables flags needed for forced software rasterization.""" | 7 """Enables flags needed for forced software rasterization.""" |
8 options.AppendExtraBrowserArgs('--disable-gpu-rasterization') | 8 options.AppendExtraBrowserArgs('--disable-gpu-rasterization') |
9 | 9 |
10 | 10 |
11 def CustomizeBrowserOptionsForGpuRasterization(options): | 11 def CustomizeBrowserOptionsForGpuRasterization(options): |
12 """Enables flags needed for forced GPU rasterization using Ganesh.""" | 12 """Enables flags needed for forced GPU rasterization using Ganesh.""" |
13 options.AppendExtraBrowserArgs('--enable-threaded-compositing') | 13 options.AppendExtraBrowserArgs('--enable-threaded-compositing') |
14 options.AppendExtraBrowserArgs('--enable-impl-side-painting') | 14 options.AppendExtraBrowserArgs('--enable-impl-side-painting') |
15 options.AppendExtraBrowserArgs('--force-gpu-rasterization') | 15 options.AppendExtraBrowserArgs('--force-gpu-rasterization') |
16 | 16 |
17 | 17 |
18 def CustomizeBrowserOptionsForSyncScrolling(options): | 18 def CustomizeBrowserOptionsForSyncScrolling(options): |
19 """Enables flags needed for synchronous (main thread) scrolling.""" | 19 """Enables flags needed for synchronous (main thread) scrolling.""" |
20 options.AppendExtraBrowserArgs('--disable-threaded-scrolling') | 20 options.AppendExtraBrowserArgs('--disable-threaded-scrolling') |
| 21 |
| 22 def CustomizeBrowserOptionsForThreadTimes(options): |
| 23 """Disables options known to cause noise in thread times""" |
| 24 # Remove once crbug.com/621128 is fixed. |
| 25 options.AppendExtraBrowserArgs('--disable-top-sites') |
OLD | NEW |