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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 blacklist.extend('_ image decode pal8v5.bmp'.split(' ')) | 64 blacklist.extend('_ image decode pal8v5.bmp'.split(' ')) |
65 blacklist.extend('_ image decode rgb16-565.bmp'.split(' ')) | 65 blacklist.extend('_ image decode rgb16-565.bmp'.split(' ')) |
66 blacklist.extend('_ image decode rgb16-565pal.bmp'.split(' ')) | 66 blacklist.extend('_ image decode rgb16-565pal.bmp'.split(' ')) |
67 blacklist.extend('_ image decode rgb32-111110.bmp'.split(' ')) | 67 blacklist.extend('_ image decode rgb32-111110.bmp'.split(' ')) |
68 blacklist.extend('_ image decode rgb32bf.bmp'.split(' ')) | 68 blacklist.extend('_ image decode rgb32bf.bmp'.split(' ')) |
69 blacklist.extend('_ image decode rgba32.bmp'.split(' ')) | 69 blacklist.extend('_ image decode rgba32.bmp'.split(' ')) |
70 blacklist.extend('_ image decode rgba32abf.bmp'.split(' ')) | 70 blacklist.extend('_ image decode rgba32abf.bmp'.split(' ')) |
71 blacklist.extend('_ image decode rgb24largepal.bmp'.split(' ')) | 71 blacklist.extend('_ image decode rgb24largepal.bmp'.split(' ')) |
72 blacklist.extend('_ image decode pal8os2v2-16.bmp'.split(' ')) | 72 blacklist.extend('_ image decode pal8os2v2-16.bmp'.split(' ')) |
73 blacklist.extend('_ image decode pal8oversizepal.bmp'.split(' ')) | 73 blacklist.extend('_ image decode pal8oversizepal.bmp'.split(' ')) |
| 74 blacklist.extend('_ image decode pal4rletrns.bmp'.split(' ')) |
| 75 blacklist.extend('_ image decode pal8rletrns.bmp'.split(' ')) |
74 blacklist.extend('_ image subset rgb24largepal.bmp'.split(' ')) | 76 blacklist.extend('_ image subset rgb24largepal.bmp'.split(' ')) |
75 blacklist.extend('_ image subset pal8os2v2-16.bmp'.split(' ')) | 77 blacklist.extend('_ image subset pal8os2v2-16.bmp'.split(' ')) |
76 blacklist.extend('_ image subset pal8oversizepal.bmp'.split(' ')) | 78 blacklist.extend('_ image subset pal8oversizepal.bmp'.split(' ')) |
77 | 79 |
78 # New ico files that fail on SkImageDecoder | 80 # New ico files that fail on SkImageDecoder |
79 blacklist.extend('_ image decode Hopstarter-Mac-Folders-Apple.ico'.split(' ')) | 81 blacklist.extend('_ image decode Hopstarter-Mac-Folders-Apple.ico'.split(' ')) |
80 | 82 |
81 # Leon doesn't care about this, so why run it? | 83 # Leon doesn't care about this, so why run it? |
82 if 'Win' in bot: | 84 if 'Win' in bot: |
83 blacklist.extend('_ image decode _'.split(' ')) | 85 blacklist.extend('_ image decode _'.split(' ')) |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 173 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
172 self_test() | 174 self_test() |
173 sys.exit(0) | 175 sys.exit(0) |
174 | 176 |
175 if len(sys.argv) != 3: | 177 if len(sys.argv) != 3: |
176 print usage | 178 print usage |
177 sys.exit(1) | 179 sys.exit(1) |
178 | 180 |
179 with open(sys.argv[1], 'w') as out: | 181 with open(sys.argv[1], 'w') as out: |
180 json.dump(get_args(sys.argv[2]), out) | 182 json.dump(get_args(sys.argv[2]), out) |
OLD | NEW |