| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """ Run the Skia render_pictures executable. """ | 6 """ Run the Skia render_pictures executable. """ |
| 7 | 7 |
| 8 from build_step import BuildStep | 8 from build_step import BuildStep |
| 9 import os | 9 import os |
| 10 import sys | 10 import sys |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 cmd.extend(['-w', self._device_dirs.SKPOutDir()]) | 30 cmd.extend(['-w', self._device_dirs.SKPOutDir()]) |
| 31 if not os.name == 'nt': | 31 if not os.name == 'nt': |
| 32 cmd.append('--validate') | 32 cmd.append('--validate') |
| 33 self.RunFlavoredCmd('render_pictures', cmd) | 33 self.RunFlavoredCmd('render_pictures', cmd) |
| 34 | 34 |
| 35 def _Run(self): | 35 def _Run(self): |
| 36 self.DoRenderPictures([]) | 36 self.DoRenderPictures([]) |
| 37 self.DoRenderPictures(['--bbh', 'grid', str(DEFAULT_TILE_X), | 37 self.DoRenderPictures(['--bbh', 'grid', str(DEFAULT_TILE_X), |
| 38 str(DEFAULT_TILE_X), '--clone', '1']) | 38 str(DEFAULT_TILE_X), '--clone', '1']) |
| 39 self.DoRenderPictures(['--bbh', 'rtree', '--clone', '2']) | 39 self.DoRenderPictures(['--bbh', 'rtree', '--clone', '2']) |
| 40 self.DoRenderPictures(['--deferImageDecoding', '--useVolatileCache']) |
| 40 | 41 |
| 41 | 42 |
| 42 if '__main__' == __name__: | 43 if '__main__' == __name__: |
| 43 sys.exit(BuildStep.RunBuildStep(RenderPictures)) | 44 sys.exit(BuildStep.RunBuildStep(RenderPictures)) |
| OLD | NEW |