• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4
5from telemetry import test
6
7from benchmarks import silk_flags
8from measurements import smoothness
9import page_sets
10
11
12@test.Disabled  # crbug.com/368767
13class SmoothnessTop25(test.Test):
14  """Measures rendering statistics while scrolling down the top 25 web pages.
15
16  http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
17  test = smoothness.Smoothness
18  page_set = page_sets.Top25PageSet
19
20
21@test.Disabled('linux', 'mac', 'win')  # crbug.com/368767
22class SmoothnessToughCanvasCases(test.Test):
23  test = smoothness.Smoothness
24  page_set = page_sets.ToughCanvasCasesPageSet
25
26
27@test.Disabled  # crbug.com/373812
28class SmoothnessToughWebGLCases(test.Test):
29  test = smoothness.Smoothness
30  page_set = page_sets.ToughWebglCasesPageSet
31
32
33class SmoothnessMaps(test.Test):
34  test = smoothness.Smoothness
35  page_set = page_sets.MapsPageSet
36
37
38class SmoothnessKeyMobileSites(test.Test):
39  """Measures rendering statistics while scrolling down the key mobile sites.
40
41  http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
42  test = smoothness.Smoothness
43  page_set = page_sets.KeyMobileSitesPageSet
44
45
46@test.Disabled('android', 'mac')  # crbug.com/350692, crbug.com/368767
47class SmoothnessToughAnimationCases(test.Test):
48  test = smoothness.Smoothness
49  page_set = page_sets.ToughAnimationCasesPageSet
50
51
52class SmoothnessKeySilkCases(test.Test):
53  """Measures rendering statistics for the key silk cases without GPU
54  rasterization
55  """
56  test = smoothness.Smoothness
57  page_set = page_sets.KeySilkCasesPageSet
58
59
60class SmoothnessFastPathKeySilkCases(test.Test):
61  """Measures rendering statistics for the key silk cases without GPU
62  rasterization using bleeding edge rendering fast paths.
63  """
64  tag = 'fast_path'
65  test = smoothness.Smoothness
66  page_set = page_sets.KeySilkCasesPageSet
67  def CustomizeBrowserOptions(self, options):
68    silk_flags.CustomizeBrowserOptionsForFastPath(options)
69
70
71@test.Disabled('android')  # crbug.com/363783
72class SmoothnessGpuRasterizationTop25(test.Test):
73  """Measures rendering statistics for the top 25 with GPU rasterization
74  """
75  tag = 'gpu_rasterization'
76  test = smoothness.Smoothness
77  page_set = page_sets.Top25PageSet
78  def CustomizeBrowserOptions(self, options):
79    silk_flags.CustomizeBrowserOptionsForGpuRasterization(options)
80
81
82@test.Disabled('android')  # crbug.com/363783
83class SmoothnessGpuRasterizationKeyMobileSites(test.Test):
84  """Measures rendering statistics for the key mobile sites with GPU
85  rasterization
86  """
87  tag = 'gpu_rasterization'
88  test = smoothness.Smoothness
89  page_set = page_sets.KeyMobileSitesPageSet
90  def CustomizeBrowserOptions(self, options):
91    silk_flags.CustomizeBrowserOptionsForGpuRasterization(options)
92
93
94class 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.KeySilkCasesPageSet
100  def CustomizeBrowserOptions(self, options):
101    silk_flags.CustomizeBrowserOptionsForGpuRasterization(options)
102
103
104class SmoothnessFastPathGpuRasterizationKeySilkCases(
105    SmoothnessGpuRasterizationKeySilkCases):
106  """Measures rendering statistics for the key silk cases with GPU rasterization
107  using bleeding edge rendering fast paths.
108  """
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)
116
117
118@test.Enabled('android')
119class SmoothnessToughPinchZoomCases(test.Test):
120  """Measures rendering statistics for pinch-zooming into the tough pinch zoom
121  cases
122  """
123  test = smoothness.Smoothness
124  page_set = page_sets.ToughPinchZoomCasesPageSet
125
126
127@test.Disabled  # crbug.com/370725
128class SmoothnessPolymer(test.Test):
129  """Measures rendering statistics for Polymer cases.
130  """
131  test = smoothness.Smoothness
132  page_set = page_sets.PolymerPageSet
133
134
135@test.Disabled  # crbug.com/370725
136class SmoothnessFastPathPolymer(test.Test):
137  """Measures rendering statistics for the Polymer cases without GPU
138  rasterization using bleeding edge rendering fast paths.
139  """
140  tag = 'fast_path'
141  test = smoothness.Smoothness
142  page_set = page_sets.PolymerPageSet
143  def CustomizeBrowserOptions(self, options):
144    silk_flags.CustomizeBrowserOptionsForFastPath(options)
145
146
147@test.Disabled  # crbug.com/370725
148class SmoothnessGpuRasterizationPolymer(test.Test):
149  """Measures rendering statistics for the Polymer cases with GPU rasterization
150  """
151  tag = 'gpu_rasterization'
152  test = smoothness.Smoothness
153  page_set = page_sets.PolymerPageSet
154  def CustomizeBrowserOptions(self, options):
155    silk_flags.CustomizeBrowserOptionsForGpuRasterization(options)
156
157
158@test.Disabled  # crbug.com/370725
159class SmoothnessFastPathGpuRasterizationPolymer(
160    SmoothnessGpuRasterizationPolymer):
161  """Measures rendering statistics for the Polymer cases with GPU rasterization
162  using bleeding edge rendering fast paths.
163  """
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)
171