OLD | NEW |
1 ''' | 1 ''' |
| 2 Copyright 2012 Google Inc. |
| 3 |
| 4 Use of this source code is governed by a BSD-style license that can be |
| 5 found in the LICENSE file. |
| 6 |
2 Compares the rendererings of serialized SkPictures to expected images. | 7 Compares the rendererings of serialized SkPictures to expected images. |
3 | 8 |
4 Launch with --help to see more information. | 9 Launch with --help to see more information. |
5 | 10 |
6 | 11 TODO(epoger): Combine with overlapping tools/tests/render_pictures_test.py . |
7 Copyright 2012 Google Inc. | 12 See https://code.google.com/p/skia/issues/detail?id=1943#c2 |
8 | |
9 Use of this source code is governed by a BSD-style license that can be | |
10 found in the LICENSE file. | |
11 ''' | 13 ''' |
12 # common Python modules | 14 # common Python modules |
13 import os | 15 import os |
14 import optparse | 16 import optparse |
15 import sys | 17 import sys |
16 import shutil | 18 import shutil |
17 import tempfile | 19 import tempfile |
18 | 20 |
19 # modules declared within this same directory | 21 # modules declared within this same directory |
20 import test_rendering | 22 import test_rendering |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 90 |
89 if (options.device is not None): | 91 if (options.device is not None): |
90 extra_args += ' --device %s' % options.device | 92 extra_args += ' --device %s' % options.device |
91 | 93 |
92 test_rendering.TestRenderSkps(inputs, expected_dir, options.render_dir, | 94 test_rendering.TestRenderSkps(inputs, expected_dir, options.render_dir, |
93 options.diff_dir, 'render_pictures', | 95 options.diff_dir, 'render_pictures', |
94 extra_args) | 96 extra_args) |
95 | 97 |
96 if __name__ == '__main__': | 98 if __name__ == '__main__': |
97 Main(sys.argv) | 99 Main(sys.argv) |
OLD | NEW |