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

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

Issue 2473933002: Enable WebGL 2 by default! (on desktop) (Closed)
Patch Set: undo rename of GpuPreferences::enable_unsafe_es3_apis 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
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 28 matching lines...) Expand all
39 def CopyPagesWithNewBrowserArgsAndSuffix(pages, browser_args, suffix): 39 def CopyPagesWithNewBrowserArgsAndSuffix(pages, browser_args, suffix):
40 return [ 40 return [
41 p.CopyWithNewBrowserArgsAndSuffix(browser_args, suffix) for p in pages] 41 p.CopyWithNewBrowserArgsAndSuffix(browser_args, suffix) for p in pages]
42 42
43 43
44 def CopyPagesWithNewBrowserArgsAndPrefix(pages, browser_args, prefix): 44 def CopyPagesWithNewBrowserArgsAndPrefix(pages, browser_args, prefix):
45 return [ 45 return [
46 p.CopyWithNewBrowserArgsAndPrefix(browser_args, prefix) for p in pages] 46 p.CopyWithNewBrowserArgsAndPrefix(browser_args, prefix) for p in pages]
47 47
48 48
49 # Pages that should be run both with and without --enable-unsafe-es3-apis. 49 def DefaultPages(base_name):
50 # TODO(kbr): eliminate the "ES3" versions of these tests once WebGL 2.0
51 # is enabled by default. crbug.com/295792
52 def ES2AndES3Pages(base_name):
53 return [ 50 return [
54 PixelTestPage( 51 PixelTestPage(
55 'pixel_canvas2d.html', 52 'pixel_canvas2d.html',
56 base_name + '_Canvas2DRedBox', 53 base_name + '_Canvas2DRedBox',
57 test_rect=[0, 0, 300, 300], 54 test_rect=[0, 0, 300, 300],
58 revision=7), 55 revision=7),
59 56
60 PixelTestPage( 57 PixelTestPage(
61 'pixel_css3d.html', 58 'pixel_css3d.html',
62 base_name + '_CSS3DBlueBox', 59 base_name + '_CSS3DBlueBox',
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 test_rect=[0, 0, 300, 300], 299 test_rect=[0, 0, 300, 300],
303 revision=3), 300 revision=3),
304 PixelTestPage( 301 PixelTestPage(
305 'filter_effects.html', 302 'filter_effects.html',
306 base_name + '_CSSFilterEffects_NoOverlays', 303 base_name + '_CSSFilterEffects_NoOverlays',
307 test_rect=[0, 0, 300, 300], 304 test_rect=[0, 0, 300, 300],
308 revision=3, 305 revision=3,
309 tolerance=10, 306 tolerance=10,
310 browser_args=['--disable-mac-overlays']), 307 browser_args=['--disable-mac-overlays']),
311 ] 308 ]
OLDNEW
« no previous file with comments | « content/test/gpu/gpu_tests/pixel_integration_test.py ('k') | content/test/gpu/gpu_tests/webgl_conformance_integration_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698