| OLD | NEW |
| 1 # | 1 # |
| 2 # Copyright 2015 Google Inc. | 2 # Copyright 2015 Google Inc. |
| 3 # | 3 # |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 # | 6 # |
| 7 | 7 |
| 8 #!/usr/bin/env python | 8 #!/usr/bin/env python |
| 9 | 9 |
| 10 usage = ''' | 10 usage = ''' |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 # CG fails on questionable bmps | 116 # CG fails on questionable bmps |
| 117 if 'Mac' in bot or 'iOS' in bot: | 117 if 'Mac' in bot or 'iOS' in bot: |
| 118 blacklist.extend('_ image gen_platf rgba32abf.bmp'.split(' ')) | 118 blacklist.extend('_ image gen_platf rgba32abf.bmp'.split(' ')) |
| 119 blacklist.extend('_ image gen_platf rgb24prof.bmp'.split(' ')) | 119 blacklist.extend('_ image gen_platf rgb24prof.bmp'.split(' ')) |
| 120 blacklist.extend('_ image gen_platf rgb24lprof.bmp'.split(' ')) | 120 blacklist.extend('_ image gen_platf rgb24lprof.bmp'.split(' ')) |
| 121 blacklist.extend('_ image gen_platf 8bpp-pixeldata-cropped.bmp'.split(' ')) | 121 blacklist.extend('_ image gen_platf 8bpp-pixeldata-cropped.bmp'.split(' ')) |
| 122 blacklist.extend('_ image gen_platf 4bpp-pixeldata-cropped.bmp'.split(' ')) | 122 blacklist.extend('_ image gen_platf 4bpp-pixeldata-cropped.bmp'.split(' ')) |
| 123 blacklist.extend('_ image gen_platf 32bpp-pixeldata-cropped.bmp'.split(' ')) | 123 blacklist.extend('_ image gen_platf 32bpp-pixeldata-cropped.bmp'.split(' ')) |
| 124 blacklist.extend('_ image gen_platf 24bpp-pixeldata-cropped.bmp'.split(' ')) | 124 blacklist.extend('_ image gen_platf 24bpp-pixeldata-cropped.bmp'.split(' ')) |
| 125 | 125 |
| 126 # WIC fails on questionable bmps |
| 127 if 'Win' in bot: |
| 128 blacklist.extend('_ image gen_platf rle8-height-negative.bmp'.split(' ')) |
| 129 blacklist.extend('_ image gen_platf rle4-height-negative.bmp'.split(' ')) |
| 130 blacklist.extend('_ image gen_platf pal8os2v2.bmp'.split(' ')) |
| 131 blacklist.extend('_ image gen_platf pal8os2v2-16.bmp'.split(' ')) |
| 132 blacklist.extend('_ image gen_platf rgba32abf.bmp'.split(' ')) |
| 133 blacklist.extend('_ image gen_platf rgb24prof.bmp'.split(' ')) |
| 134 blacklist.extend('_ image gen_platf rgb24lprof.bmp'.split(' ')) |
| 135 blacklist.extend('_ image gen_platf 8bpp-pixeldata-cropped.bmp'.split(' ')) |
| 136 blacklist.extend('_ image gen_platf 4bpp-pixeldata-cropped.bmp'.split(' ')) |
| 137 blacklist.extend('_ image gen_platf 32bpp-pixeldata-cropped.bmp'.split(' ')) |
| 138 blacklist.extend('_ image gen_platf 24bpp-pixeldata-cropped.bmp'.split(' ')) |
| 139 |
| 126 # skia:4095 | 140 # skia:4095 |
| 127 for test in ['not_native32_bitmap_config', | 141 for test in ['not_native32_bitmap_config', |
| 128 'bleed_image', | 142 'bleed_image', |
| 129 'bleed_alpha_image', | 143 'bleed_alpha_image', |
| 130 'bleed_alpha_image_shader', | 144 'bleed_alpha_image_shader', |
| 131 'blend', | 145 'blend', |
| 132 'c_gms', | 146 'c_gms', |
| 133 'colortype', | 147 'colortype', |
| 134 'colortype_xfermodes', | 148 'colortype_xfermodes', |
| 135 'colorwheelnative', | 149 'colorwheelnative', |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 278 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
| 265 self_test() | 279 self_test() |
| 266 sys.exit(0) | 280 sys.exit(0) |
| 267 | 281 |
| 268 if len(sys.argv) != 3: | 282 if len(sys.argv) != 3: |
| 269 print usage | 283 print usage |
| 270 sys.exit(1) | 284 sys.exit(1) |
| 271 | 285 |
| 272 with open(sys.argv[1], 'w') as out: | 286 with open(sys.argv[1], 'w') as out: |
| 273 json.dump(get_args(sys.argv[2]), out) | 287 json.dump(get_args(sys.argv[2]), out) |
| OLD | NEW |