| 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 19 matching lines...) Expand all Loading... |
| 30 @classmethod | 30 @classmethod |
| 31 def ValueCanBeAddedPredicate(cls, value, is_first_result): | 31 def ValueCanBeAddedPredicate(cls, value, is_first_result): |
| 32 del is_first_result # unused | 32 del is_first_result # unused |
| 33 if (value.name == 'first_gesture_scroll_update_latency' and | 33 if (value.name == 'first_gesture_scroll_update_latency' and |
| 34 value.page.url in cls._PAGES_WITHOUT_SCROLL_GESTURE_BLACKLIST and | 34 value.page.url in cls._PAGES_WITHOUT_SCROLL_GESTURE_BLACKLIST and |
| 35 value.values is None): | 35 value.values is None): |
| 36 return False | 36 return False |
| 37 return True | 37 return True |
| 38 | 38 |
| 39 | 39 |
| 40 @benchmark.Disabled('mac') # crbug.com/623570 |
| 40 class SmoothnessTop25(_Smoothness): | 41 class SmoothnessTop25(_Smoothness): |
| 41 """Measures rendering statistics while scrolling down the top 25 web pages. | 42 """Measures rendering statistics while scrolling down the top 25 web pages. |
| 42 | 43 |
| 43 http://www.chromium.org/developers/design-documents/rendering-benchmarks | 44 http://www.chromium.org/developers/design-documents/rendering-benchmarks |
| 44 """ | 45 """ |
| 45 page_set = page_sets.Top25SmoothPageSet | 46 page_set = page_sets.Top25SmoothPageSet |
| 46 | 47 |
| 47 @classmethod | 48 @classmethod |
| 48 def Name(cls): | 49 def Name(cls): |
| 49 return 'smoothness.top_25_smooth' | 50 return 'smoothness.top_25_smooth' |
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 """Measures rendering statistics while scrolling advertisements.""" | 472 """Measures rendering statistics while scrolling advertisements.""" |
| 472 page_set = page_sets.SyntheticToughWebglAdCasesPageSet | 473 page_set = page_sets.SyntheticToughWebglAdCasesPageSet |
| 473 | 474 |
| 474 @classmethod | 475 @classmethod |
| 475 def Name(cls): | 476 def Name(cls): |
| 476 return 'smoothness.tough_webgl_ad_cases' | 477 return 'smoothness.tough_webgl_ad_cases' |
| 477 | 478 |
| 478 @classmethod | 479 @classmethod |
| 479 def ShouldDisable(cls, possible_browser): | 480 def ShouldDisable(cls, possible_browser): |
| 480 return cls.IsSvelte(possible_browser) # http://crbug.com/574485 | 481 return cls.IsSvelte(possible_browser) # http://crbug.com/574485 |
| OLD | NEW |