DescriptionSkPDF: 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
Committed: https://skia.googlesource.com/skia/+/1437c1eea8f40f7a43bfe6e80a8d3f6cd61a3643
Patch Set 1 #
Total comments: 2
Patch Set 2 : add explanatory comments #
Dependent Patchsets: Messages
Total messages: 15 (6 generated)
|