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
3 # found in the LICENSE file.
5 from telemetry
import test
7 from benchmarks
import silk_flags
8 from measurements
import smoothness
12 @test.Disabled
# crbug.com/368767
13 class SmoothnessTop25(test
.Test
):
14 """Measures rendering statistics while scrolling down the top 25 web pages.
16 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
17 test
= smoothness
.Smoothness
18 page_set
= page_sets
.Top25PageSet
21 @test.Disabled('linux', 'mac', 'win') # crbug.com/368767
22 class SmoothnessToughCanvasCases(test
.Test
):
23 test
= smoothness
.Smoothness
24 page_set
= page_sets
.ToughCanvasCasesPageSet
27 @test.Disabled
# crbug.com/373812
28 class SmoothnessToughWebGLCases(test
.Test
):
29 test
= smoothness
.Smoothness
30 page_set
= page_sets
.ToughWebglCasesPageSet
33 class SmoothnessMaps(test
.Test
):
34 test
= smoothness
.Smoothness
35 page_set
= page_sets
.MapsPageSet
38 class SmoothnessKeyMobileSites(test
.Test
):
39 """Measures rendering statistics while scrolling down the key mobile sites.
41 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
42 test
= smoothness
.Smoothness
43 page_set
= page_sets
.KeyMobileSitesPageSet
46 @test.Disabled('android', 'mac') # crbug.com/350692, crbug.com/368767
47 class SmoothnessToughAnimationCases(test
.Test
):
48 test
= smoothness
.Smoothness
49 page_set
= page_sets
.ToughAnimationCasesPageSet
52 class SmoothnessKeySilkCases(test
.Test
):
53 """Measures rendering statistics for the key silk cases without GPU
56 test
= smoothness
.Smoothness
57 page_set
= page_sets
.KeySilkCasesPageSet
60 class SmoothnessFastPathKeySilkCases(test
.Test
):
61 """Measures rendering statistics for the key silk cases without GPU
62 rasterization using bleeding edge rendering fast paths.
65 test
= smoothness
.Smoothness
66 page_set
= page_sets
.KeySilkCasesPageSet
67 def CustomizeBrowserOptions(self
, options
):
68 silk_flags
.CustomizeBrowserOptionsForFastPath(options
)
71 @test.Disabled('android') # crbug.com/363783
72 class SmoothnessGpuRasterizationTop25(test
.Test
):
73 """Measures rendering statistics for the top 25 with GPU rasterization
75 tag
= 'gpu_rasterization'
76 test
= smoothness
.Smoothness
77 page_set
= page_sets
.Top25PageSet
78 def CustomizeBrowserOptions(self
, options
):
79 silk_flags
.CustomizeBrowserOptionsForGpuRasterization(options
)
82 @test.Disabled('android') # crbug.com/363783
83 class SmoothnessGpuRasterizationKeyMobileSites(test
.Test
):
84 """Measures rendering statistics for the key mobile sites with GPU
87 tag
= 'gpu_rasterization'
88 test
= smoothness
.Smoothness
89 page_set
= page_sets
.KeyMobileSitesPageSet
90 def CustomizeBrowserOptions(self
, options
):
91 silk_flags
.CustomizeBrowserOptionsForGpuRasterization(options
)
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
.KeySilkCasesPageSet
100 def CustomizeBrowserOptions(self
, options
):
101 silk_flags
.CustomizeBrowserOptionsForGpuRasterization(options
)
104 class SmoothnessFastPathGpuRasterizationKeySilkCases(
105 SmoothnessGpuRasterizationKeySilkCases
):
106 """Measures rendering statistics for the key silk cases with GPU rasterization
107 using bleeding edge rendering fast paths.
109 tag
= 'fast_path_gpu_rasterization'
110 test
= smoothness
.Smoothness
111 page_set
= page_sets
.KeySilkCasesPageSet
112 def CustomizeBrowserOptions(self
, options
):
113 super(SmoothnessFastPathGpuRasterizationKeySilkCases
, self
). \
114 CustomizeBrowserOptions(options
)
115 silk_flags
.CustomizeBrowserOptionsForFastPath(options
)
118 @test.Enabled('android')
119 class SmoothnessToughPinchZoomCases(test
.Test
):
120 """Measures rendering statistics for pinch-zooming into the tough pinch zoom
123 test
= smoothness
.Smoothness
124 page_set
= page_sets
.ToughPinchZoomCasesPageSet
127 @test.Disabled
# crbug.com/370725
128 class SmoothnessPolymer(test
.Test
):
129 """Measures rendering statistics for Polymer cases.
131 test
= smoothness
.Smoothness
132 page_set
= page_sets
.PolymerPageSet
135 @test.Disabled
# crbug.com/370725
136 class SmoothnessFastPathPolymer(test
.Test
):
137 """Measures rendering statistics for the Polymer cases without GPU
138 rasterization using bleeding edge rendering fast paths.
141 test
= smoothness
.Smoothness
142 page_set
= page_sets
.PolymerPageSet
143 def CustomizeBrowserOptions(self
, options
):
144 silk_flags
.CustomizeBrowserOptionsForFastPath(options
)
147 @test.Disabled
# crbug.com/370725
148 class SmoothnessGpuRasterizationPolymer(test
.Test
):
149 """Measures rendering statistics for the Polymer cases with GPU rasterization
151 tag
= 'gpu_rasterization'
152 test
= smoothness
.Smoothness
153 page_set
= page_sets
.PolymerPageSet
154 def CustomizeBrowserOptions(self
, options
):
155 silk_flags
.CustomizeBrowserOptionsForGpuRasterization(options
)
158 @test.Disabled
# crbug.com/370725
159 class SmoothnessFastPathGpuRasterizationPolymer(
160 SmoothnessGpuRasterizationPolymer
):
161 """Measures rendering statistics for the Polymer cases with GPU rasterization
162 using bleeding edge rendering fast paths.
164 tag
= 'fast_path_gpu_rasterization'
165 test
= smoothness
.Smoothness
166 page_set
= page_sets
.PolymerPageSet
167 def CustomizeBrowserOptions(self
, options
):
168 super(SmoothnessFastPathGpuRasterizationPolymer
, self
). \
169 CustomizeBrowserOptions(options
)
170 silk_flags
.CustomizeBrowserOptionsForFastPath(options
)