| 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 tolerance=2, browser_args=None, expected_colors=None): | 10 tolerance=2, browser_args=None, expected_colors=None): |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 | 270 |
| 271 # Pages that should be run with experimental canvas features. | 271 # Pages that should be run with experimental canvas features. |
| 272 def ExperimentalCanvasFeaturesPages(base_name): | 272 def ExperimentalCanvasFeaturesPages(base_name): |
| 273 browser_args = ['--enable-experimental-canvas-features'] | 273 browser_args = ['--enable-experimental-canvas-features'] |
| 274 unaccelerated_args = [ | 274 unaccelerated_args = [ |
| 275 '--disable-accelerated-2d-canvas', | 275 '--disable-accelerated-2d-canvas', |
| 276 '--disable-gpu-compositing'] | 276 '--disable-gpu-compositing'] |
| 277 | 277 |
| 278 return [ | 278 return [ |
| 279 PixelTestPage( | 279 PixelTestPage( |
| 280 'pixel_offscreenCanvas_commit_frameless_doc.html', |
| 281 base_name + '_OffscreenCanvasForFramelessDocument', |
| 282 test_rect=[0, 0, 50, 50], |
| 283 revision=1, |
| 284 browser_args=browser_args), |
| 285 |
| 286 PixelTestPage( |
| 280 'pixel_offscreenCanvas_transfer_after_style_resize.html', | 287 'pixel_offscreenCanvas_transfer_after_style_resize.html', |
| 281 base_name + '_OffscreenCanvasTransferAfterStyleResize', | 288 base_name + '_OffscreenCanvasTransferAfterStyleResize', |
| 282 test_rect=[0, 0, 350, 350], | 289 test_rect=[0, 0, 350, 350], |
| 283 revision=1, | 290 revision=1, |
| 284 browser_args=browser_args), | 291 browser_args=browser_args), |
| 285 | 292 |
| 286 PixelTestPage( | 293 PixelTestPage( |
| 287 'pixel_offscreenCanvas_transfer_before_style_resize.html', | 294 'pixel_offscreenCanvas_transfer_before_style_resize.html', |
| 288 base_name + '_OffscreenCanvasTransferBeforeStyleResize', | 295 base_name + '_OffscreenCanvasTransferBeforeStyleResize', |
| 289 test_rect=[0, 0, 350, 350], | 296 test_rect=[0, 0, 350, 350], |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 test_rect=[0, 0, 300, 300], | 475 test_rect=[0, 0, 300, 300], |
| 469 revision=4), | 476 revision=4), |
| 470 PixelTestPage( | 477 PixelTestPage( |
| 471 'filter_effects.html', | 478 'filter_effects.html', |
| 472 base_name + '_CSSFilterEffects_NoOverlays', | 479 base_name + '_CSSFilterEffects_NoOverlays', |
| 473 test_rect=[0, 0, 300, 300], | 480 test_rect=[0, 0, 300, 300], |
| 474 revision=4, | 481 revision=4, |
| 475 tolerance=10, | 482 tolerance=10, |
| 476 browser_args=['--disable-mac-overlays']), | 483 browser_args=['--disable-mac-overlays']), |
| 477 ] | 484 ] |
| OLD | NEW |