| 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 measurements import smoothness | 5 from measurements import smoothness |
| 6 from telemetry import test | 6 from telemetry import test |
| 7 | 7 |
| 8 | 8 |
| 9 class SmoothnessTop25(test.Test): | 9 class SmoothnessTop25(test.Test): |
| 10 """Measures rendering statistics while scrolling down the top 25 web pages. | 10 """Measures rendering statistics while scrolling down the top 25 web pages. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 class SmoothnessGpuRasterizationTop25(test.Test): | 44 class SmoothnessGpuRasterizationTop25(test.Test): |
| 45 """Measures rendering statistics for the top 25 with GPU rasterization | 45 """Measures rendering statistics for the top 25 with GPU rasterization |
| 46 """ | 46 """ |
| 47 tag = 'gpu_rasterization' | 47 tag = 'gpu_rasterization' |
| 48 test = smoothness.Smoothness | 48 test = smoothness.Smoothness |
| 49 page_set = 'page_sets/top_25.json' | 49 page_set = 'page_sets/top_25.json' |
| 50 def CustomizeBrowserOptions(self, options): | 50 def CustomizeBrowserOptions(self, options): |
| 51 options.AppendExtraBrowserArgs('--enable-threaded-compositing') | 51 options.AppendExtraBrowserArgs('--enable-threaded-compositing') |
| 52 options.AppendExtraBrowserArgs('--force-compositing-mode') | 52 options.AppendExtraBrowserArgs('--force-compositing-mode') |
| 53 options.AppendExtraBrowserArgs('--enable-impl-side-painting') | 53 options.AppendExtraBrowserArgs('--enable-impl-side-painting') |
| 54 options.AppendExtraBrowserArgs('--enable-gpu-rasterization') | 54 options.AppendExtraBrowserArgs('--rasterization-site=gpu') |
| 55 | 55 |
| 56 | 56 |
| 57 class SmoothnessGpuRasterizationKeyMobileSites(test.Test): | 57 class SmoothnessGpuRasterizationKeyMobileSites(test.Test): |
| 58 """Measures rendering statistics for the key mobile sites with GPU | 58 """Measures rendering statistics for the key mobile sites with GPU |
| 59 rasterization | 59 rasterization |
| 60 """ | 60 """ |
| 61 tag = 'gpu_rasterization' | 61 tag = 'gpu_rasterization' |
| 62 test = smoothness.Smoothness | 62 test = smoothness.Smoothness |
| 63 page_set = 'page_sets/key_mobile_sites.json' | 63 page_set = 'page_sets/key_mobile_sites.json' |
| 64 def CustomizeBrowserOptions(self, options): | 64 def CustomizeBrowserOptions(self, options): |
| (...skipping 16 matching lines...) Expand all Loading... |
| 81 options.AppendExtraBrowserArgs('--enable-gpu-rasterization') | 81 options.AppendExtraBrowserArgs('--enable-gpu-rasterization') |
| 82 | 82 |
| 83 | 83 |
| 84 @test.Enabled('android') | 84 @test.Enabled('android') |
| 85 class SmoothnessToughPinchZoomCases(test.Test): | 85 class SmoothnessToughPinchZoomCases(test.Test): |
| 86 """Measures rendering statistics for pinch-zooming into the tough pinch zoom | 86 """Measures rendering statistics for pinch-zooming into the tough pinch zoom |
| 87 cases | 87 cases |
| 88 """ | 88 """ |
| 89 test = smoothness.Smoothness | 89 test = smoothness.Smoothness |
| 90 page_set = 'page_sets/tough_pinch_zoom_cases.json' | 90 page_set = 'page_sets/tough_pinch_zoom_cases.json' |
| OLD | NEW |