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

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

Issue 2382883005: Implement OffscreenCanvas.commit() on Unaccelerated 2D on worker (Closed)
Patch Set: rebase Nits Created 4 years, 2 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
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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 'pixel_background.html', 126 'pixel_background.html',
127 base_name + '_SolidColorBackground', 127 base_name + '_SolidColorBackground',
128 test_rect=[500, 500, 100, 100], 128 test_rect=[500, 500, 100, 100],
129 revision=1), 129 revision=1),
130 ] 130 ]
131 131
132 132
133 # Pages that should be run with experimental canvas features. 133 # Pages that should be run with experimental canvas features.
134 def ExperimentalCanvasFeaturesPages(base_name): 134 def ExperimentalCanvasFeaturesPages(base_name):
135 browser_args = ['--enable-experimental-canvas-features'] 135 browser_args = ['--enable-experimental-canvas-features']
136 unaccelerated_args = [
137 '--disable-accelerated-2d-canvas',
138 '--disable-gpu-compositing']
136 139
137 return [ 140 return [
138 PixelTestPage( 141 PixelTestPage(
139 'pixel_offscreenCanvas_transferToImageBitmap_main.html', 142 'pixel_offscreenCanvas_transferToImageBitmap_main.html',
140 base_name + '_OffscreenCanvasTransferToImageBitmap', 143 base_name + '_OffscreenCanvasTransferToImageBitmap',
141 test_rect=[0, 0, 300, 300], 144 test_rect=[0, 0, 300, 300],
142 revision=1, 145 revision=1,
143 browser_args=browser_args), 146 browser_args=browser_args),
144 147
145 PixelTestPage( 148 PixelTestPage(
(...skipping 29 matching lines...) Expand all
175 base_name + '_OffscreenCanvasAccelerated2DWorker', 178 base_name + '_OffscreenCanvasAccelerated2DWorker',
176 test_rect=[0, 0, 350, 350], 179 test_rect=[0, 0, 350, 350],
177 revision=1, 180 revision=1,
178 browser_args=browser_args), 181 browser_args=browser_args),
179 182
180 PixelTestPage( 183 PixelTestPage(
181 'pixel_offscreenCanvas_2d_commit_main.html', 184 'pixel_offscreenCanvas_2d_commit_main.html',
182 base_name + '_OffscreenCanvasUnaccelerated2D', 185 base_name + '_OffscreenCanvasUnaccelerated2D',
183 test_rect=[0, 0, 350, 350], 186 test_rect=[0, 0, 350, 350],
184 revision=1, 187 revision=1,
185 browser_args=browser_args + [ 188 browser_args=browser_args + unaccelerated_args),
186 '--disable-accelerated-2d-canvas', 189
187 '--disable-gpu-compositing']), 190 PixelTestPage(
191 'pixel_offscreenCanvas_2d_commit_worker.html',
192 base_name + '_OffscreenCanvasUnaccelerated2DWorker',
193 test_rect=[0, 0, 350, 350],
194 revision=1,
195 browser_args=browser_args + unaccelerated_args),
188 ] 196 ]
189 197
190 198
191 # Pages that should be run with various macOS specific command line 199 # Pages that should be run with various macOS specific command line
192 # arguments. 200 # arguments.
193 def MacSpecificPages(base_name): 201 def MacSpecificPages(base_name):
194 iosurface_2d_canvas_args = [ 202 iosurface_2d_canvas_args = [
195 '--enable-accelerated-2d-canvas', 203 '--enable-accelerated-2d-canvas',
196 '--disable-display-list-2d-canvas'] 204 '--disable-display-list-2d-canvas']
197 205
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 test_rect=[0, 0, 300, 300], 253 test_rect=[0, 0, 300, 300],
246 revision=2), 254 revision=2),
247 PixelTestPage( 255 PixelTestPage(
248 'filter_effects.html', 256 'filter_effects.html',
249 base_name + '_CSSFilterEffects_NoOverlays', 257 base_name + '_CSSFilterEffects_NoOverlays',
250 test_rect=[0, 0, 300, 300], 258 test_rect=[0, 0, 300, 300],
251 revision=2, 259 revision=2,
252 tolerance=10, 260 tolerance=10,
253 browser_args=['--disable-mac-overlays']), 261 browser_args=['--disable-mac-overlays']),
254 ] 262 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698