| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 | 135 |
| 136 # Pages that should be run with experimental canvas features. | 136 # Pages that should be run with experimental canvas features. |
| 137 def ExperimentalCanvasFeaturesPages(base_name): | 137 def ExperimentalCanvasFeaturesPages(base_name): |
| 138 browser_args = ['--enable-experimental-canvas-features'] | 138 browser_args = ['--enable-experimental-canvas-features'] |
| 139 unaccelerated_args = [ | 139 unaccelerated_args = [ |
| 140 '--disable-accelerated-2d-canvas', | 140 '--disable-accelerated-2d-canvas', |
| 141 '--disable-gpu-compositing'] | 141 '--disable-gpu-compositing'] |
| 142 | 142 |
| 143 return [ | 143 return [ |
| 144 PixelTestPage( | 144 PixelTestPage( |
| 145 'pixel_offscreenCanvas_transfer_after_style_resize.html', |
| 146 base_name + '_OffscreenCanvasTransferAfterStyleResize', |
| 147 test_rect=[0, 0, 350, 350], |
| 148 revision=1, |
| 149 browser_args=browser_args), |
| 150 |
| 151 PixelTestPage( |
| 152 'pixel_offscreenCanvas_transfer_before_style_resize.html', |
| 153 base_name + '_OffscreenCanvasTransferBeforeStyleResize', |
| 154 test_rect=[0, 0, 350, 350], |
| 155 revision=1, |
| 156 browser_args=browser_args), |
| 157 |
| 158 PixelTestPage( |
| 145 'pixel_offscreenCanvas_transferToImageBitmap_main.html', | 159 'pixel_offscreenCanvas_transferToImageBitmap_main.html', |
| 146 base_name + '_OffscreenCanvasTransferToImageBitmap', | 160 base_name + '_OffscreenCanvasTransferToImageBitmap', |
| 147 test_rect=[0, 0, 300, 300], | 161 test_rect=[0, 0, 300, 300], |
| 148 revision=1, | 162 revision=1, |
| 149 browser_args=browser_args), | 163 browser_args=browser_args), |
| 150 | 164 |
| 151 PixelTestPage( | 165 PixelTestPage( |
| 152 'pixel_offscreenCanvas_transferToImageBitmap_worker.html', | 166 'pixel_offscreenCanvas_transferToImageBitmap_worker.html', |
| 153 base_name + '_OffscreenCanvasTransferToImageBitmapWorker', | 167 base_name + '_OffscreenCanvasTransferToImageBitmapWorker', |
| 154 test_rect=[0, 0, 300, 300], | 168 test_rect=[0, 0, 300, 300], |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 test_rect=[0, 0, 300, 300], | 319 test_rect=[0, 0, 300, 300], |
| 306 revision=3), | 320 revision=3), |
| 307 PixelTestPage( | 321 PixelTestPage( |
| 308 'filter_effects.html', | 322 'filter_effects.html', |
| 309 base_name + '_CSSFilterEffects_NoOverlays', | 323 base_name + '_CSSFilterEffects_NoOverlays', |
| 310 test_rect=[0, 0, 300, 300], | 324 test_rect=[0, 0, 300, 300], |
| 311 revision=3, | 325 revision=3, |
| 312 tolerance=10, | 326 tolerance=10, |
| 313 browser_args=['--disable-mac-overlays']), | 327 browser_args=['--disable-mac-overlays']), |
| 314 ] | 328 ] |
| OLD | NEW |