Upstream version 7.35.144.0
[platform/framework/web/crosswalk.git] / src / tools / perf / benchmarks / rasterize_and_record.py
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
5 from telemetry import test
6
7 from benchmarks import silk_flags
8 from measurements import rasterize_and_record
9
10
11 # RasterizeAndRecord disabled on linux because no raster times are reported and
12 # on mac because Chrome DCHECKS.
13 # TODO: Re-enable when unittests are happy on linux and mac: crbug.com/350684.
14
15 @test.Disabled('linux', 'mac')
16 class RasterizeAndRecordTop25(test.Test):
17   """Measures rasterize and record performance on the top 25 web pages.
18
19   http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
20   test = rasterize_and_record.RasterizeAndRecord
21   page_set = 'page_sets/top_25.json'
22
23
24 @test.Disabled('linux', 'mac')
25 class RasterizeAndRecordKeyMobileSites(test.Test):
26   """Measures rasterize and record performance on the key mobile sites.
27
28   http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
29   test = rasterize_and_record.RasterizeAndRecord
30   page_set = 'page_sets/key_mobile_sites.json'
31
32
33 @test.Disabled('linux', 'mac')
34 class RasterizeAndRecordSilk(test.Test):
35   """Measures rasterize and record performance on the silk sites.
36
37   http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
38   test = rasterize_and_record.RasterizeAndRecord
39   page_set = 'page_sets/key_silk_cases.json'
40
41
42 @test.Disabled('linux', 'mac')
43 class RasterizeAndRecordFastPathSilk(test.Test):
44   """Measures rasterize and record performance on the silk sites.
45
46   Uses bleeding edge rendering fast paths.
47
48   http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
49   tag = 'fast_path'
50   test = rasterize_and_record.RasterizeAndRecord
51   page_set = 'page_sets/key_silk_cases.json'
52   def CustomizeBrowserOptions(self, options):
53     silk_flags.CustomizeBrowserOptionsForFastPath(options)