| 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 measurements import smoothness | 8 from measurements import smoothness |
| 9 import page_sets | 9 import page_sets |
| 10 import page_sets.key_silk_cases | 10 import page_sets.key_silk_cases |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 page_set = page_sets.PolymerPageSet | 347 page_set = page_sets.PolymerPageSet |
| 348 | 348 |
| 349 def SetExtraBrowserOptions(self, options): | 349 def SetExtraBrowserOptions(self, options): |
| 350 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 350 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 351 | 351 |
| 352 @classmethod | 352 @classmethod |
| 353 def Name(cls): | 353 def Name(cls): |
| 354 return 'smoothness.gpu_rasterization.polymer' | 354 return 'smoothness.gpu_rasterization.polymer' |
| 355 | 355 |
| 356 | 356 |
| 357 @benchmark.Disabled('reference') # crbug.com/549429 |
| 357 class SmoothnessToughScrollingCases(_Smoothness): | 358 class SmoothnessToughScrollingCases(_Smoothness): |
| 358 page_set = page_sets.ToughScrollingCasesPageSet | 359 page_set = page_sets.ToughScrollingCasesPageSet |
| 359 | 360 |
| 360 @classmethod | 361 @classmethod |
| 361 def ValueCanBeAddedPredicate(cls, value, is_first_result): | 362 def ValueCanBeAddedPredicate(cls, value, is_first_result): |
| 362 del is_first_result # unused | 363 del is_first_result # unused |
| 363 # Only keep 'mean_pixels_approximated' and 'mean_pixels_checkerboarded' | 364 # Only keep 'mean_pixels_approximated' and 'mean_pixels_checkerboarded' |
| 364 # metrics. (crbug.com/529331) | 365 # metrics. (crbug.com/529331) |
| 365 return value.name in ('mean_pixels_approximated', | 366 return value.name in ('mean_pixels_approximated', |
| 366 'mean_pixels_checkerboarded') | 367 'mean_pixels_checkerboarded') |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 | 491 |
| 491 | 492 |
| 492 @benchmark.Disabled('reference') # http://crbug.com/496684 | 493 @benchmark.Disabled('reference') # http://crbug.com/496684 |
| 493 class SmoothnessToughWebGLAdCases(_Smoothness): | 494 class SmoothnessToughWebGLAdCases(_Smoothness): |
| 494 """Measures rendering statistics while scrolling advertisements.""" | 495 """Measures rendering statistics while scrolling advertisements.""" |
| 495 page_set = page_sets.ToughWebglAdCasesPageSet | 496 page_set = page_sets.ToughWebglAdCasesPageSet |
| 496 | 497 |
| 497 @classmethod | 498 @classmethod |
| 498 def Name(cls): | 499 def Name(cls): |
| 499 return 'smoothness.tough_webgl_ad_cases' | 500 return 'smoothness.tough_webgl_ad_cases' |
| OLD | NEW |