diff options
author | halcanary <halcanary@google.com> | 2016-03-13 18:30:24 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-13 18:30:24 -0700 |
commit | 1437c1eea8f40f7a43bfe6e80a8d3f6cd61a3643 (patch) | |
tree | 4cdbff97b6e2bf856dff2875ff2c8a818f9b27ea /example | |
parent | 1a9b9640843a64af8d9d90337ec3b3fea663196a (diff) |
SkPDF: remove all globally references SkPDFObjects
Move these singletons into SkPDFCanon (there is still a single object
per document; output PDF size will not change).
Motivation: After this change, all indirectly-referenced SkPDFObjects
are serialized exactly once. The next CL will add a memory saving
feature: a method to purge an object's resources immediately after
serialization. After that, further changes wil allow some objects to be
serialized *before* SkDocument::close(), leading to potentially very
large memory savings.
BUG=skia:5087
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1788263002
Review URL: https://codereview.chromium.org/1788263002
Diffstat (limited to 'example')
0 files changed, 0 insertions, 0 deletions