| 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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 @classmethod | 507 @classmethod |
| 508 def ShouldDisable(cls, possible_browser): # http://crbug.com/597656 | 508 def ShouldDisable(cls, possible_browser): # http://crbug.com/597656 |
| 509 return (possible_browser.browser_type == 'reference' and | 509 return (possible_browser.browser_type == 'reference' and |
| 510 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X') | 510 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X') |
| 511 | 511 |
| 512 @classmethod | 512 @classmethod |
| 513 def Name(cls): | 513 def Name(cls): |
| 514 return 'smoothness.scrolling_tough_ad_cases' | 514 return 'smoothness.scrolling_tough_ad_cases' |
| 515 | 515 |
| 516 | 516 |
| 517 @benchmark.Disabled('android-reference') # crbug.com/588786 | |
| 518 @benchmark.Disabled('mac', 'win') # crbug.com/522619 (mac/win) | |
| 519 class SmoothnessBidirectionallyScrollingToughAdCases(_Smoothness): | |
| 520 """Measures rendering statistics while scrolling advertisements.""" | |
| 521 page_set = page_sets.BidirectionallyScrollingToughAdCasesPageSet | |
| 522 | |
| 523 def SetExtraBrowserOptions(self, options): | |
| 524 # Don't accidentally reload the page while scrolling. | |
| 525 options.AppendExtraBrowserArgs('--disable-pull-to-refresh-effect') | |
| 526 | |
| 527 @classmethod | |
| 528 def Name(cls): | |
| 529 return 'smoothness.bidirectionally_scrolling_tough_ad_cases' | |
| 530 | |
| 531 | |
| 532 class SmoothnessToughWebGLAdCases(_Smoothness): | 517 class SmoothnessToughWebGLAdCases(_Smoothness): |
| 533 """Measures rendering statistics while scrolling advertisements.""" | 518 """Measures rendering statistics while scrolling advertisements.""" |
| 534 page_set = page_sets.SyntheticToughWebglAdCasesPageSet | 519 page_set = page_sets.SyntheticToughWebglAdCasesPageSet |
| 535 | 520 |
| 536 @classmethod | 521 @classmethod |
| 537 def Name(cls): | 522 def Name(cls): |
| 538 return 'smoothness.tough_webgl_ad_cases' | 523 return 'smoothness.tough_webgl_ad_cases' |
| 539 | 524 |
| 540 @classmethod | 525 @classmethod |
| 541 def ShouldDisable(cls, possible_browser): | 526 def ShouldDisable(cls, possible_browser): |
| 542 return cls.IsSvelte(possible_browser) # http://crbug.com/574485 | 527 return cls.IsSvelte(possible_browser) # http://crbug.com/574485 |
| OLD | NEW |