Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / tools / perf / benchmarks / smoothness.py
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.
4
5 from benchmarks import silk_flags
6 from measurements import smoothness
7 from telemetry import test
8
9
10 @test.Disabled  # crbug.com/368767
11 class SmoothnessTop25(test.Test):
12   """Measures rendering statistics while scrolling down the top 25 web pages.
13
14   http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
15   test = smoothness.Smoothness
16   page_set = 'page_sets/top_25.py'
17
18
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'
23
24
25 class SmoothnessToughWebGLCases(test.Test):
26   test = smoothness.Smoothness
27   page_set = 'page_sets/tough_webgl_cases.py'
28
29
30 class SmoothnessMaps(test.Test):
31   test = smoothness.Smoothness
32   page_set = 'page_sets/maps.py'
33
34
35 class SmoothnessKeyMobileSites(test.Test):
36   """Measures rendering statistics while scrolling down the key mobile sites.
37
38   http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
39   test = smoothness.Smoothness
40   page_set = 'page_sets/key_mobile_sites.py'
41
42
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'
47
48
49 @test.Disabled('android')  # crbug.com/355952
50 class SmoothnessKeySilkCases(test.Test):
51   """Measures rendering statistics for the key silk cases without GPU
52   rasterization
53   """
54   test = smoothness.Smoothness
55   page_set = 'page_sets/key_silk_cases.py'
56
57
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.
62   """
63   tag = 'fast_path'
64   test = smoothness.Smoothness
65   page_set = 'page_sets/key_silk_cases.py'
66   def CustomizeBrowserOptions(self, options):
67     silk_flags.CustomizeBrowserOptionsForFastPath(options)
68
69
70 @test.Disabled('android')  # crbug.com/363783
71 class SmoothnessGpuRasterizationTop25(test.Test):
72   """Measures rendering statistics for the top 25 with GPU rasterization
73   """
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)
79
80
81 @test.Disabled('android')  # crbug.com/363783
82 class SmoothnessGpuRasterizationKeyMobileSites(test.Test):
83   """Measures rendering statistics for the key mobile sites with GPU
84   rasterization
85   """
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)
91
92
93 @test.Disabled('android')  # crbug.com/355952
94 class SmoothnessGpuRasterizationKeySilkCases(test.Test):
95   """Measures rendering statistics for the key silk cases with GPU rasterization
96   """
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)
102
103
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.
109   """
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)
117
118
119 @test.Enabled('android')
120 class SmoothnessToughPinchZoomCases(test.Test):
121   """Measures rendering statistics for pinch-zooming into the tough pinch zoom
122   cases
123   """
124   test = smoothness.Smoothness
125   page_set = 'page_sets/tough_pinch_zoom_cases.py'
126
127
128 @test.Disabled  # crbug.com/370725
129 class SmoothnessPolymer(test.Test):
130   """Measures rendering statistics for Polymer cases.
131   """
132   test = smoothness.Smoothness
133   page_set = 'page_sets/polymer.py'
134
135
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.
140   """
141   tag = 'fast_path'
142   test = smoothness.Smoothness
143   page_set = 'page_sets/polymer.py'
144   def CustomizeBrowserOptions(self, options):
145     silk_flags.CustomizeBrowserOptionsForFastPath(options)
146
147
148 @test.Disabled  # crbug.com/370725
149 class SmoothnessGpuRasterizationPolymer(test.Test):
150   """Measures rendering statistics for the Polymer cases with GPU rasterization
151   """
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)
157
158
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.
164   """
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)