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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 browser_args=['--disable-mac-overlays']), | 494 browser_args=['--disable-mac-overlays']), |
495 ] | 495 ] |
496 | 496 |
497 def DirectCompositionPages(base_name): | 497 def DirectCompositionPages(base_name): |
498 browser_args = ['--enable-direct-composition-layers'] | 498 browser_args = ['--enable-direct-composition-layers'] |
499 return [ | 499 return [ |
500 PixelTestPage( | 500 PixelTestPage( |
501 'pixel_video_mp4.html', | 501 'pixel_video_mp4.html', |
502 base_name + '_DirectComposition_Video_MP4', | 502 base_name + '_DirectComposition_Video_MP4', |
503 test_rect=[0, 0, 300, 300], | 503 test_rect=[0, 0, 300, 300], |
504 revision=2, | 504 revision=3, |
505 browser_args=browser_args), | 505 browser_args=browser_args), |
506 | 506 |
507 PixelTestPage( | 507 PixelTestPage( |
508 'pixel_video_vp9.html', | 508 'pixel_video_vp9.html', |
509 base_name + '_DirectComposition_Video_VP9', | 509 base_name + '_DirectComposition_Video_VP9', |
510 test_rect=[0, 0, 300, 300], | 510 test_rect=[0, 0, 300, 300], |
511 revision=3, | 511 revision=3, |
512 browser_args=browser_args), | 512 browser_args=browser_args), |
513 ] | 513 ] |
OLD | NEW |