DescriptionSuppress embedding fonts when the skp's fonts match the OS fonts.
The million SKPs generated require >5T of storage. A good deal
of that are copies of system fonts.
Chrome built with
#DEFINE SK_WHITELIST_SERIALIZED_TYPEFACES
will omit the font data if the font matches a precomputed
checksum.
The captured SKP prepends sk_ to the names of fonts that
have their data omitted. The SKP consumer can either add
renamed fonts from the recording machine, or add
gDeserializeTypefaceDelegate = WhitelistDeserializeTypeface;
which strips the sk_ prefix when deserializing typefaces.
whitelist_typefaces --check
Computes the checksums of fallback
fonts and returns 0 if the checksums match the checked-in
file SkWhitelistChecksum.cpp.
whitelist_typefaces --generate
Writes an updated version of SkWhitelistChecksum.cpp.
(Added Mike since this modifies a public header)
R=bungeman@google.com,rmistry@google.com,reed@google.com
Committed: https://skia.googlesource.com/skia/+/5ef194c31ae498166bd9c468993514c5267ea077
Patch Set 1 #Patch Set 2 : fix compiler bugs #
Total comments: 2
Patch Set 3 : add string test #Patch Set 4 : fix unsigned mismatch #
Total comments: 1
Patch Set 5 : remove string change #
Total comments: 3
Messages
Total messages: 39 (17 generated)
|