DescriptionEnable flattening/unflattening with custom unflatten procs
Now flattenables are serialized using a string name, so that
flattenables do not necessarily need to be registered before
serialization. They just need to override getTypeName().
Allows custom unflatten procs to be set on the SkReadBuffer.
This is optional if the flattenable is registered, but otherwise
must be called.
This was split off from:
https://codereview.chromium.org/1837913003/
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1858323002
Committed: https://skia.googlesource.com/skia/+/a3b3b238f507a6ec7f43febc6bf0bb17e04e770f
Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : #
Total comments: 4
Patch Set 4 : Rebase on delete of fNamedFactorySet from SkWriteBuffer #Patch Set 5 : Avoid duping strings #
Total comments: 10
Patch Set 6 : Response to comments #Patch Set 7 : Send only the index or the string - never both #
Total comments: 1
Patch Set 8 : Combine with isValidating case, delete kValidation_Flag #Patch Set 9 : Cleanup #
Total comments: 4
Patch Set 10 : Verify that the ValidatingReadBuffer does not use factory pointers #Patch Set 11 : Fix test #
Dependent Patchsets: Messages
Total messages: 36 (15 generated)
|