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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 # TODO: remove skp from default --src list? | 73 # TODO: remove skp from default --src list? |
74 if 'GPU' in bot: | 74 if 'GPU' in bot: |
75 args.extend('--src tests gm'.split(' ')) | 75 args.extend('--src tests gm'.split(' ')) |
76 else: | 76 else: |
77 args.extend('--src tests gm image'.split(' ')) | 77 args.extend('--src tests gm image'.split(' ')) |
78 | 78 |
79 if 'GalaxyS' in bot: | 79 if 'GalaxyS' in bot: |
80 args.extend(('--threads', '0')) | 80 args.extend(('--threads', '0')) |
81 | 81 |
82 blacklist = [] | 82 blacklist = [] |
| 83 |
| 84 # We do not draw image sources on msaa anyway, so avoid the creation of |
| 85 # large canvases. skbug.com/4045 |
| 86 blacklist.extend('msaa image _ _'.split(' ')) |
| 87 |
83 # This image is too large to be a texture for many GPUs. | 88 # This image is too large to be a texture for many GPUs. |
84 blacklist.extend('gpu _ _ PANO_20121023_214540.jpg'.split(' ')) | 89 blacklist.extend('gpu _ _ PANO_20121023_214540.jpg'.split(' ')) |
85 blacklist.extend('msaa _ _ PANO_20121023_214540.jpg'.split(' ')) | |
86 | 90 |
87 # Several of the newest version bmps fail on SkImageDecoder | 91 # Several of the newest version bmps fail on SkImageDecoder |
88 blacklist.extend('_ image decode pal8os2v2.bmp'.split(' ')) | 92 blacklist.extend('_ image decode pal8os2v2.bmp'.split(' ')) |
89 blacklist.extend('_ image decode pal8v4.bmp'.split(' ')) | 93 blacklist.extend('_ image decode pal8v4.bmp'.split(' ')) |
90 blacklist.extend('_ image decode pal8v5.bmp'.split(' ')) | 94 blacklist.extend('_ image decode pal8v5.bmp'.split(' ')) |
91 blacklist.extend('_ image decode rgb16-565.bmp'.split(' ')) | 95 blacklist.extend('_ image decode rgb16-565.bmp'.split(' ')) |
92 blacklist.extend('_ image decode rgb16-565pal.bmp'.split(' ')) | 96 blacklist.extend('_ image decode rgb16-565pal.bmp'.split(' ')) |
93 blacklist.extend('_ image decode rgb32-111110.bmp'.split(' ')) | 97 blacklist.extend('_ image decode rgb32-111110.bmp'.split(' ')) |
94 blacklist.extend('_ image decode rgb32bf.bmp'.split(' ')) | 98 blacklist.extend('_ image decode rgb32bf.bmp'.split(' ')) |
95 blacklist.extend('_ image decode rgba32.bmp'.split(' ')) | 99 blacklist.extend('_ image decode rgba32.bmp'.split(' ')) |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 if len(sys.argv) == 2 and sys.argv[1] == 'test': | 215 if len(sys.argv) == 2 and sys.argv[1] == 'test': |
212 self_test() | 216 self_test() |
213 sys.exit(0) | 217 sys.exit(0) |
214 | 218 |
215 if len(sys.argv) != 3: | 219 if len(sys.argv) != 3: |
216 print usage | 220 print usage |
217 sys.exit(1) | 221 sys.exit(1) |
218 | 222 |
219 with open(sys.argv[1], 'w') as out: | 223 with open(sys.argv[1], 'w') as out: |
220 json.dump(get_args(sys.argv[2]), out) | 224 json.dump(get_args(sys.argv[2]), out) |
OLD | NEW |