| 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 """Measures rendering statistics for pinch-zooming in the tough pinch zoom | 314 """Measures rendering statistics for pinch-zooming in the tough pinch zoom |
| 315 cases. Uses lower zoom levels customized for desktop limits. | 315 cases. Uses lower zoom levels customized for desktop limits. |
| 316 """ | 316 """ |
| 317 page_set = page_sets.DesktopToughPinchZoomCasesPageSet | 317 page_set = page_sets.DesktopToughPinchZoomCasesPageSet |
| 318 | 318 |
| 319 @classmethod | 319 @classmethod |
| 320 def Name(cls): | 320 def Name(cls): |
| 321 return 'smoothness.desktop_tough_pinch_zoom_cases' | 321 return 'smoothness.desktop_tough_pinch_zoom_cases' |
| 322 | 322 |
| 323 | 323 |
| 324 @benchmark.Enabled('android') | 324 # This benchmark runs only on android by it is disabled on android as well |
| 325 # because of http://crbug.com/610021 |
| 326 # @benchmark.Enabled('android') |
| 327 @benchmark.Disabled('all') |
| 325 class SmoothnessGpuRasterizationToughPinchZoomCases(_Smoothness): | 328 class SmoothnessGpuRasterizationToughPinchZoomCases(_Smoothness): |
| 326 """Measures rendering statistics for pinch-zooming in the tough pinch zoom | 329 """Measures rendering statistics for pinch-zooming in the tough pinch zoom |
| 327 cases with GPU rasterization. | 330 cases with GPU rasterization. |
| 328 """ | 331 """ |
| 329 tag = 'gpu_rasterization' | 332 tag = 'gpu_rasterization' |
| 330 test = smoothness.Smoothness | 333 test = smoothness.Smoothness |
| 331 page_set = page_sets.AndroidToughPinchZoomCasesPageSet | 334 page_set = page_sets.AndroidToughPinchZoomCasesPageSet |
| 332 | 335 |
| 333 def SetExtraBrowserOptions(self, options): | 336 def SetExtraBrowserOptions(self, options): |
| 334 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 337 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 | 431 |
| 429 @benchmark.Disabled('android') # http://crbug.com/531593 | 432 @benchmark.Disabled('android') # http://crbug.com/531593 |
| 430 class SmoothnessToughImageDecodeCases(_Smoothness): | 433 class SmoothnessToughImageDecodeCases(_Smoothness): |
| 431 page_set = page_sets.ToughImageDecodeCasesPageSet | 434 page_set = page_sets.ToughImageDecodeCasesPageSet |
| 432 | 435 |
| 433 @classmethod | 436 @classmethod |
| 434 def Name(cls): | 437 def Name(cls): |
| 435 return 'smoothness.tough_image_decode_cases' | 438 return 'smoothness.tough_image_decode_cases' |
| 436 | 439 |
| 437 | 440 |
| 441 @benchmark.Disabled('android') # http://crbug.com/610015 |
| 438 class SmoothnessImageDecodingCases(_Smoothness): | 442 class SmoothnessImageDecodingCases(_Smoothness): |
| 439 """Measures decoding statistics for jpeg images. | 443 """Measures decoding statistics for jpeg images. |
| 440 """ | 444 """ |
| 441 page_set = page_sets.ImageDecodingCasesPageSet | 445 page_set = page_sets.ImageDecodingCasesPageSet |
| 442 | 446 |
| 443 def SetExtraBrowserOptions(self, options): | 447 def SetExtraBrowserOptions(self, options): |
| 444 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) | 448 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 445 options.AppendExtraBrowserArgs('--disable-accelerated-jpeg-decoding') | 449 options.AppendExtraBrowserArgs('--disable-accelerated-jpeg-decoding') |
| 446 | 450 |
| 447 @classmethod | 451 @classmethod |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 """Measures rendering statistics while scrolling advertisements.""" | 549 """Measures rendering statistics while scrolling advertisements.""" |
| 546 page_set = page_sets.SyntheticToughWebglAdCasesPageSet | 550 page_set = page_sets.SyntheticToughWebglAdCasesPageSet |
| 547 | 551 |
| 548 @classmethod | 552 @classmethod |
| 549 def Name(cls): | 553 def Name(cls): |
| 550 return 'smoothness.tough_webgl_ad_cases' | 554 return 'smoothness.tough_webgl_ad_cases' |
| 551 | 555 |
| 552 @classmethod | 556 @classmethod |
| 553 def ShouldDisable(cls, possible_browser): | 557 def ShouldDisable(cls, possible_browser): |
| 554 return cls.IsSvelte(possible_browser) # http://crbug.com/574485 | 558 return cls.IsSvelte(possible_browser) # http://crbug.com/574485 |
| OLD | NEW |