| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from benchmarks import silk_flags |
| 5 from measurements import smoothness | 6 from measurements import smoothness |
| 6 from telemetry import test | 7 from telemetry import test |
| 7 | 8 |
| 8 | 9 |
| 9 class SmoothnessTop25(test.Test): | 10 class SmoothnessTop25(test.Test): |
| 10 """Measures rendering statistics while scrolling down the top 25 web pages. | 11 """Measures rendering statistics while scrolling down the top 25 web pages. |
| 11 | 12 |
| 12 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 13 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 13 test = smoothness.Smoothness | 14 test = smoothness.Smoothness |
| 14 page_set = 'page_sets/top_25.json' | 15 page_set = 'page_sets/top_25.json' |
| (...skipping 19 matching lines...) Expand all Loading... |
| 34 | 35 |
| 35 | 36 |
| 36 class SmoothnessKeySilkCases(test.Test): | 37 class SmoothnessKeySilkCases(test.Test): |
| 37 """Measures rendering statistics for the key silk cases without GPU | 38 """Measures rendering statistics for the key silk cases without GPU |
| 38 rasterization | 39 rasterization |
| 39 """ | 40 """ |
| 40 test = smoothness.Smoothness | 41 test = smoothness.Smoothness |
| 41 page_set = 'page_sets/key_silk_cases.json' | 42 page_set = 'page_sets/key_silk_cases.json' |
| 42 | 43 |
| 43 | 44 |
| 45 class SmoothnessFastPathKeySilkCases(test.Test): |
| 46 """Measures rendering statistics for the key silk cases without GPU |
| 47 rasterization using bleeding edge rendering fast paths. |
| 48 """ |
| 49 tag = 'fast_path' |
| 50 test = smoothness.Smoothness |
| 51 page_set = 'page_sets/key_silk_cases.json' |
| 52 def CustomizeBrowserOptions(self, options): |
| 53 silk_flags.CustomizeBrowserOptionsForFastPath(options) |
| 54 |
| 55 |
| 44 class SmoothnessGpuRasterizationTop25(test.Test): | 56 class SmoothnessGpuRasterizationTop25(test.Test): |
| 45 """Measures rendering statistics for the top 25 with GPU rasterization | 57 """Measures rendering statistics for the top 25 with GPU rasterization |
| 46 """ | 58 """ |
| 47 tag = 'gpu_rasterization' | 59 tag = 'gpu_rasterization' |
| 48 test = smoothness.Smoothness | 60 test = smoothness.Smoothness |
| 49 page_set = 'page_sets/top_25.json' | 61 page_set = 'page_sets/top_25.json' |
| 50 def CustomizeBrowserOptions(self, options): | 62 def CustomizeBrowserOptions(self, options): |
| 51 options.AppendExtraBrowserArgs('--enable-threaded-compositing') | 63 options.AppendExtraBrowserArgs('--enable-threaded-compositing') |
| 52 options.AppendExtraBrowserArgs('--force-compositing-mode') | 64 options.AppendExtraBrowserArgs('--force-compositing-mode') |
| 53 options.AppendExtraBrowserArgs('--enable-impl-side-painting') | 65 options.AppendExtraBrowserArgs('--enable-impl-side-painting') |
| (...skipping 20 matching lines...) Expand all Loading... |
| 74 tag = 'gpu_rasterization' | 86 tag = 'gpu_rasterization' |
| 75 test = smoothness.Smoothness | 87 test = smoothness.Smoothness |
| 76 page_set = 'page_sets/key_silk_cases.json' | 88 page_set = 'page_sets/key_silk_cases.json' |
| 77 def CustomizeBrowserOptions(self, options): | 89 def CustomizeBrowserOptions(self, options): |
| 78 options.AppendExtraBrowserArgs('--enable-threaded-compositing') | 90 options.AppendExtraBrowserArgs('--enable-threaded-compositing') |
| 79 options.AppendExtraBrowserArgs('--force-compositing-mode') | 91 options.AppendExtraBrowserArgs('--force-compositing-mode') |
| 80 options.AppendExtraBrowserArgs('--enable-impl-side-painting') | 92 options.AppendExtraBrowserArgs('--enable-impl-side-painting') |
| 81 options.AppendExtraBrowserArgs('--enable-gpu-rasterization') | 93 options.AppendExtraBrowserArgs('--enable-gpu-rasterization') |
| 82 | 94 |
| 83 | 95 |
| 96 class SmoothnessFastPathGpuRasterizationKeySilkCases( |
| 97 SmoothnessGpuRasterizationKeySilkCases): |
| 98 """Measures rendering statistics for the key silk cases with GPU rasterization |
| 99 using bleeding edge rendering fast paths. |
| 100 """ |
| 101 tag = 'fast_path_gpu_rasterization' |
| 102 test = smoothness.Smoothness |
| 103 page_set = 'page_sets/key_silk_cases.json' |
| 104 def CustomizeBrowserOptions(self, options): |
| 105 super(SmoothnessFastPathGpuRasterizationKeySilkCases, self). \ |
| 106 CustomizeBrowserOptions(options) |
| 107 silk_flags.CustomizeBrowserOptionsForFastPath(options) |
| 108 |
| 109 |
| 84 @test.Enabled('android') | 110 @test.Enabled('android') |
| 85 class SmoothnessToughPinchZoomCases(test.Test): | 111 class SmoothnessToughPinchZoomCases(test.Test): |
| 86 """Measures rendering statistics for pinch-zooming into the tough pinch zoom | 112 """Measures rendering statistics for pinch-zooming into the tough pinch zoom |
| 87 cases | 113 cases |
| 88 """ | 114 """ |
| 89 test = smoothness.Smoothness | 115 test = smoothness.Smoothness |
| 90 page_set = 'page_sets/tough_pinch_zoom_cases.json' | 116 page_set = 'page_sets/tough_pinch_zoom_cases.json' |
| OLD | NEW |