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

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

Issue 2822743003: Preserve alpha channel of 1.0 when emulating RGB back buffer.
Patch Set: Created 3 years, 8 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 tolerance=2, browser_args=None, expected_colors=None): 10 tolerance=2, browser_args=None, expected_colors=None):
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 test_rect=[0, 0, 300, 300], 84 test_rect=[0, 0, 300, 300],
85 revision=1), 85 revision=1),
86 86
87 PixelTestPage( 87 PixelTestPage(
88 'pixel_webgl_noalpha_implicit_clear.html', 88 'pixel_webgl_noalpha_implicit_clear.html',
89 base_name + '_WebGLTransparentGreenTriangle_NoAlpha_ImplicitClear', 89 base_name + '_WebGLTransparentGreenTriangle_NoAlpha_ImplicitClear',
90 test_rect=[0, 0, 300, 300], 90 test_rect=[0, 0, 300, 300],
91 revision=1), 91 revision=1),
92 92
93 PixelTestPage( 93 PixelTestPage(
94 'pixel_webgl2_blitframebuffer_noalpha.html',
95 base_name + '_WebGL2_BlitFramebuffer_NoAlpha',
96 test_rect=[0, 0, 300, 300],
97 revision=1),
98
99 PixelTestPage(
94 'pixel_scissor.html', 100 'pixel_scissor.html',
95 base_name + '_ScissorTestWithPreserveDrawingBuffer', 101 base_name + '_ScissorTestWithPreserveDrawingBuffer',
96 test_rect=[0, 0, 300, 300], 102 test_rect=[0, 0, 300, 300],
97 revision=0, # This is not used. 103 revision=0, # This is not used.
98 expected_colors=[ 104 expected_colors=[
99 { 105 {
100 'comment': 'red top', 106 'comment': 'red top',
101 'location': [1, 1], 107 'location': [1, 1],
102 'size': [198, 188], 108 'size': [198, 188],
103 'color': [255, 0, 0], 109 'color': [255, 0, 0],
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 revision=1, 504 revision=1,
499 browser_args=browser_args), 505 browser_args=browser_args),
500 506
501 PixelTestPage( 507 PixelTestPage(
502 'pixel_video_vp9.html', 508 'pixel_video_vp9.html',
503 base_name + '_DirectComposition_Video_VP9', 509 base_name + '_DirectComposition_Video_VP9',
504 test_rect=[0, 0, 300, 300], 510 test_rect=[0, 0, 300, 300],
505 revision=1, 511 revision=1,
506 browser_args=browser_args), 512 browser_args=browser_args),
507 ] 513 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698