| 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 core import perf_benchmark | 5 from core import perf_benchmark |
| 6 | 6 |
| 7 from benchmarks import silk_flags | 7 from benchmarks import silk_flags |
| 8 from measurements import smoothness | 8 from measurements import smoothness |
| 9 from telemetry import benchmark | 9 from telemetry import benchmark |
| 10 import page_sets | 10 import page_sets |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 default=None, | 21 default=None, |
| 22 help='Width of invalidations for fixed_size mode.') | 22 help='Width of invalidations for fixed_size mode.') |
| 23 parser.add_option('--height', type='int', | 23 parser.add_option('--height', type='int', |
| 24 default=None, | 24 default=None, |
| 25 help='Height of invalidations for fixed_size mode.') | 25 help='Height of invalidations for fixed_size mode.') |
| 26 | 26 |
| 27 @classmethod | 27 @classmethod |
| 28 def Name(cls): | 28 def Name(cls): |
| 29 return 'repaint' | 29 return 'repaint' |
| 30 | 30 |
| 31 def CreateUserStorySet(self, options): | 31 def CreateStorySet(self, options): |
| 32 return page_sets.KeyMobileSitesRepaintPageSet( | 32 return page_sets.KeyMobileSitesRepaintPageSet( |
| 33 options.mode, options.width, options.height) | 33 options.mode, options.width, options.height) |
| 34 | 34 |
| 35 def CreatePageTest(self, options): | 35 def CreatePageTest(self, options): |
| 36 return smoothness.Repaint() | 36 return smoothness.Repaint() |
| 37 | 37 |
| 38 @benchmark.Enabled('android') | 38 @benchmark.Enabled('android') |
| 39 class RepaintKeyMobileSites(_Repaint): | 39 class RepaintKeyMobileSites(_Repaint): |
| 40 """Measures repaint performance on the key mobile sites. | 40 """Measures repaint performance on the key mobile sites. |
| 41 | 41 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 53 | 53 |
| 54 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 54 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 55 tag = 'gpu_rasterization' | 55 tag = 'gpu_rasterization' |
| 56 def SetExtraBrowserOptions(self, options): | 56 def SetExtraBrowserOptions(self, options): |
| 57 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 57 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 58 | 58 |
| 59 @classmethod | 59 @classmethod |
| 60 def Name(cls): | 60 def Name(cls): |
| 61 return 'repaint.gpu_rasterization.key_mobile_sites_repaint' | 61 return 'repaint.gpu_rasterization.key_mobile_sites_repaint' |
| 62 | 62 |
| OLD | NEW |