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 from benchmarks import silk_flags |
5 from measurements import repaint | 6 from measurements import repaint |
6 from telemetry import test | 7 from telemetry import test |
7 | 8 |
8 | 9 |
9 class RepaintKeyMobileSites(test.Test): | 10 class RepaintKeyMobileSites(test.Test): |
10 """Measures repaint performance on the key mobile sites. | 11 """Measures repaint performance on the key mobile sites. |
11 | 12 |
12 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 13 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
13 test = repaint.Repaint | 14 test = repaint.Repaint |
14 page_set = 'page_sets/key_mobile_sites.py' | 15 page_set = 'page_sets/key_mobile_sites.py' |
15 | 16 |
16 | 17 |
17 class RepaintGpuRasterizationKeyMobileSites(test.Test): | 18 class RepaintGpuRasterizationKeyMobileSites(test.Test): |
18 """Measures repaint performance on the key mobile sites with forced GPU | 19 """Measures repaint performance on the key mobile sites with forced GPU |
19 rasterization. | 20 rasterization. |
20 | 21 |
21 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 22 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
22 tag = 'gpu_rasterization' | 23 tag = 'gpu_rasterization' |
23 test = repaint.Repaint | 24 test = repaint.Repaint |
24 page_set = 'page_sets/key_mobile_sites.py' | 25 page_set = 'page_sets/key_mobile_sites.py' |
25 def CustomizeBrowserOptions(self, options): | 26 def CustomizeBrowserOptions(self, options): |
26 options.AppendExtraBrowserArgs('--enable-threaded-compositing') | 27 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
27 options.AppendExtraBrowserArgs('--force-compositing-mode') | |
28 options.AppendExtraBrowserArgs('--enable-impl-side-painting') | |
29 options.AppendExtraBrowserArgs('--force-gpu-rasterization') | |
OLD | NEW |