| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 @classmethod | 190 @classmethod |
| 191 def Name(cls): | 191 def Name(cls): |
| 192 return 'smoothness.gpu_rasterization.top_25_smooth' | 192 return 'smoothness.gpu_rasterization.top_25_smooth' |
| 193 | 193 |
| 194 @classmethod | 194 @classmethod |
| 195 def ShouldDisable(cls, possible_browser): # http://crbug.com/597656 | 195 def ShouldDisable(cls, possible_browser): # http://crbug.com/597656 |
| 196 return (possible_browser.browser_type == 'reference' and | 196 return (possible_browser.browser_type == 'reference' and |
| 197 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X') | 197 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X') |
| 198 | 198 |
| 199 | 199 |
| 200 # crbug.com/589580 (This test should only be enabled on Android after fix.) | |
| 201 @benchmark.Disabled('all') | |
| 202 class SmoothnessGpuRasterizationKeyMobileSites(_Smoothness): | |
| 203 """Measures rendering statistics for the key mobile sites with GPU | |
| 204 rasterization. | |
| 205 """ | |
| 206 tag = 'gpu_rasterization' | |
| 207 page_set = page_sets.KeyMobileSitesSmoothPageSet | |
| 208 | |
| 209 def SetExtraBrowserOptions(self, options): | |
| 210 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | |
| 211 | |
| 212 @classmethod | |
| 213 def Name(cls): | |
| 214 return 'smoothness.gpu_rasterization.key_mobile_sites_smooth' | |
| 215 | |
| 216 | |
| 217 class SmoothnessGpuRasterizationToughPathRenderingCases(_Smoothness): | 200 class SmoothnessGpuRasterizationToughPathRenderingCases(_Smoothness): |
| 218 """Tests a selection of pages with SVG and 2D canvas paths with GPU | 201 """Tests a selection of pages with SVG and 2D canvas paths with GPU |
| 219 rasterization. | 202 rasterization. |
| 220 """ | 203 """ |
| 221 tag = 'gpu_rasterization' | 204 tag = 'gpu_rasterization' |
| 222 page_set = page_sets.ToughPathRenderingCasesPageSet | 205 page_set = page_sets.ToughPathRenderingCasesPageSet |
| 223 | 206 |
| 224 def SetExtraBrowserOptions(self, options): | 207 def SetExtraBrowserOptions(self, options): |
| 225 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 208 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 226 | 209 |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 """Measures rendering statistics while scrolling advertisements.""" | 532 """Measures rendering statistics while scrolling advertisements.""" |
| 550 page_set = page_sets.SyntheticToughWebglAdCasesPageSet | 533 page_set = page_sets.SyntheticToughWebglAdCasesPageSet |
| 551 | 534 |
| 552 @classmethod | 535 @classmethod |
| 553 def Name(cls): | 536 def Name(cls): |
| 554 return 'smoothness.tough_webgl_ad_cases' | 537 return 'smoothness.tough_webgl_ad_cases' |
| 555 | 538 |
| 556 @classmethod | 539 @classmethod |
| 557 def ShouldDisable(cls, possible_browser): | 540 def ShouldDisable(cls, possible_browser): |
| 558 return cls.IsSvelte(possible_browser) # http://crbug.com/574485 | 541 return cls.IsSvelte(possible_browser) # http://crbug.com/574485 |
| OLD | NEW |