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 ] | 179 ] |
180 | 180 |
181 # Pages that should be run with software compositing path and | |
182 # experimental canvas features | |
183 def SoftwareOffscreenCanvas2dPages(base_name): | |
184 browser_args = [ | |
185 '--enable-experimental-canvas-features', | |
186 '--disable-accelerated-2d-canvas', | |
187 '--disable-gpu-compositing'] | |
188 | |
189 return [ | |
190 PixelTestPage( | |
Ken Russell (switch to Gerrit)
2016/09/30 20:00:45
Could you just add this to the above ExperimentalC
| |
191 'pixel_offscreenCanvas_2d_commit_main.html', | |
192 base_name + '_OffscreenCanvasUnaccelerated2D', | |
193 test_rect=[0, 0, 350, 350], | |
194 revision=1, | |
195 browser_args=browser_args), | |
196 ] | |
197 | |
181 # Pages that should be run with various macOS specific command line | 198 # Pages that should be run with various macOS specific command line |
182 # arguments. | 199 # arguments. |
183 def MacSpecificPages(base_name): | 200 def MacSpecificPages(base_name): |
184 iosurface_2d_canvas_args = [ | 201 iosurface_2d_canvas_args = [ |
185 '--enable-accelerated-2d-canvas', | 202 '--enable-accelerated-2d-canvas', |
186 '--disable-display-list-2d-canvas'] | 203 '--disable-display-list-2d-canvas'] |
187 | 204 |
188 non_chromium_image_args = ['--disable-webgl-image-chromium'] | 205 non_chromium_image_args = ['--disable-webgl-image-chromium'] |
189 | 206 |
190 return [ | 207 return [ |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
235 test_rect=[0, 0, 300, 300], | 252 test_rect=[0, 0, 300, 300], |
236 revision=2), | 253 revision=2), |
237 PixelTestPage( | 254 PixelTestPage( |
238 'filter_effects.html', | 255 'filter_effects.html', |
239 base_name + '_CSSFilterEffects_NoOverlays', | 256 base_name + '_CSSFilterEffects_NoOverlays', |
240 test_rect=[0, 0, 300, 300], | 257 test_rect=[0, 0, 300, 300], |
241 revision=2, | 258 revision=2, |
242 tolerance=10, | 259 tolerance=10, |
243 browser_args=['--disable-mac-overlays']), | 260 browser_args=['--disable-mac-overlays']), |
244 ] | 261 ] |
OLD | NEW |