Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: content/test/gpu/gpu_tests/pixel_test_pages.py

Issue 2416953002: Improve gpu pixel tests for OffscreenCanvas 2d (Closed)
Patch Set: fix Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/test/gpu/gpu_tests/pixel_expectations.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 PixelTestPage( 176 PixelTestPage(
177 'pixel_offscreenCanvas_webgl_commit_worker.html', 177 'pixel_offscreenCanvas_webgl_commit_worker.html',
178 base_name + '_OffscreenCanvasWebGLSoftwareCompositingWorker', 178 base_name + '_OffscreenCanvasWebGLSoftwareCompositingWorker',
179 test_rect=[0, 0, 300, 300], 179 test_rect=[0, 0, 300, 300],
180 revision=1, 180 revision=1,
181 browser_args=browser_args + ['--disable-gpu-compositing']), 181 browser_args=browser_args + ['--disable-gpu-compositing']),
182 182
183 PixelTestPage( 183 PixelTestPage(
184 'pixel_offscreenCanvas_2d_commit_main.html', 184 'pixel_offscreenCanvas_2d_commit_main.html',
185 base_name + '_OffscreenCanvasAccelerated2D', 185 base_name + '_OffscreenCanvasAccelerated2D',
186 test_rect=[0, 0, 350, 350], 186 test_rect=[0, 0, 300, 300],
187 revision=1, 187 revision=2,
188 browser_args=browser_args), 188 browser_args=browser_args),
189 189
190 PixelTestPage( 190 PixelTestPage(
191 'pixel_offscreenCanvas_2d_commit_worker.html', 191 'pixel_offscreenCanvas_2d_commit_worker.html',
192 base_name + '_OffscreenCanvasAccelerated2DWorker', 192 base_name + '_OffscreenCanvasAccelerated2DWorker',
193 test_rect=[0, 0, 350, 350], 193 test_rect=[0, 0, 300, 300],
194 revision=1, 194 revision=2,
195 browser_args=browser_args), 195 browser_args=browser_args),
196 196
197 PixelTestPage( 197 PixelTestPage(
198 'pixel_offscreenCanvas_2d_commit_main.html', 198 'pixel_offscreenCanvas_2d_commit_main.html',
199 base_name + '_OffscreenCanvasUnaccelerated2D', 199 base_name + '_OffscreenCanvasUnaccelerated2D',
200 test_rect=[0, 0, 350, 350], 200 test_rect=[0, 0, 300, 300],
201 revision=1, 201 revision=2,
202 browser_args=browser_args + unaccelerated_args), 202 browser_args=browser_args + unaccelerated_args),
203 203
204 PixelTestPage( 204 PixelTestPage(
205 'pixel_offscreenCanvas_2d_commit_worker.html', 205 'pixel_offscreenCanvas_2d_commit_worker.html',
206 base_name + '_OffscreenCanvasUnaccelerated2DWorker', 206 base_name + '_OffscreenCanvasUnaccelerated2DWorker',
207 test_rect=[0, 0, 350, 350], 207 test_rect=[0, 0, 300, 300],
208 revision=1, 208 revision=2,
209 browser_args=browser_args + unaccelerated_args), 209 browser_args=browser_args + unaccelerated_args),
210 210
211 PixelTestPage( 211 PixelTestPage(
212 'pixel_offscreenCanvas_2d_commit_main.html', 212 'pixel_offscreenCanvas_2d_commit_main.html',
213 base_name + '_OffscreenCanvasUnaccelerated2DGPUCompositing', 213 base_name + '_OffscreenCanvasUnaccelerated2DGPUCompositing',
214 test_rect=[0, 0, 350, 350], 214 test_rect=[0, 0, 300, 300],
215 revision=1, 215 revision=2,
216 browser_args=browser_args + ['--disable-accelerated-2d-canvas']), 216 browser_args=browser_args + ['--disable-accelerated-2d-canvas']),
217 217
218 PixelTestPage( 218 PixelTestPage(
219 'pixel_offscreenCanvas_2d_commit_worker.html', 219 'pixel_offscreenCanvas_2d_commit_worker.html',
220 base_name + '_OffscreenCanvasUnaccelerated2DGPUCompositingWorker', 220 base_name + '_OffscreenCanvasUnaccelerated2DGPUCompositingWorker',
221 test_rect=[0, 0, 350, 350], 221 test_rect=[0, 0, 300, 300],
222 revision=1, 222 revision=2,
223 browser_args=browser_args + ['--disable-accelerated-2d-canvas']), 223 browser_args=browser_args + ['--disable-accelerated-2d-canvas']),
224 ] 224 ]
225 225
226 226
227 # Pages that should be run with various macOS specific command line 227 # Pages that should be run with various macOS specific command line
228 # arguments. 228 # arguments.
229 def MacSpecificPages(base_name): 229 def MacSpecificPages(base_name):
230 iosurface_2d_canvas_args = [ 230 iosurface_2d_canvas_args = [
231 '--enable-accelerated-2d-canvas', 231 '--enable-accelerated-2d-canvas',
232 '--disable-display-list-2d-canvas'] 232 '--disable-display-list-2d-canvas']
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 test_rect=[0, 0, 300, 300], 281 test_rect=[0, 0, 300, 300],
282 revision=2), 282 revision=2),
283 PixelTestPage( 283 PixelTestPage(
284 'filter_effects.html', 284 'filter_effects.html',
285 base_name + '_CSSFilterEffects_NoOverlays', 285 base_name + '_CSSFilterEffects_NoOverlays',
286 test_rect=[0, 0, 300, 300], 286 test_rect=[0, 0, 300, 300],
287 revision=2, 287 revision=2,
288 tolerance=10, 288 tolerance=10,
289 browser_args=['--disable-mac-overlays']), 289 browser_args=['--disable-mac-overlays']),
290 ] 290 ]
OLDNEW
« no previous file with comments | « content/test/gpu/gpu_tests/pixel_expectations.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698