| 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 """Measures rendering statistics for simple mobile sites page set. | 254 """Measures rendering statistics for simple mobile sites page set. |
| 255 """ | 255 """ |
| 256 page_set = page_sets.SimpleMobileSitesPageSet | 256 page_set = page_sets.SimpleMobileSitesPageSet |
| 257 | 257 |
| 258 @classmethod | 258 @classmethod |
| 259 def Name(cls): | 259 def Name(cls): |
| 260 return 'smoothness.simple_mobile_sites' | 260 return 'smoothness.simple_mobile_sites' |
| 261 | 261 |
| 262 | 262 |
| 263 @benchmark.Enabled('android') | 263 @benchmark.Enabled('android') |
| 264 class SmoothnessFlingSimpleMobilePages(_Smoothness): | |
| 265 """Measures rendering statistics for flinging a simple mobile sites page set. | |
| 266 """ | |
| 267 page_set = page_sets.SimpleMobileSitesFlingPageSet | |
| 268 | |
| 269 def SetExtraBrowserOptions(self, options): | |
| 270 # As the fling parameters cannot be analytically determined to not | |
| 271 # overscroll, disable overscrolling explicitly. Overscroll behavior is | |
| 272 # orthogonal to fling performance, and its activation is only more noise. | |
| 273 options.AppendExtraBrowserArgs('--disable-overscroll-edge-effect') | |
| 274 | |
| 275 @classmethod | |
| 276 def Name(cls): | |
| 277 return 'smoothness.fling.simple_mobile_sites' | |
| 278 | |
| 279 | |
| 280 @benchmark.Enabled('android') | |
| 281 class SmoothnessToughPinchZoomCases(_Smoothness): | 264 class SmoothnessToughPinchZoomCases(_Smoothness): |
| 282 """Measures rendering statistics for pinch-zooming in the tough pinch zoom | 265 """Measures rendering statistics for pinch-zooming in the tough pinch zoom |
| 283 cases. | 266 cases. |
| 284 """ | 267 """ |
| 285 page_set = page_sets.AndroidToughPinchZoomCasesPageSet | 268 page_set = page_sets.AndroidToughPinchZoomCasesPageSet |
| 286 | 269 |
| 287 @classmethod | 270 @classmethod |
| 288 def Name(cls): | 271 def Name(cls): |
| 289 return 'smoothness.tough_pinch_zoom_cases' | 272 return 'smoothness.tough_pinch_zoom_cases' |
| 290 | 273 |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 """Measures rendering statistics while scrolling advertisements.""" | 516 """Measures rendering statistics while scrolling advertisements.""" |
| 534 page_set = page_sets.SyntheticToughWebglAdCasesPageSet | 517 page_set = page_sets.SyntheticToughWebglAdCasesPageSet |
| 535 | 518 |
| 536 @classmethod | 519 @classmethod |
| 537 def Name(cls): | 520 def Name(cls): |
| 538 return 'smoothness.tough_webgl_ad_cases' | 521 return 'smoothness.tough_webgl_ad_cases' |
| 539 | 522 |
| 540 @classmethod | 523 @classmethod |
| 541 def ShouldDisable(cls, possible_browser): | 524 def ShouldDisable(cls, possible_browser): |
| 542 return cls.IsSvelte(possible_browser) # http://crbug.com/574485 | 525 return cls.IsSvelte(possible_browser) # http://crbug.com/574485 |
| OLD | NEW |