| 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 benchmarks import silk_flags |
| 6 from measurements import smoothness | 6 from measurements import smoothness |
| 7 from telemetry import test | 7 from telemetry import test |
| 8 | 8 |
| 9 | 9 |
| 10 class SmoothnessTop25(test.Test): | 10 class SmoothnessTop25(test.Test): |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 silk_flags.CustomizeBrowserOptionsForFastPath(options) | 64 silk_flags.CustomizeBrowserOptionsForFastPath(options) |
| 65 | 65 |
| 66 | 66 |
| 67 class SmoothnessGpuRasterizationTop25(test.Test): | 67 class SmoothnessGpuRasterizationTop25(test.Test): |
| 68 """Measures rendering statistics for the top 25 with GPU rasterization | 68 """Measures rendering statistics for the top 25 with GPU rasterization |
| 69 """ | 69 """ |
| 70 tag = 'gpu_rasterization' | 70 tag = 'gpu_rasterization' |
| 71 test = smoothness.Smoothness | 71 test = smoothness.Smoothness |
| 72 page_set = 'page_sets/top_25.py' | 72 page_set = 'page_sets/top_25.py' |
| 73 def CustomizeBrowserOptions(self, options): | 73 def CustomizeBrowserOptions(self, options): |
| 74 options.AppendExtraBrowserArgs('--enable-threaded-compositing') | 74 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 75 options.AppendExtraBrowserArgs('--force-compositing-mode') | |
| 76 options.AppendExtraBrowserArgs('--enable-impl-side-painting') | |
| 77 options.AppendExtraBrowserArgs('--force-gpu-rasterization') | |
| 78 | 75 |
| 79 | 76 |
| 80 class SmoothnessGpuRasterizationKeyMobileSites(test.Test): | 77 class SmoothnessGpuRasterizationKeyMobileSites(test.Test): |
| 81 """Measures rendering statistics for the key mobile sites with GPU | 78 """Measures rendering statistics for the key mobile sites with GPU |
| 82 rasterization | 79 rasterization |
| 83 """ | 80 """ |
| 84 tag = 'gpu_rasterization' | 81 tag = 'gpu_rasterization' |
| 85 test = smoothness.Smoothness | 82 test = smoothness.Smoothness |
| 86 page_set = 'page_sets/key_mobile_sites.py' | 83 page_set = 'page_sets/key_mobile_sites.py' |
| 87 def CustomizeBrowserOptions(self, options): | 84 def CustomizeBrowserOptions(self, options): |
| 88 options.AppendExtraBrowserArgs('--enable-threaded-compositing') | 85 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 89 options.AppendExtraBrowserArgs('--force-compositing-mode') | |
| 90 options.AppendExtraBrowserArgs('--enable-impl-side-painting') | |
| 91 options.AppendExtraBrowserArgs('--force-gpu-rasterization') | |
| 92 | 86 |
| 93 | 87 |
| 94 class SmoothnessGpuRasterizationKeySilkCases(test.Test): | 88 class SmoothnessGpuRasterizationKeySilkCases(test.Test): |
| 95 """Measures rendering statistics for the key silk cases with GPU rasterization | 89 """Measures rendering statistics for the key silk cases with GPU rasterization |
| 96 """ | 90 """ |
| 97 tag = 'gpu_rasterization' | 91 tag = 'gpu_rasterization' |
| 98 test = smoothness.Smoothness | 92 test = smoothness.Smoothness |
| 99 page_set = 'page_sets/key_silk_cases.py' | 93 page_set = 'page_sets/key_silk_cases.py' |
| 100 def CustomizeBrowserOptions(self, options): | 94 def CustomizeBrowserOptions(self, options): |
| 101 options.AppendExtraBrowserArgs('--enable-threaded-compositing') | 95 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) |
| 102 options.AppendExtraBrowserArgs('--force-compositing-mode') | |
| 103 options.AppendExtraBrowserArgs('--enable-impl-side-painting') | |
| 104 options.AppendExtraBrowserArgs('--force-gpu-rasterization') | |
| 105 | 96 |
| 106 | 97 |
| 107 class SmoothnessFastPathGpuRasterizationKeySilkCases( | 98 class SmoothnessFastPathGpuRasterizationKeySilkCases( |
| 108 SmoothnessGpuRasterizationKeySilkCases): | 99 SmoothnessGpuRasterizationKeySilkCases): |
| 109 """Measures rendering statistics for the key silk cases with GPU rasterization | 100 """Measures rendering statistics for the key silk cases with GPU rasterization |
| 110 using bleeding edge rendering fast paths. | 101 using bleeding edge rendering fast paths. |
| 111 """ | 102 """ |
| 112 tag = 'fast_path_gpu_rasterization' | 103 tag = 'fast_path_gpu_rasterization' |
| 113 test = smoothness.Smoothness | 104 test = smoothness.Smoothness |
| 114 page_set = 'page_sets/key_silk_cases.py' | 105 page_set = 'page_sets/key_silk_cases.py' |
| 115 def CustomizeBrowserOptions(self, options): | 106 def CustomizeBrowserOptions(self, options): |
| 116 super(SmoothnessFastPathGpuRasterizationKeySilkCases, self). \ | 107 super(SmoothnessFastPathGpuRasterizationKeySilkCases, self). \ |
| 117 CustomizeBrowserOptions(options) | 108 CustomizeBrowserOptions(options) |
| 118 silk_flags.CustomizeBrowserOptionsForFastPath(options) | 109 silk_flags.CustomizeBrowserOptionsForFastPath(options) |
| 119 | 110 |
| 120 | 111 |
| 121 @test.Enabled('android') | 112 @test.Enabled('android') |
| 122 class SmoothnessToughPinchZoomCases(test.Test): | 113 class SmoothnessToughPinchZoomCases(test.Test): |
| 123 """Measures rendering statistics for pinch-zooming into the tough pinch zoom | 114 """Measures rendering statistics for pinch-zooming into the tough pinch zoom |
| 124 cases | 115 cases |
| 125 """ | 116 """ |
| 126 test = smoothness.Smoothness | 117 test = smoothness.Smoothness |
| 127 page_set = 'page_sets/tough_pinch_zoom_cases.py' | 118 page_set = 'page_sets/tough_pinch_zoom_cases.py' |
| OLD | NEW |