| 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 tag = 'gpu_rasterization' | 226 tag = 'gpu_rasterization' |
| 227 page_set = page_sets.ToughFiltersCasesPageSet | 227 page_set = page_sets.ToughFiltersCasesPageSet |
| 228 | 228 |
| 229 def SetExtraBrowserOptions(self, options): | 229 def SetExtraBrowserOptions(self, options): |
| 230 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 230 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 231 | 231 |
| 232 @classmethod | 232 @classmethod |
| 233 def Name(cls): | 233 def Name(cls): |
| 234 return 'smoothness.gpu_rasterization.tough_filters_cases' | 234 return 'smoothness.gpu_rasterization.tough_filters_cases' |
| 235 | 235 |
| 236 @classmethod |
| 237 def ShouldDisable(cls, possible_browser): # http://crbug.com/616540 |
| 238 return (cls.IsSvelte(possible_browser) and |
| 239 possible_browser.browser_type == 'reference') |
| 240 |
| 236 | 241 |
| 237 @benchmark.Enabled('android') | 242 @benchmark.Enabled('android') |
| 238 class SmoothnessSyncScrollKeyMobileSites(_Smoothness): | 243 class SmoothnessSyncScrollKeyMobileSites(_Smoothness): |
| 239 """Measures rendering statistics for the key mobile sites with synchronous | 244 """Measures rendering statistics for the key mobile sites with synchronous |
| 240 (main thread) scrolling. | 245 (main thread) scrolling. |
| 241 """ | 246 """ |
| 242 tag = 'sync_scroll' | 247 tag = 'sync_scroll' |
| 243 page_set = page_sets.KeyMobileSitesSmoothPageSet | 248 page_set = page_sets.KeyMobileSitesSmoothPageSet |
| 244 | 249 |
| 245 def SetExtraBrowserOptions(self, options): | 250 def SetExtraBrowserOptions(self, options): |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 """Measures rendering statistics while scrolling advertisements.""" | 494 """Measures rendering statistics while scrolling advertisements.""" |
| 490 page_set = page_sets.SyntheticToughWebglAdCasesPageSet | 495 page_set = page_sets.SyntheticToughWebglAdCasesPageSet |
| 491 | 496 |
| 492 @classmethod | 497 @classmethod |
| 493 def Name(cls): | 498 def Name(cls): |
| 494 return 'smoothness.tough_webgl_ad_cases' | 499 return 'smoothness.tough_webgl_ad_cases' |
| 495 | 500 |
| 496 @classmethod | 501 @classmethod |
| 497 def ShouldDisable(cls, possible_browser): | 502 def ShouldDisable(cls, possible_browser): |
| 498 return cls.IsSvelte(possible_browser) # http://crbug.com/574485 | 503 return cls.IsSvelte(possible_browser) # http://crbug.com/574485 |
| OLD | NEW |