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

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

Issue 2417773003: Fix content upside down when call OffscreenCanvas's commit (Closed)
Patch Set: rebase 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 PixelTestPage( 148 PixelTestPage(
149 'pixel_offscreenCanvas_transferToImageBitmap_worker.html', 149 'pixel_offscreenCanvas_transferToImageBitmap_worker.html',
150 base_name + '_OffscreenCanvasTransferToImageBitmapWorker', 150 base_name + '_OffscreenCanvasTransferToImageBitmapWorker',
151 test_rect=[0, 0, 300, 300], 151 test_rect=[0, 0, 300, 300],
152 revision=1, 152 revision=1,
153 browser_args=browser_args), 153 browser_args=browser_args),
154 154
155 PixelTestPage( 155 PixelTestPage(
156 'pixel_offscreenCanvas_webgl_commit_main.html', 156 'pixel_offscreenCanvas_webgl_commit_main.html',
157 base_name + '_OffscreenCanvasWebGLGreenBox', 157 base_name + '_OffscreenCanvasWebGLDefault',
158 test_rect=[0, 0, 300, 300], 158 test_rect=[0, 0, 350, 350],
159 revision=2, 159 revision=1,
160 browser_args=browser_args), 160 browser_args=browser_args),
161 161
162 PixelTestPage( 162 PixelTestPage(
163 'pixel_offscreenCanvas_webgl_commit_worker.html', 163 'pixel_offscreenCanvas_webgl_commit_worker.html',
164 base_name + '_OffscreenCanvasWebGLRedBoxWorker', 164 base_name + '_OffscreenCanvasWebGLDefaultWorker',
165 test_rect=[0, 0, 300, 300], 165 test_rect=[0, 0, 350, 350],
166 revision=3, 166 revision=1,
167 browser_args=browser_args), 167 browser_args=browser_args),
168 168
169 PixelTestPage( 169 PixelTestPage(
170 'pixel_offscreenCanvas_webgl_commit_main.html', 170 'pixel_offscreenCanvas_webgl_commit_main.html',
171 base_name + '_OffscreenCanvasWebGLSoftwareCompositing', 171 base_name + '_OffscreenCanvasWebGLSoftwareCompositing',
172 test_rect=[0, 0, 300, 300], 172 test_rect=[0, 0, 350, 350],
173 revision=1, 173 revision=2,
174 browser_args=browser_args + ['--disable-gpu-compositing']), 174 browser_args=browser_args + ['--disable-gpu-compositing']),
175 175
176 PixelTestPage( 176 PixelTestPage(
177 'pixel_offscreenCanvas_webgl_commit_worker.html', 177 'pixel_offscreenCanvas_webgl_commit_worker.html',
178 base_name + '_OffscreenCanvasWebGLSoftwareCompositingWorker', 178 base_name + '_OffscreenCanvasWebGLSoftwareCompositingWorker',
179 test_rect=[0, 0, 300, 300], 179 test_rect=[0, 0, 350, 350],
180 revision=1, 180 revision=2,
181 browser_args=browser_args + ['--disable-gpu-compositing']), 181 browser_args=browser_args + ['--disable-gpu-compositing']),
182 182
183 PixelTestPage( 183 PixelTestPage(
184 'pixel_offscreenCanvas_2d_commit_main.html', 184 'pixel_offscreenCanvas_2d_commit_main.html',
185 base_name + '_OffscreenCanvasAccelerated2D', 185 base_name + '_OffscreenCanvasAccelerated2D',
186 test_rect=[0, 0, 350, 350], 186 test_rect=[0, 0, 350, 350],
187 revision=1, 187 revision=1,
188 browser_args=browser_args), 188 browser_args=browser_args),
189 189
190 PixelTestPage( 190 PixelTestPage(
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 test_rect=[0, 0, 300, 300], 281 test_rect=[0, 0, 300, 300],
282 revision=2), 282 revision=2),
283 PixelTestPage( 283 PixelTestPage(
284 'filter_effects.html', 284 'filter_effects.html',
285 base_name + '_CSSFilterEffects_NoOverlays', 285 base_name + '_CSSFilterEffects_NoOverlays',
286 test_rect=[0, 0, 300, 300], 286 test_rect=[0, 0, 300, 300],
287 revision=2, 287 revision=2,
288 tolerance=10, 288 tolerance=10,
289 browser_args=['--disable-mac-overlays']), 289 browser_args=['--disable-mac-overlays']),
290 ] 290 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698