Chromium Code Reviews| 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 233 browser_args=browser_args + ['--disable-accelerated-2d-canvas']), | 233 browser_args=browser_args + ['--disable-accelerated-2d-canvas']), |
| 234 | 234 |
| 235 PixelTestPage( | 235 PixelTestPage( |
| 236 'pixel_offscreenCanvas_2d_commit_worker.html', | 236 'pixel_offscreenCanvas_2d_commit_worker.html', |
| 237 base_name + '_OffscreenCanvasUnaccelerated2DGPUCompositingWorker', | 237 base_name + '_OffscreenCanvasUnaccelerated2DGPUCompositingWorker', |
| 238 test_rect=[0, 0, 300, 300], | 238 test_rect=[0, 0, 300, 300], |
| 239 revision=4, | 239 revision=4, |
| 240 browser_args=browser_args + ['--disable-accelerated-2d-canvas']), | 240 browser_args=browser_args + ['--disable-accelerated-2d-canvas']), |
| 241 | 241 |
| 242 PixelTestPage( | 242 PixelTestPage( |
| 243 'pixel_offscreenCanvas_2d_resize.html', | |
| 244 base_name + '_OffscreenCanvas2DResize', | |
|
Ken Russell (switch to Gerrit)
2016/12/20 06:01:24
Same naming question: perhaps ResizeOnWorker?
xlai (Olivia)
2016/12/20 18:13:39
Done.
| |
| 245 test_rect=[0, 0, 200, 200], | |
| 246 revision=1, | |
| 247 browser_args=browser_args), | |
| 248 | |
| 249 PixelTestPage( | |
| 250 'pixel_offscreenCanvas_webgl_resize.html', | |
| 251 base_name + '_OffscreenCanvasWebglResize', | |
| 252 test_rect=[0, 0, 200, 200], | |
| 253 revision=1, | |
| 254 browser_args=browser_args), | |
| 255 | |
| 256 PixelTestPage( | |
| 243 'pixel_canvas_display_linear-rgb.html', | 257 'pixel_canvas_display_linear-rgb.html', |
| 244 base_name + '_CanvasDisplayLinearRGBAccelerated2D', | 258 base_name + '_CanvasDisplayLinearRGBAccelerated2D', |
| 245 test_rect=[0, 0, 140, 140], | 259 test_rect=[0, 0, 140, 140], |
| 246 revision=1, | 260 revision=1, |
| 247 browser_args=browser_args), | 261 browser_args=browser_args), |
| 248 | 262 |
| 249 PixelTestPage( | 263 PixelTestPage( |
| 250 'pixel_canvas_display_linear-rgb.html', | 264 'pixel_canvas_display_linear-rgb.html', |
| 251 base_name + '_CanvasDisplayLinearRGBUnaccelerated2D', | 265 base_name + '_CanvasDisplayLinearRGBUnaccelerated2D', |
| 252 test_rect=[0, 0, 140, 140], | 266 test_rect=[0, 0, 140, 140], |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 319 test_rect=[0, 0, 300, 300], | 333 test_rect=[0, 0, 300, 300], |
| 320 revision=4), | 334 revision=4), |
| 321 PixelTestPage( | 335 PixelTestPage( |
| 322 'filter_effects.html', | 336 'filter_effects.html', |
| 323 base_name + '_CSSFilterEffects_NoOverlays', | 337 base_name + '_CSSFilterEffects_NoOverlays', |
| 324 test_rect=[0, 0, 300, 300], | 338 test_rect=[0, 0, 300, 300], |
| 325 revision=4, | 339 revision=4, |
| 326 tolerance=10, | 340 tolerance=10, |
| 327 browser_args=['--disable-mac-overlays']), | 341 browser_args=['--disable-mac-overlays']), |
| 328 ] | 342 ] |
| OLD | NEW |