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