[Android WebViewShell] Add inclusion test for webview exposed stable interfaces.
[chromium-blink-merge.git] / tools / perf / benchmarks / repaint.py
blob2293c0446ab52eec351cd03b6263dd9957ffa2e1
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.
5 from core import perf_benchmark
7 from benchmarks import silk_flags
8 from measurements import smoothness
9 import page_sets
10 from telemetry import benchmark
13 class _Repaint(perf_benchmark.PerfBenchmark):
14 @classmethod
15 def AddBenchmarkCommandLineArgs(cls, parser):
16 parser.add_option('--mode', type='string',
17 default='viewport',
18 help='Invalidation mode. '
19 'Supported values: fixed_size, layer, random, viewport.')
20 parser.add_option('--width', type='int',
21 default=None,
22 help='Width of invalidations for fixed_size mode.')
23 parser.add_option('--height', type='int',
24 default=None,
25 help='Height of invalidations for fixed_size mode.')
27 @classmethod
28 def Name(cls):
29 return 'repaint'
31 def CreateStorySet(self, options):
32 return page_sets.KeyMobileSitesRepaintPageSet(
33 options.mode, options.width, options.height)
35 def CreatePageTest(self, options):
36 return smoothness.Repaint()
38 #crbug.com/499320
39 #@benchmark.Enabled('android')
40 @benchmark.Disabled()
41 class RepaintKeyMobileSites(_Repaint):
42 """Measures repaint performance on the key mobile sites.
44 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
46 @classmethod
47 def Name(cls):
48 return 'repaint.key_mobile_sites_repaint'
51 #crbug.com/502179
52 @benchmark.Enabled('android')
53 @benchmark.Disabled()
54 class RepaintGpuRasterizationKeyMobileSites(_Repaint):
55 """Measures repaint performance on the key mobile sites with forced GPU
56 rasterization.
58 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
59 tag = 'gpu_rasterization'
60 def SetExtraBrowserOptions(self, options):
61 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options)
63 @classmethod
64 def Name(cls):
65 return 'repaint.gpu_rasterization.key_mobile_sites_repaint'