| 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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 class SmoothnessToughScrollingWhileZoomedInCases(_Smoothness): | 322 class SmoothnessToughScrollingWhileZoomedInCases(_Smoothness): |
| 323 """Measures rendering statistics for pinch-zooming then diagonal scrolling""" | 323 """Measures rendering statistics for pinch-zooming then diagonal scrolling""" |
| 324 page_set = page_sets.ToughScrollingWhileZoomedInCasesPageSet | 324 page_set = page_sets.ToughScrollingWhileZoomedInCasesPageSet |
| 325 | 325 |
| 326 @classmethod | 326 @classmethod |
| 327 def Name(cls): | 327 def Name(cls): |
| 328 return 'smoothness.tough_scrolling_while_zoomed_in_cases' | 328 return 'smoothness.tough_scrolling_while_zoomed_in_cases' |
| 329 | 329 |
| 330 | 330 |
| 331 @benchmark.Enabled('android') | 331 @benchmark.Enabled('android') |
| 332 class SmoothnessPolymer(_Smoothness): | |
| 333 """Measures rendering statistics for Polymer cases. | |
| 334 """ | |
| 335 page_set = page_sets.PolymerPageSet | |
| 336 | |
| 337 @classmethod | |
| 338 def Name(cls): | |
| 339 return 'smoothness.polymer' | |
| 340 | |
| 341 | |
| 342 @benchmark.Enabled('android') | |
| 343 class SmoothnessGpuRasterizationPolymer(_Smoothness): | 332 class SmoothnessGpuRasterizationPolymer(_Smoothness): |
| 344 """Measures rendering statistics for the Polymer cases with GPU rasterization. | 333 """Measures rendering statistics for the Polymer cases with GPU rasterization. |
| 345 """ | 334 """ |
| 346 tag = 'gpu_rasterization' | 335 tag = 'gpu_rasterization' |
| 347 page_set = page_sets.PolymerPageSet | 336 page_set = page_sets.PolymerPageSet |
| 348 | 337 |
| 349 def SetExtraBrowserOptions(self, options): | 338 def SetExtraBrowserOptions(self, options): |
| 350 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 339 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 351 | 340 |
| 352 @classmethod | 341 @classmethod |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 """Measures rendering statistics while scrolling advertisements.""" | 478 """Measures rendering statistics while scrolling advertisements.""" |
| 490 page_set = page_sets.SyntheticToughWebglAdCasesPageSet | 479 page_set = page_sets.SyntheticToughWebglAdCasesPageSet |
| 491 | 480 |
| 492 @classmethod | 481 @classmethod |
| 493 def Name(cls): | 482 def Name(cls): |
| 494 return 'smoothness.tough_webgl_ad_cases' | 483 return 'smoothness.tough_webgl_ad_cases' |
| 495 | 484 |
| 496 @classmethod | 485 @classmethod |
| 497 def ShouldDisable(cls, possible_browser): | 486 def ShouldDisable(cls, possible_browser): |
| 498 return cls.IsSvelte(possible_browser) # http://crbug.com/574485 | 487 return cls.IsSvelte(possible_browser) # http://crbug.com/574485 |
| OLD | NEW |