| 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 import multiprocessing | 4 import multiprocessing |
| 5 | 5 |
| 6 from core import perf_benchmark | 6 from core import perf_benchmark |
| 7 | 7 |
| 8 from benchmarks import silk_flags | 8 from benchmarks import silk_flags |
| 9 from measurements import smoothness | 9 from measurements import smoothness |
| 10 import page_sets | 10 import page_sets |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 del is_first_result # unused | 369 del is_first_result # unused |
| 370 # Only keep 'mean_pixels_approximated' and 'mean_pixels_checkerboarded' | 370 # Only keep 'mean_pixels_approximated' and 'mean_pixels_checkerboarded' |
| 371 # metrics. (crbug.com/529331) | 371 # metrics. (crbug.com/529331) |
| 372 return value.name in ('mean_pixels_approximated', | 372 return value.name in ('mean_pixels_approximated', |
| 373 'mean_pixels_checkerboarded') | 373 'mean_pixels_checkerboarded') |
| 374 | 374 |
| 375 @classmethod | 375 @classmethod |
| 376 def Name(cls): | 376 def Name(cls): |
| 377 return 'smoothness.tough_scrolling_cases' | 377 return 'smoothness.tough_scrolling_cases' |
| 378 | 378 |
| 379 | 379 @benchmark.Disabled('all') # crbug.com/667489 |
| 380 @benchmark.Enabled('android') | |
| 381 class SmoothnessGpuRasterizationToughScrollingCases(_Smoothness): | 380 class SmoothnessGpuRasterizationToughScrollingCases(_Smoothness): |
| 382 tag = 'gpu_rasterization' | 381 tag = 'gpu_rasterization' |
| 383 test = smoothness.Smoothness | 382 test = smoothness.Smoothness |
| 384 page_set = page_sets.ToughScrollingCasesPageSet | 383 page_set = page_sets.ToughScrollingCasesPageSet |
| 385 | 384 |
| 386 def SetExtraBrowserOptions(self, options): | 385 def SetExtraBrowserOptions(self, options): |
| 387 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 386 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 388 | 387 |
| 389 @classmethod | 388 @classmethod |
| 390 def Name(cls): | 389 def Name(cls): |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 """Measures rendering statistics while scrolling advertisements.""" | 494 """Measures rendering statistics while scrolling advertisements.""" |
| 496 page_set = page_sets.SyntheticToughWebglAdCasesPageSet | 495 page_set = page_sets.SyntheticToughWebglAdCasesPageSet |
| 497 | 496 |
| 498 @classmethod | 497 @classmethod |
| 499 def Name(cls): | 498 def Name(cls): |
| 500 return 'smoothness.tough_webgl_ad_cases' | 499 return 'smoothness.tough_webgl_ad_cases' |
| 501 | 500 |
| 502 @classmethod | 501 @classmethod |
| 503 def ShouldDisable(cls, possible_browser): | 502 def ShouldDisable(cls, possible_browser): |
| 504 return cls.IsSvelte(possible_browser) # http://crbug.com/574485 | 503 return cls.IsSvelte(possible_browser) # http://crbug.com/574485 |
| OLD | NEW |