Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: tools/perf/benchmarks/draw_properties.py

Issue 2266223002: cc: Compute draw transforms dynamically. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build error Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2015 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 core import perf_benchmark
6
7 import ct_benchmarks_util
8 from measurements import draw_properties
9 import page_sets
10 from telemetry import benchmark
11
12
13 class _DrawProperties(perf_benchmark.PerfBenchmark):
14
15 @classmethod
16 def Name(cls):
17 return 'draw_properties'
18
19 def CreatePageTest(self, options):
20 return draw_properties.DrawProperties()
21
22 # This benchmark depends on tracing categories available in M43
23 # This benchmark is still useful for manual testing, but need not be enabled
24 # and run regularly.
25 @benchmark.Disabled('all')
26 class DrawPropertiesToughScrolling(_DrawProperties):
27 page_set = page_sets.ToughScrollingCasesPageSet
28
29 @classmethod
30 def Name(cls):
31 return 'draw_properties.tough_scrolling'
32
33
34 # This benchmark depends on tracing categories available in M43
35 # This benchmark is still useful for manual testing, but need not be enabled
36 # and run regularly.
37 @benchmark.Disabled('all')
38 class DrawPropertiesTop25(_DrawProperties):
39 """Measures the performance of computing draw properties from property trees.
40
41 http://www.chromium.org/developers/design-documents/rendering-benchmarks
42 """
43 page_set = page_sets.Top25SmoothPageSet
44
45 @classmethod
46 def Name(cls):
47 return 'draw_properties.top_25'
48
49 # This benchmark depends on tracing categories available in M43
50 # This benchmark is still useful for manual testing, but need not be enabled
51 # and run regularly.
52 @benchmark.Disabled('all')
53 class DrawPropertiesCT(_DrawProperties):
54
55 @classmethod
56 def Name(cls):
57 return 'draw_properties_ct'
58
59 @classmethod
60 def AddBenchmarkCommandLineArgs(cls, parser):
61 ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser)
62
63 @classmethod
64 def ProcessCommandLineArgs(cls, parser, args):
65 ct_benchmarks_util.ValidateCommandLineArgs(parser, args)
66
67 def CreateStorySet(self, options):
68 return page_sets.CTPageSet(
69 options.urls_list, options.user_agent, options.archive_data_file)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698