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

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

Issue 2495373003: Match html canvas which is transferred to OffscreenCanvas to CSS style (Closed)
Patch Set: fix Created 4 years 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 # Pages that should be run with experimental canvas features. 130 # Pages that should be run with experimental canvas features.
131 def ExperimentalCanvasFeaturesPages(base_name): 131 def ExperimentalCanvasFeaturesPages(base_name):
132 browser_args = ['--enable-experimental-canvas-features'] 132 browser_args = ['--enable-experimental-canvas-features']
133 unaccelerated_args = [ 133 unaccelerated_args = [
134 '--disable-accelerated-2d-canvas', 134 '--disable-accelerated-2d-canvas',
135 '--disable-gpu-compositing'] 135 '--disable-gpu-compositing']
136 136
137 return [ 137 return [
138 PixelTestPage( 138 PixelTestPage(
139 'pixel_offscreenCanvas_transfer_after_style_resize.html',
140 base_name + '_OffscreenCanvasTransferAfterStyleResize',
141 test_rect=[0, 0, 350, 350],
142 revision=1,
143 browser_args=browser_args),
144
145 PixelTestPage(
146 'pixel_offscreenCanvas_transfer_before_style_resize.html',
147 base_name + '_OffscreenCanvasTransferBeforeStyleResize',
148 test_rect=[0, 0, 350, 350],
149 revision=1,
150 browser_args=browser_args),
151
152 PixelTestPage(
139 'pixel_offscreenCanvas_transferToImageBitmap_main.html', 153 'pixel_offscreenCanvas_transferToImageBitmap_main.html',
140 base_name + '_OffscreenCanvasTransferToImageBitmap', 154 base_name + '_OffscreenCanvasTransferToImageBitmap',
141 test_rect=[0, 0, 300, 300], 155 test_rect=[0, 0, 300, 300],
142 revision=1, 156 revision=1,
143 browser_args=browser_args), 157 browser_args=browser_args),
144 158
145 PixelTestPage( 159 PixelTestPage(
146 'pixel_offscreenCanvas_transferToImageBitmap_worker.html', 160 'pixel_offscreenCanvas_transferToImageBitmap_worker.html',
147 base_name + '_OffscreenCanvasTransferToImageBitmapWorker', 161 base_name + '_OffscreenCanvasTransferToImageBitmapWorker',
148 test_rect=[0, 0, 300, 300], 162 test_rect=[0, 0, 300, 300],
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 test_rect=[0, 0, 300, 300], 313 test_rect=[0, 0, 300, 300],
300 revision=3), 314 revision=3),
301 PixelTestPage( 315 PixelTestPage(
302 'filter_effects.html', 316 'filter_effects.html',
303 base_name + '_CSSFilterEffects_NoOverlays', 317 base_name + '_CSSFilterEffects_NoOverlays',
304 test_rect=[0, 0, 300, 300], 318 test_rect=[0, 0, 300, 300],
305 revision=3, 319 revision=3,
306 tolerance=10, 320 tolerance=10,
307 browser_args=['--disable-mac-overlays']), 321 browser_args=['--disable-mac-overlays']),
308 ] 322 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698