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

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

Issue 2944733002: Force sRGB color profile on Mac for pixel tests (Closed)
Patch Set: All platforms 3rd try Created 3 years, 6 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_integration_test.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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 PixelTestPage( 134 PixelTestPage(
135 'pixel_background.html', 135 'pixel_background.html',
136 base_name + '_SolidColorBackground', 136 base_name + '_SolidColorBackground',
137 test_rect=[500, 500, 100, 100], 137 test_rect=[500, 500, 100, 100],
138 revision=1), 138 revision=1),
139 139
140 PixelTestPage( 140 PixelTestPage(
141 'pixel_video_mp4.html', 141 'pixel_video_mp4.html',
142 base_name + '_Video_MP4', 142 base_name + '_Video_MP4',
143 test_rect=[0, 0, 300, 300], 143 test_rect=[0, 0, 300, 300],
144 revision=2), 144 revision=3),
145 145
146 PixelTestPage( 146 PixelTestPage(
147 'pixel_video_vp9.html', 147 'pixel_video_vp9.html',
148 base_name + '_Video_VP9', 148 base_name + '_Video_VP9',
149 test_rect=[0, 0, 300, 300], 149 test_rect=[0, 0, 300, 300],
150 revision=2), 150 revision=3),
151 ] 151 ]
152 152
153 153
154 # Pages that should be run with GPU rasterization enabled. 154 # Pages that should be run with GPU rasterization enabled.
155 def GpuRasterizationPages(base_name): 155 def GpuRasterizationPages(base_name):
156 browser_args = ['--force-gpu-rasterization'] 156 browser_args = ['--force-gpu-rasterization']
157 return [ 157 return [
158 PixelTestPage( 158 PixelTestPage(
159 'pixel_background.html', 159 'pixel_background.html',
160 base_name + '_GpuRasterization_BlueBox', 160 base_name + '_GpuRasterization_BlueBox',
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 revision=3, 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 ]
OLDNEW
« no previous file with comments | « content/test/gpu/gpu_tests/pixel_integration_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698