| 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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 @benchmark.Enabled('android') | 444 @benchmark.Enabled('android') |
| 445 class SmoothnessPathologicalMobileSites(_Smoothness): | 445 class SmoothnessPathologicalMobileSites(_Smoothness): |
| 446 """Measures task execution statistics while scrolling pathological sites. | 446 """Measures task execution statistics while scrolling pathological sites. |
| 447 """ | 447 """ |
| 448 page_set = page_sets.PathologicalMobileSitesPageSet | 448 page_set = page_sets.PathologicalMobileSitesPageSet |
| 449 | 449 |
| 450 @classmethod | 450 @classmethod |
| 451 def Name(cls): | 451 def Name(cls): |
| 452 return 'smoothness.pathological_mobile_sites' | 452 return 'smoothness.pathological_mobile_sites' |
| 453 | 453 |
| 454 @classmethod |
| 455 def ShouldDisable(cls, possible_browser): |
| 456 # http://crbug.com/685342 |
| 457 if possible_browser.platform.GetDeviceTypeName() == 'Nexus 7': |
| 458 return True |
| 459 return False |
| 460 |
| 454 | 461 |
| 455 class SmoothnessToughTextureUploadCases(_Smoothness): | 462 class SmoothnessToughTextureUploadCases(_Smoothness): |
| 456 page_set = page_sets.ToughTextureUploadCasesPageSet | 463 page_set = page_sets.ToughTextureUploadCasesPageSet |
| 457 | 464 |
| 458 @classmethod | 465 @classmethod |
| 459 def Name(cls): | 466 def Name(cls): |
| 460 return 'smoothness.tough_texture_upload_cases' | 467 return 'smoothness.tough_texture_upload_cases' |
| 461 | 468 |
| 462 | 469 |
| 463 class SmoothnessToughAdCases(_Smoothness): | 470 class SmoothnessToughAdCases(_Smoothness): |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 """Measures rendering statistics while scrolling advertisements.""" | 506 """Measures rendering statistics while scrolling advertisements.""" |
| 500 page_set = page_sets.SyntheticToughWebglAdCasesPageSet | 507 page_set = page_sets.SyntheticToughWebglAdCasesPageSet |
| 501 | 508 |
| 502 @classmethod | 509 @classmethod |
| 503 def Name(cls): | 510 def Name(cls): |
| 504 return 'smoothness.tough_webgl_ad_cases' | 511 return 'smoothness.tough_webgl_ad_cases' |
| 505 | 512 |
| 506 @classmethod | 513 @classmethod |
| 507 def ShouldDisable(cls, possible_browser): | 514 def ShouldDisable(cls, possible_browser): |
| 508 return cls.IsSvelte(possible_browser) # http://crbug.com/574485 | 515 return cls.IsSvelte(possible_browser) # http://crbug.com/574485 |
| OLD | NEW |