| Index: tools/perf/benchmarks/blink_perf.py
|
| diff --git a/tools/perf/benchmarks/blink_perf.py b/tools/perf/benchmarks/blink_perf.py
|
| index 0cfd03a39ae10b672d583451834af1b34b563c86..83a62497655793ae0e4c7e71a6f925acff57ba18 100644
|
| --- a/tools/perf/benchmarks/blink_perf.py
|
| +++ b/tools/perf/benchmarks/blink_perf.py
|
| @@ -119,6 +119,17 @@ class _BlinkPerfMeasurement(legacy_page_test.LegacyPageTest):
|
| print log
|
|
|
|
|
| +class _BlinkPerfMeasurementSlimmingPaintInvalidation(_BlinkPerfMeasurement):
|
| + """Measures blink perf with the new paint invalidation system (see:
|
| + https://goo.gl/eQczQW). The benchmarks using this measurement should be
|
| + removed when slimming paint invalidation ships."""
|
| + def CustomizeBrowserOptions(self, options):
|
| + _BlinkPerfMeasurement.CustomizeBrowserOptions(self, options)
|
| + options.AppendExtraBrowserArgs([
|
| + '--enable-blink-features=SlimmingPaintInvalidation'
|
| + ])
|
| +
|
| +
|
| class _SharedPywebsocketPageState(shared_page_state.SharedPageState):
|
| """Runs a pywebsocket server."""
|
|
|
| @@ -267,6 +278,15 @@ class BlinkPerfPaint(perf_benchmark.PerfBenchmark):
|
| return cls.IsSvelte(possible_browser) # http://crbug.com/574483
|
|
|
|
|
| +class BlinkPerfPaintSlimmingPaintInvalidation(BlinkPerfPaint):
|
| + tag = 'paint_slimmingpaintinvalidation'
|
| + test = _BlinkPerfMeasurementSlimmingPaintInvalidation
|
| +
|
| + @classmethod
|
| + def Name(cls):
|
| + return 'blink_perf.paint_slimmingpaintinvalidation'
|
| +
|
| +
|
| @benchmark.Disabled('win') # crbug.com/488493
|
| class BlinkPerfParser(perf_benchmark.PerfBenchmark):
|
| tag = 'parser'
|
| @@ -294,6 +314,15 @@ class BlinkPerfSVG(perf_benchmark.PerfBenchmark):
|
| return CreateStorySetFromPath(path, SKIPPED_FILE)
|
|
|
|
|
| +class BlinkPerfSVGSlimmingPaintInvalidation(BlinkPerfSVG):
|
| + tag = 'svg_slimmingpaintinvalidation'
|
| + test = _BlinkPerfMeasurementSlimmingPaintInvalidation
|
| +
|
| + @classmethod
|
| + def Name(cls):
|
| + return 'blink_perf.svg_slimmingpaintinvalidation'
|
| +
|
| +
|
| class BlinkPerfShadowDOM(perf_benchmark.PerfBenchmark):
|
| tag = 'shadow_dom'
|
| test = _BlinkPerfMeasurement
|
|
|