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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 browser_args=browser_args), | 157 browser_args=browser_args), |
158 | 158 |
159 PixelTestPage( | 159 PixelTestPage( |
160 'pixel_offscreenCanvas_webgl_commit_worker.html', | 160 'pixel_offscreenCanvas_webgl_commit_worker.html', |
161 base_name + '_OffscreenCanvasWebGLRedBoxWorker', | 161 base_name + '_OffscreenCanvasWebGLRedBoxWorker', |
162 test_rect=[0, 0, 300, 300], | 162 test_rect=[0, 0, 300, 300], |
163 revision=3, | 163 revision=3, |
164 browser_args=browser_args), | 164 browser_args=browser_args), |
165 | 165 |
166 PixelTestPage( | 166 PixelTestPage( |
167 'pixel_acceleratedOffscreen2d_commit_main.html', | 167 'pixel_offscreenCanvas_2d_commit_main.html', |
168 base_name + '_OffscreenCanvasAccelerated2D', | 168 base_name + '_OffscreenCanvasAccelerated2D', |
169 test_rect=[0, 0, 350, 350], | 169 test_rect=[0, 0, 350, 350], |
170 revision=1, | 170 revision=1, |
171 browser_args=browser_args), | 171 browser_args=browser_args), |
172 | 172 |
173 PixelTestPage( | 173 PixelTestPage( |
174 'pixel_acceleratedOffscreen2d_commit_worker.html', | 174 'pixel_offscreenCanvas_2d_commit_worker.html', |
175 base_name + '_OffscreenCanvasAccelerated2DWorker', | 175 base_name + '_OffscreenCanvasAccelerated2DWorker', |
176 test_rect=[0, 0, 350, 350], | 176 test_rect=[0, 0, 350, 350], |
177 revision=1, | 177 revision=1, |
178 browser_args=browser_args), | 178 browser_args=browser_args), |
| 179 |
| 180 PixelTestPage( |
| 181 'pixel_offscreenCanvas_2d_commit_main.html', |
| 182 base_name + '_OffscreenCanvasUnaccelerated2D', |
| 183 test_rect=[0, 0, 350, 350], |
| 184 revision=1, |
| 185 browser_args=browser_args + [ |
| 186 '--disable-accelerated-2d-canvas', |
| 187 '--disable-gpu-compositing']), |
179 ] | 188 ] |
180 | 189 |
| 190 |
181 # Pages that should be run with various macOS specific command line | 191 # Pages that should be run with various macOS specific command line |
182 # arguments. | 192 # arguments. |
183 def MacSpecificPages(base_name): | 193 def MacSpecificPages(base_name): |
184 iosurface_2d_canvas_args = [ | 194 iosurface_2d_canvas_args = [ |
185 '--enable-accelerated-2d-canvas', | 195 '--enable-accelerated-2d-canvas', |
186 '--disable-display-list-2d-canvas'] | 196 '--disable-display-list-2d-canvas'] |
187 | 197 |
188 non_chromium_image_args = ['--disable-webgl-image-chromium'] | 198 non_chromium_image_args = ['--disable-webgl-image-chromium'] |
189 | 199 |
190 return [ | 200 return [ |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 test_rect=[0, 0, 300, 300], | 245 test_rect=[0, 0, 300, 300], |
236 revision=2), | 246 revision=2), |
237 PixelTestPage( | 247 PixelTestPage( |
238 'filter_effects.html', | 248 'filter_effects.html', |
239 base_name + '_CSSFilterEffects_NoOverlays', | 249 base_name + '_CSSFilterEffects_NoOverlays', |
240 test_rect=[0, 0, 300, 300], | 250 test_rect=[0, 0, 300, 300], |
241 revision=2, | 251 revision=2, |
242 tolerance=10, | 252 tolerance=10, |
243 browser_args=['--disable-mac-overlays']), | 253 browser_args=['--disable-mac-overlays']), |
244 ] | 254 ] |
OLD | NEW |