| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 benchmarks import webgl_expectations | 8 from benchmarks import webgl_expectations |
| 9 from measurements import smoothness | 9 from measurements import smoothness |
| 10 import page_sets | 10 import page_sets |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 http://www.chromium.org/developers/design-documents/rendering-benchmarks | 106 http://www.chromium.org/developers/design-documents/rendering-benchmarks |
| 107 """ | 107 """ |
| 108 test = smoothness.Smoothness | 108 test = smoothness.Smoothness |
| 109 page_set = page_sets.KeyMobileSitesSmoothPageSet | 109 page_set = page_sets.KeyMobileSitesSmoothPageSet |
| 110 | 110 |
| 111 @classmethod | 111 @classmethod |
| 112 def Name(cls): | 112 def Name(cls): |
| 113 return 'smoothness.key_mobile_sites_smooth' | 113 return 'smoothness.key_mobile_sites_smooth' |
| 114 | 114 |
| 115 | 115 |
| 116 @benchmark.Disabled('mac', 'win', 'android') | |
| 117 class SmoothnessKeyMobileSitesWithSlimmingPaint(perf_benchmark.PerfBenchmark): | |
| 118 """Measures smoothness on key mobile sites with --enable-slimming-paint. | |
| 119 | |
| 120 http://www.chromium.org/developers/design-documents/rendering-benchmarks | |
| 121 """ | |
| 122 test = smoothness.Smoothness | |
| 123 page_set = page_sets.KeyMobileSitesSmoothPageSet | |
| 124 | |
| 125 def SetExtraBrowserOptions(self, options): | |
| 126 options.AppendExtraBrowserArgs(['--enable-slimming-paint']) | |
| 127 | |
| 128 @classmethod | |
| 129 def Name(cls): | |
| 130 return 'smoothness.key_mobile_sites_with_slimming_paint_smooth' | |
| 131 | |
| 132 | |
| 133 class SmoothnessToughAnimationCases(perf_benchmark.PerfBenchmark): | 116 class SmoothnessToughAnimationCases(perf_benchmark.PerfBenchmark): |
| 134 test = smoothness.SmoothnessWithRestart | 117 test = smoothness.SmoothnessWithRestart |
| 135 page_set = page_sets.ToughAnimationCasesPageSet | 118 page_set = page_sets.ToughAnimationCasesPageSet |
| 136 | 119 |
| 137 @classmethod | 120 @classmethod |
| 138 def Name(cls): | 121 def Name(cls): |
| 139 return 'smoothness.tough_animation_cases' | 122 return 'smoothness.tough_animation_cases' |
| 140 | 123 |
| 141 | 124 |
| 142 @benchmark.Enabled('android') | 125 @benchmark.Enabled('android') |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 | 389 |
| 407 @benchmark.Disabled('reference') # http://crbug.com/496684 | 390 @benchmark.Disabled('reference') # http://crbug.com/496684 |
| 408 class SmoothnessToughAdCases(perf_benchmark.PerfBenchmark): | 391 class SmoothnessToughAdCases(perf_benchmark.PerfBenchmark): |
| 409 """Measures rendering statistics while displaying advertisements.""" | 392 """Measures rendering statistics while displaying advertisements.""" |
| 410 test = smoothness.Smoothness | 393 test = smoothness.Smoothness |
| 411 page_set = page_sets.ToughAdCasesPageSet | 394 page_set = page_sets.ToughAdCasesPageSet |
| 412 | 395 |
| 413 @classmethod | 396 @classmethod |
| 414 def Name(cls): | 397 def Name(cls): |
| 415 return 'smoothness.tough_ad_cases' | 398 return 'smoothness.tough_ad_cases' |
| OLD | NEW |