| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 cases. | 289 cases. |
| 290 """ | 290 """ |
| 291 page_set = page_sets.AndroidToughPinchZoomCasesPageSet | 291 page_set = page_sets.AndroidToughPinchZoomCasesPageSet |
| 292 | 292 |
| 293 @classmethod | 293 @classmethod |
| 294 def Name(cls): | 294 def Name(cls): |
| 295 return 'smoothness.tough_pinch_zoom_cases' | 295 return 'smoothness.tough_pinch_zoom_cases' |
| 296 | 296 |
| 297 @classmethod | 297 @classmethod |
| 298 def ShouldDisable(cls, possible_browser): | 298 def ShouldDisable(cls, possible_browser): |
| 299 return cls.IsSvelte(possible_browser) # http://crbug.com/564008 | 299 return ( |
| 300 # http://crbug.com/564008 |
| 301 cls.IsSvelte(possible_browser) or |
| 302 # http://crbug.com/630701 |
| 303 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X') |
| 300 | 304 |
| 301 | 305 |
| 302 @benchmark.Enabled('mac') | 306 @benchmark.Enabled('mac') |
| 303 class SmoothnessDesktopToughPinchZoomCases(_Smoothness): | 307 class SmoothnessDesktopToughPinchZoomCases(_Smoothness): |
| 304 """Measures rendering statistics for pinch-zooming in the tough pinch zoom | 308 """Measures rendering statistics for pinch-zooming in the tough pinch zoom |
| 305 cases. Uses lower zoom levels customized for desktop limits. | 309 cases. Uses lower zoom levels customized for desktop limits. |
| 306 """ | 310 """ |
| 307 page_set = page_sets.DesktopToughPinchZoomCasesPageSet | 311 page_set = page_sets.DesktopToughPinchZoomCasesPageSet |
| 308 | 312 |
| 309 @classmethod | 313 @classmethod |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 """Measures rendering statistics while scrolling advertisements.""" | 481 """Measures rendering statistics while scrolling advertisements.""" |
| 478 page_set = page_sets.SyntheticToughWebglAdCasesPageSet | 482 page_set = page_sets.SyntheticToughWebglAdCasesPageSet |
| 479 | 483 |
| 480 @classmethod | 484 @classmethod |
| 481 def Name(cls): | 485 def Name(cls): |
| 482 return 'smoothness.tough_webgl_ad_cases' | 486 return 'smoothness.tough_webgl_ad_cases' |
| 483 | 487 |
| 484 @classmethod | 488 @classmethod |
| 485 def ShouldDisable(cls, possible_browser): | 489 def ShouldDisable(cls, possible_browser): |
| 486 return cls.IsSvelte(possible_browser) # http://crbug.com/574485 | 490 return cls.IsSvelte(possible_browser) # http://crbug.com/574485 |
| OLD | NEW |