1# Copyright 2014 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.
4from telemetry import test
5
6from benchmarks import silk_flags
7from measurements import thread_times
8import page_sets
9
10
11class ThreadTimesKeySilkCases(test.Test):
12  """Measures timeline metrics while performing smoothness action on key silk
13  cases."""
14  test = thread_times.ThreadTimes
15  page_set = page_sets.KeySilkCasesPageSet
16  options = {"report_silk_results": True}
17
18
19class ThreadTimesFastPathKeySilkCases(test.Test):
20  """Measures timeline metrics while performing smoothness action on key silk
21  cases using bleeding edge rendering fast paths."""
22  tag = 'fast_path'
23  test = thread_times.ThreadTimes
24  page_set = page_sets.KeySilkCasesPageSet
25  options = {"report_silk_results": True}
26  def CustomizeBrowserOptions(self, options):
27    silk_flags.CustomizeBrowserOptionsForFastPath(options)
28
29
30class LegacySilkBenchmark(ThreadTimesKeySilkCases):
31  """Same as thread_times.key_silk_cases but with the old name."""
32  @classmethod
33  def GetName(cls):
34    return "silk.key_silk_cases"
35
36
37class ThreadTimesFastPathMobileSites(test.Test):
38  """Measures timeline metrics while performing smoothness action on
39  key mobile sites labeled with fast-path tag.
40  http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
41  test = thread_times.ThreadTimes
42  page_set = page_sets.KeyMobileSitesPageSet
43  options = {'page_label_filter' : 'fastpath'}
44
45
46class ThreadTimesCompositorCases(test.Test):
47  """Measures timeline metrics while performing smoothness action on
48  tough compositor cases.
49  http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
50  test = thread_times.ThreadTimes
51  page_set = page_sets.ToughCompositorCasesPageSet
52
53
54@test.Enabled('android')
55class ThreadTimesPolymer(test.Test):
56  """Measures timeline metrics while performing smoothness action on
57  Polymer cases."""
58  test = thread_times.ThreadTimes
59  page_set = page_sets.PolymerPageSet
60  options = { 'report_silk_results': True }
61