| 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 import ct_benchmarks_util | 8 import ct_benchmarks_util |
| 9 from measurements import smoothness | 9 from measurements import smoothness |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 options.mode, options.width, options.height) | 38 options.mode, options.width, options.height) |
| 39 | 39 |
| 40 def CreatePageTest(self, options): | 40 def CreatePageTest(self, options): |
| 41 return smoothness.Repaint() | 41 return smoothness.Repaint() |
| 42 | 42 |
| 43 # crbug.com/499320 | 43 # crbug.com/499320 |
| 44 #@benchmark.Enabled('android') | 44 #@benchmark.Enabled('android') |
| 45 | 45 |
| 46 | 46 |
| 47 @benchmark.Disabled('all') | 47 @benchmark.Disabled('all') |
| 48 @benchmark.Owner(emails=['wkorman@chromium.org', 'vmpstr@chromium.org']) |
| 48 class RepaintKeyMobileSites(_Repaint): | 49 class RepaintKeyMobileSites(_Repaint): |
| 49 """Measures repaint performance on the key mobile sites. | 50 """Measures repaint performance on the key mobile sites. |
| 50 | 51 |
| 51 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 52 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 52 | 53 |
| 53 @classmethod | 54 @classmethod |
| 54 def Name(cls): | 55 def Name(cls): |
| 55 return 'repaint.key_mobile_sites_repaint' | 56 return 'repaint.key_mobile_sites_repaint' |
| 56 | 57 |
| 57 | 58 |
| 58 # crbug.com/502179 | 59 # crbug.com/502179 |
| 59 @benchmark.Enabled('android') | 60 @benchmark.Enabled('android') |
| 60 @benchmark.Disabled('all') | 61 @benchmark.Disabled('all') |
| 62 @benchmark.Owner(emails=['wkorman@chromium.org', 'vmpstr@chromium.org']) |
| 61 class RepaintGpuRasterizationKeyMobileSites(_Repaint): | 63 class RepaintGpuRasterizationKeyMobileSites(_Repaint): |
| 62 """Measures repaint performance on the key mobile sites with forced GPU | 64 """Measures repaint performance on the key mobile sites with forced GPU |
| 63 rasterization. | 65 rasterization. |
| 64 | 66 |
| 65 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 67 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 66 tag = 'gpu_rasterization' | 68 tag = 'gpu_rasterization' |
| 67 | 69 |
| 68 def SetExtraBrowserOptions(self, options): | 70 def SetExtraBrowserOptions(self, options): |
| 69 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 71 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 70 | 72 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 89 ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser) | 91 ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser) |
| 90 | 92 |
| 91 @classmethod | 93 @classmethod |
| 92 def ProcessCommandLineArgs(cls, parser, args): | 94 def ProcessCommandLineArgs(cls, parser, args): |
| 93 ct_benchmarks_util.ValidateCommandLineArgs(parser, args) | 95 ct_benchmarks_util.ValidateCommandLineArgs(parser, args) |
| 94 | 96 |
| 95 def CreateStorySet(self, options): | 97 def CreateStorySet(self, options): |
| 96 return page_sets.CTPageSet( | 98 return page_sets.CTPageSet( |
| 97 options.urls_list, options.user_agent, options.archive_data_file, | 99 options.urls_list, options.user_agent, options.archive_data_file, |
| 98 run_page_interaction_callback=repaint_helpers.WaitThenRepaint) | 100 run_page_interaction_callback=repaint_helpers.WaitThenRepaint) |
| OLD | NEW |