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

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

Issue 2811993003: Shrink OffscreenCanvas commit pixel tests' test rect dimension (Closed)
Patch Set: comment Created 3 years, 8 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 tolerance=2, browser_args=None, expected_colors=None): 10 tolerance=2, browser_args=None, expected_colors=None):
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 PixelTestPage( 312 PixelTestPage(
313 'pixel_offscreenCanvas_transferToImageBitmap_worker.html', 313 'pixel_offscreenCanvas_transferToImageBitmap_worker.html',
314 base_name + '_OffscreenCanvasTransferToImageBitmapWorker', 314 base_name + '_OffscreenCanvasTransferToImageBitmapWorker',
315 test_rect=[0, 0, 300, 300], 315 test_rect=[0, 0, 300, 300],
316 revision=2, 316 revision=2,
317 browser_args=browser_args), 317 browser_args=browser_args),
318 318
319 PixelTestPage( 319 PixelTestPage(
320 'pixel_offscreenCanvas_webgl_commit_main.html', 320 'pixel_offscreenCanvas_webgl_commit_main.html',
321 base_name + '_OffscreenCanvasWebGLDefault', 321 base_name + '_OffscreenCanvasWebGLDefault',
322 test_rect=[0, 0, 400, 200], 322 test_rect=[0, 0, 360, 200],
323 revision=3, 323 revision=4,
324 browser_args=browser_args), 324 browser_args=browser_args),
325 325
326 PixelTestPage( 326 PixelTestPage(
327 'pixel_offscreenCanvas_webgl_commit_worker.html', 327 'pixel_offscreenCanvas_webgl_commit_worker.html',
328 base_name + '_OffscreenCanvasWebGLDefaultWorker', 328 base_name + '_OffscreenCanvasWebGLDefaultWorker',
329 test_rect=[0, 0, 400, 200], 329 test_rect=[0, 0, 360, 200],
330 revision=3, 330 revision=4,
331 browser_args=browser_args), 331 browser_args=browser_args),
332 332
333 PixelTestPage( 333 PixelTestPage(
334 'pixel_offscreenCanvas_webgl_commit_main.html', 334 'pixel_offscreenCanvas_webgl_commit_main.html',
335 base_name + '_OffscreenCanvasWebGLSoftwareCompositing', 335 base_name + '_OffscreenCanvasWebGLSoftwareCompositing',
336 test_rect=[0, 0, 400, 200], 336 test_rect=[0, 0, 360, 200],
337 revision=4, 337 revision=5,
338 browser_args=browser_args + ['--disable-gpu-compositing']), 338 browser_args=browser_args + ['--disable-gpu-compositing']),
339 339
340 PixelTestPage( 340 PixelTestPage(
341 'pixel_offscreenCanvas_webgl_commit_worker.html', 341 'pixel_offscreenCanvas_webgl_commit_worker.html',
342 base_name + '_OffscreenCanvasWebGLSoftwareCompositingWorker', 342 base_name + '_OffscreenCanvasWebGLSoftwareCompositingWorker',
343 test_rect=[0, 0, 400, 200], 343 test_rect=[0, 0, 360, 200],
344 revision=4, 344 revision=5,
345 browser_args=browser_args + ['--disable-gpu-compositing']), 345 browser_args=browser_args + ['--disable-gpu-compositing']),
346 346
347 PixelTestPage( 347 PixelTestPage(
348 'pixel_offscreenCanvas_2d_commit_main.html', 348 'pixel_offscreenCanvas_2d_commit_main.html',
349 base_name + '_OffscreenCanvasAccelerated2D', 349 base_name + '_OffscreenCanvasAccelerated2D',
350 test_rect=[0, 0, 400, 200], 350 test_rect=[0, 0, 360, 200],
351 revision=5, 351 revision=6,
352 browser_args=browser_args), 352 browser_args=browser_args),
353 353
354 PixelTestPage( 354 PixelTestPage(
355 'pixel_offscreenCanvas_2d_commit_worker.html', 355 'pixel_offscreenCanvas_2d_commit_worker.html',
356 base_name + '_OffscreenCanvasAccelerated2DWorker', 356 base_name + '_OffscreenCanvasAccelerated2DWorker',
357 test_rect=[0, 0, 400, 200], 357 test_rect=[0, 0, 360, 200],
358 revision=5, 358 revision=6,
359 browser_args=browser_args), 359 browser_args=browser_args),
360 360
361 PixelTestPage( 361 PixelTestPage(
362 'pixel_offscreenCanvas_2d_commit_main.html', 362 'pixel_offscreenCanvas_2d_commit_main.html',
363 base_name + '_OffscreenCanvasUnaccelerated2D', 363 base_name + '_OffscreenCanvasUnaccelerated2D',
364 test_rect=[0, 0, 400, 200], 364 test_rect=[0, 0, 360, 200],
365 revision=4, 365 revision=5,
366 browser_args=browser_args + unaccelerated_args), 366 browser_args=browser_args + unaccelerated_args),
367 367
368 PixelTestPage( 368 PixelTestPage(
369 'pixel_offscreenCanvas_2d_commit_worker.html', 369 'pixel_offscreenCanvas_2d_commit_worker.html',
370 base_name + '_OffscreenCanvasUnaccelerated2DWorker', 370 base_name + '_OffscreenCanvasUnaccelerated2DWorker',
371 test_rect=[0, 0, 400, 200], 371 test_rect=[0, 0, 360, 200],
372 revision=4, 372 revision=5,
373 browser_args=browser_args + unaccelerated_args), 373 browser_args=browser_args + unaccelerated_args),
374 374
375 PixelTestPage( 375 PixelTestPage(
376 'pixel_offscreenCanvas_2d_commit_main.html', 376 'pixel_offscreenCanvas_2d_commit_main.html',
377 base_name + '_OffscreenCanvasUnaccelerated2DGPUCompositing', 377 base_name + '_OffscreenCanvasUnaccelerated2DGPUCompositing',
378 test_rect=[0, 0, 400, 200], 378 test_rect=[0, 0, 360, 200],
379 revision=6, 379 revision=7,
380 browser_args=browser_args + ['--disable-accelerated-2d-canvas']), 380 browser_args=browser_args + ['--disable-accelerated-2d-canvas']),
381 381
382 PixelTestPage( 382 PixelTestPage(
383 'pixel_offscreenCanvas_2d_commit_worker.html', 383 'pixel_offscreenCanvas_2d_commit_worker.html',
384 base_name + '_OffscreenCanvasUnaccelerated2DGPUCompositingWorker', 384 base_name + '_OffscreenCanvasUnaccelerated2DGPUCompositingWorker',
385 test_rect=[0, 0, 400, 200], 385 test_rect=[0, 0, 360, 200],
386 revision=6, 386 revision=7,
387 browser_args=browser_args + ['--disable-accelerated-2d-canvas']), 387 browser_args=browser_args + ['--disable-accelerated-2d-canvas']),
388 388
389 PixelTestPage( 389 PixelTestPage(
390 'pixel_offscreenCanvas_2d_resize_on_worker.html', 390 'pixel_offscreenCanvas_2d_resize_on_worker.html',
391 base_name + '_OffscreenCanvas2DResizeOnWorker', 391 base_name + '_OffscreenCanvas2DResizeOnWorker',
392 test_rect=[0, 0, 200, 200], 392 test_rect=[0, 0, 200, 200],
393 revision=2, 393 revision=2,
394 browser_args=browser_args), 394 browser_args=browser_args),
395 395
396 PixelTestPage( 396 PixelTestPage(
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 revision=1, 498 revision=1,
499 browser_args=browser_args), 499 browser_args=browser_args),
500 500
501 PixelTestPage( 501 PixelTestPage(
502 'pixel_video_vp9.html', 502 'pixel_video_vp9.html',
503 base_name + '_DirectComposition_Video_VP9', 503 base_name + '_DirectComposition_Video_VP9',
504 test_rect=[0, 0, 300, 300], 504 test_rect=[0, 0, 300, 300],
505 revision=1, 505 revision=1,
506 browser_args=browser_args), 506 browser_args=browser_args),
507 ] 507 ]
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