OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 class PixelTestPage(object): | 5 class PixelTestPage(object): |
6 """A wrapper class mimicking the functionality of the PixelTestsStorySet | 6 """A wrapper class mimicking the functionality of the PixelTestsStorySet |
7 from the old-style GPU tests. | 7 from the old-style GPU tests. |
8 """ | 8 """ |
9 def __init__(self, url, name, test_rect, revision, | 9 def __init__(self, url, name, test_rect, revision, |
10 expected_colors=None, tolerance=2, browser_args=None): | 10 expected_colors=None, tolerance=2, browser_args=None): |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 test_rect=[0, 0, 350, 350], | 186 test_rect=[0, 0, 350, 350], |
187 revision=1, | 187 revision=1, |
188 browser_args=browser_args + unaccelerated_args), | 188 browser_args=browser_args + unaccelerated_args), |
189 | 189 |
190 PixelTestPage( | 190 PixelTestPage( |
191 'pixel_offscreenCanvas_2d_commit_worker.html', | 191 'pixel_offscreenCanvas_2d_commit_worker.html', |
192 base_name + '_OffscreenCanvasUnaccelerated2DWorker', | 192 base_name + '_OffscreenCanvasUnaccelerated2DWorker', |
193 test_rect=[0, 0, 350, 350], | 193 test_rect=[0, 0, 350, 350], |
194 revision=1, | 194 revision=1, |
195 browser_args=browser_args + unaccelerated_args), | 195 browser_args=browser_args + unaccelerated_args), |
| 196 |
| 197 PixelTestPage( |
| 198 'pixel_offscreenCanvas_2d_commit_main.html', |
| 199 base_name + '_OffscreenCanvasUnaccelerated2DGPUCompositing', |
| 200 test_rect=[0, 0, 350, 350], |
| 201 revision=1, |
| 202 browser_args=browser_args + ['--disable-accelerated-2d-canvas']), |
| 203 |
| 204 PixelTestPage( |
| 205 'pixel_offscreenCanvas_2d_commit_worker.html', |
| 206 base_name + '_OffscreenCanvasUnaccelerated2DGPUCompositingWorker', |
| 207 test_rect=[0, 0, 350, 350], |
| 208 revision=1, |
| 209 browser_args=browser_args + ['--disable-accelerated-2d-canvas']), |
196 ] | 210 ] |
197 | 211 |
198 | 212 |
199 # Pages that should be run with various macOS specific command line | 213 # Pages that should be run with various macOS specific command line |
200 # arguments. | 214 # arguments. |
201 def MacSpecificPages(base_name): | 215 def MacSpecificPages(base_name): |
202 iosurface_2d_canvas_args = [ | 216 iosurface_2d_canvas_args = [ |
203 '--enable-accelerated-2d-canvas', | 217 '--enable-accelerated-2d-canvas', |
204 '--disable-display-list-2d-canvas'] | 218 '--disable-display-list-2d-canvas'] |
205 | 219 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 test_rect=[0, 0, 300, 300], | 267 test_rect=[0, 0, 300, 300], |
254 revision=2), | 268 revision=2), |
255 PixelTestPage( | 269 PixelTestPage( |
256 'filter_effects.html', | 270 'filter_effects.html', |
257 base_name + '_CSSFilterEffects_NoOverlays', | 271 base_name + '_CSSFilterEffects_NoOverlays', |
258 test_rect=[0, 0, 300, 300], | 272 test_rect=[0, 0, 300, 300], |
259 revision=2, | 273 revision=2, |
260 tolerance=10, | 274 tolerance=10, |
261 browser_args=['--disable-mac-overlays']), | 275 browser_args=['--disable-mac-overlays']), |
262 ] | 276 ] |
OLD | NEW |