Add tools/flatten to flatten nested pictures in .skps.
authormtklein <mtklein@chromium.org>
Wed, 8 Jul 2015 17:06:01 +0000 (10:06 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 8 Jul 2015 17:06:01 +0000 (10:06 -0700)
commit60c047557559e5410063452e59d65377e813e5f2
tree1b2ed7dda6db8edac349e3cac21586658915d11e
parentb2456053c7e20e5439915cd2954c71f73bc85375
Add tools/flatten to flatten nested pictures in .skps.

Tested by running on skps/sp_desk_nytimes.skp.
The output .skp had no nested draw picture calls, and the files were both 9.3M.

BUG=skia:

Review URL: https://codereview.chromium.org/1221303020
gyp/tools.gyp
tools/flatten.cpp [new file with mode: 0644]