1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 from benchmarks import silk_flags
6 from measurements import smoothness
7 from telemetry import test
10 @test.Disabled # crbug.com/368767
11 class SmoothnessTop25(test.Test):
12 """Measures rendering statistics while scrolling down the top 25 web pages.
14 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
15 test = smoothness.Smoothness
16 page_set = 'page_sets/top_25.py'
19 @test.Disabled('linux', 'mac', 'win') # crbug.com/368767
20 class SmoothnessToughCanvasCases(test.Test):
21 test = smoothness.Smoothness
22 page_set = 'page_sets/tough_canvas_cases.py'
25 class SmoothnessToughWebGLCases(test.Test):
26 test = smoothness.Smoothness
27 page_set = 'page_sets/tough_webgl_cases.py'
30 class SmoothnessMaps(test.Test):
31 test = smoothness.Smoothness
32 page_set = 'page_sets/maps.py'
35 class SmoothnessKeyMobileSites(test.Test):
36 """Measures rendering statistics while scrolling down the key mobile sites.
38 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
39 test = smoothness.Smoothness
40 page_set = 'page_sets/key_mobile_sites.py'
43 @test.Disabled('android', 'mac') # crbug.com/350692, crbug.com/368767
44 class SmoothnessToughAnimationCases(test.Test):
45 test = smoothness.Smoothness
46 page_set = 'page_sets/tough_animation_cases.py'
49 @test.Disabled('android') # crbug.com/355952
50 class SmoothnessKeySilkCases(test.Test):
51 """Measures rendering statistics for the key silk cases without GPU
54 test = smoothness.Smoothness
55 page_set = 'page_sets/key_silk_cases.py'
58 @test.Disabled('android') # crbug.com/355952
59 class SmoothnessFastPathKeySilkCases(test.Test):
60 """Measures rendering statistics for the key silk cases without GPU
61 rasterization using bleeding edge rendering fast paths.
64 test = smoothness.Smoothness
65 page_set = 'page_sets/key_silk_cases.py'
66 def CustomizeBrowserOptions(self, options):
67 silk_flags.CustomizeBrowserOptionsForFastPath(options)
70 @test.Disabled('android') # crbug.com/363783
71 class SmoothnessGpuRasterizationTop25(test.Test):
72 """Measures rendering statistics for the top 25 with GPU rasterization
74 tag = 'gpu_rasterization'
75 test = smoothness.Smoothness
76 page_set = 'page_sets/top_25.py'
77 def CustomizeBrowserOptions(self, options):
78 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options)
81 @test.Disabled('android') # crbug.com/363783
82 class SmoothnessGpuRasterizationKeyMobileSites(test.Test):
83 """Measures rendering statistics for the key mobile sites with GPU
86 tag = 'gpu_rasterization'
87 test = smoothness.Smoothness
88 page_set = 'page_sets/key_mobile_sites.py'
89 def CustomizeBrowserOptions(self, options):
90 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options)
93 @test.Disabled('android') # crbug.com/355952
94 class SmoothnessGpuRasterizationKeySilkCases(test.Test):
95 """Measures rendering statistics for the key silk cases with GPU rasterization
97 tag = 'gpu_rasterization'
98 test = smoothness.Smoothness
99 page_set = 'page_sets/key_silk_cases.py'
100 def CustomizeBrowserOptions(self, options):
101 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options)
104 @test.Disabled('android') # crbug.com/355952
105 class SmoothnessFastPathGpuRasterizationKeySilkCases(
106 SmoothnessGpuRasterizationKeySilkCases):
107 """Measures rendering statistics for the key silk cases with GPU rasterization
108 using bleeding edge rendering fast paths.
110 tag = 'fast_path_gpu_rasterization'
111 test = smoothness.Smoothness
112 page_set = 'page_sets/key_silk_cases.py'
113 def CustomizeBrowserOptions(self, options):
114 super(SmoothnessFastPathGpuRasterizationKeySilkCases, self). \
115 CustomizeBrowserOptions(options)
116 silk_flags.CustomizeBrowserOptionsForFastPath(options)
119 @test.Enabled('android')
120 class SmoothnessToughPinchZoomCases(test.Test):
121 """Measures rendering statistics for pinch-zooming into the tough pinch zoom
124 test = smoothness.Smoothness
125 page_set = 'page_sets/tough_pinch_zoom_cases.py'
128 @test.Disabled # crbug.com/370725
129 class SmoothnessPolymer(test.Test):
130 """Measures rendering statistics for Polymer cases.
132 test = smoothness.Smoothness
133 page_set = 'page_sets/polymer.py'
136 @test.Disabled # crbug.com/370725
137 class SmoothnessFastPathPolymer(test.Test):
138 """Measures rendering statistics for the Polymer cases without GPU
139 rasterization using bleeding edge rendering fast paths.
142 test = smoothness.Smoothness
143 page_set = 'page_sets/polymer.py'
144 def CustomizeBrowserOptions(self, options):
145 silk_flags.CustomizeBrowserOptionsForFastPath(options)
148 @test.Disabled # crbug.com/370725
149 class SmoothnessGpuRasterizationPolymer(test.Test):
150 """Measures rendering statistics for the Polymer cases with GPU rasterization
152 tag = 'gpu_rasterization'
153 test = smoothness.Smoothness
154 page_set = 'page_sets/polymer.py'
155 def CustomizeBrowserOptions(self, options):
156 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options)
159 @test.Disabled # crbug.com/370725
160 class SmoothnessFastPathGpuRasterizationPolymer(
161 SmoothnessGpuRasterizationPolymer):
162 """Measures rendering statistics for the Polymer cases with GPU rasterization
163 using bleeding edge rendering fast paths.
165 tag = 'fast_path_gpu_rasterization'
166 test = smoothness.Smoothness
167 page_set = 'page_sets/polymer.py'
168 def CustomizeBrowserOptions(self, options):
169 super(SmoothnessFastPathGpuRasterizationPolymer, self). \
170 CustomizeBrowserOptions(options)
171 silk_flags.CustomizeBrowserOptionsForFastPath(options)