| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 """Tests a selection of pages with SVG and 2D Canvas paths. | 70 """Tests a selection of pages with SVG and 2D Canvas paths. |
| 71 | 71 |
| 72 Measures frame rate and a variety of other statistics. """ | 72 Measures frame rate and a variety of other statistics. """ |
| 73 page_set = page_sets.ToughPathRenderingCasesPageSet | 73 page_set = page_sets.ToughPathRenderingCasesPageSet |
| 74 | 74 |
| 75 @classmethod | 75 @classmethod |
| 76 def Name(cls): | 76 def Name(cls): |
| 77 return 'smoothness.tough_path_rendering_cases' | 77 return 'smoothness.tough_path_rendering_cases' |
| 78 | 78 |
| 79 | 79 |
| 80 @benchmark.Disabled('android') # crbug.com/526901 | 80 @benchmark.Disabled('android', # crbug.com/526901 |
| 81 'snowleopard') # crbug.com/605553 |
| 81 class SmoothnessToughCanvasCases(_Smoothness): | 82 class SmoothnessToughCanvasCases(_Smoothness): |
| 82 """Measures frame rate and a variety of other statistics. | 83 """Measures frame rate and a variety of other statistics. |
| 83 | 84 |
| 84 Uses a selection of pages making use of the 2D Canvas API. | 85 Uses a selection of pages making use of the 2D Canvas API. |
| 85 """ | 86 """ |
| 86 page_set = page_sets.ToughCanvasCasesPageSet | 87 page_set = page_sets.ToughCanvasCasesPageSet |
| 87 | 88 |
| 88 def SetExtraBrowserOptions(self, options): | 89 def SetExtraBrowserOptions(self, options): |
| 89 options.AppendExtraBrowserArgs('--enable-experimental-canvas-features') | 90 options.AppendExtraBrowserArgs('--enable-experimental-canvas-features') |
| 90 | 91 |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 """Measures rendering statistics while scrolling advertisements.""" | 546 """Measures rendering statistics while scrolling advertisements.""" |
| 546 page_set = page_sets.SyntheticToughWebglAdCasesPageSet | 547 page_set = page_sets.SyntheticToughWebglAdCasesPageSet |
| 547 | 548 |
| 548 @classmethod | 549 @classmethod |
| 549 def Name(cls): | 550 def Name(cls): |
| 550 return 'smoothness.tough_webgl_ad_cases' | 551 return 'smoothness.tough_webgl_ad_cases' |
| 551 | 552 |
| 552 @classmethod | 553 @classmethod |
| 553 def ShouldDisable(cls, possible_browser): | 554 def ShouldDisable(cls, possible_browser): |
| 554 return cls.IsSvelte(possible_browser) # http://crbug.com/574485 | 555 return cls.IsSvelte(possible_browser) # http://crbug.com/574485 |
| OLD | NEW |