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

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

Issue 2448583002: Adding browser pixel test for linear-rgb support in Canvas. (Closed)
Patch Set: Addressing comments. Created 4 years, 1 month 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 test_rect=[0, 0, 300, 300], 214 test_rect=[0, 0, 300, 300],
215 revision=3, 215 revision=3,
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, 300, 300], 221 test_rect=[0, 0, 300, 300],
222 revision=3, 222 revision=3,
223 browser_args=browser_args + ['--disable-accelerated-2d-canvas']), 223 browser_args=browser_args + ['--disable-accelerated-2d-canvas']),
224 ] 224
225 PixelTestPage(
226 'pixel_canvas_display_linear-rgb.html',
227 base_name + '_CanvasDisplayLinearRGBAccelerated2D',
228 test_rect=[0, 0, 140, 140],
229 revision=1,
230 browser_args=browser_args),
231
232 PixelTestPage(
233 'pixel_canvas_display_linear-rgb.html',
234 base_name + '_CanvasDisplayLinearRGBUnaccelerated2D',
235 test_rect=[0, 0, 140, 140],
236 revision=1,
237 browser_args=browser_args + unaccelerated_args),
238
239 PixelTestPage(
240 'pixel_canvas_display_linear-rgb.html',
241 base_name + '_CanvasDisplayLinearRGBUnaccelerated2DGPUCompositing',
242 test_rect=[0, 0, 140, 140],
243 revision=1,
244 browser_args=browser_args + ['--disable-accelerated-2d-canvas']),
245 ]
225 246
226 247
227 # Pages that should be run with various macOS specific command line 248 # Pages that should be run with various macOS specific command line
228 # arguments. 249 # arguments.
229 def MacSpecificPages(base_name): 250 def MacSpecificPages(base_name):
230 iosurface_2d_canvas_args = [ 251 iosurface_2d_canvas_args = [
231 '--enable-accelerated-2d-canvas', 252 '--enable-accelerated-2d-canvas',
232 '--disable-display-list-2d-canvas'] 253 '--disable-display-list-2d-canvas']
233 254
234 non_chromium_image_args = ['--disable-webgl-image-chromium'] 255 non_chromium_image_args = ['--disable-webgl-image-chromium']
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 test_rect=[0, 0, 300, 300], 302 test_rect=[0, 0, 300, 300],
282 revision=2), 303 revision=2),
283 PixelTestPage( 304 PixelTestPage(
284 'filter_effects.html', 305 'filter_effects.html',
285 base_name + '_CSSFilterEffects_NoOverlays', 306 base_name + '_CSSFilterEffects_NoOverlays',
286 test_rect=[0, 0, 300, 300], 307 test_rect=[0, 0, 300, 300],
287 revision=2, 308 revision=2,
288 tolerance=10, 309 tolerance=10,
289 browser_args=['--disable-mac-overlays']), 310 browser_args=['--disable-mac-overlays']),
290 ] 311 ]
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