aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar caryclark <caryclark@google.com>2015-08-31 09:22:38 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-31 09:22:38 -0700
commit5ef194c31ae498166bd9c468993514c5267ea077 (patch)
treec04f78d03a4a32ae36b5b45960e6a09ae57a7503 /include
parent89971d4537f3b8bca3d310f9a44ab595c6c50ddc (diff)
Suppress 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 Review URL: https://codereview.chromium.org/1317913005
Diffstat (limited to 'include')
-rw-r--r--include/core/SkTypeface.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/core/SkTypeface.h b/include/core/SkTypeface.h
index f6f30e66ca..c4242181fb 100644
--- a/include/core/SkTypeface.h
+++ b/include/core/SkTypeface.h
@@ -144,10 +144,6 @@ public:
*/
void serialize(SkWStream*) const;
- /** Like serialize, but write the whole font (not just a signature) if possible.
- */
- void serializeForcingEmbedding(SkWStream*) const;
-
/** Given the data previously written by serialize(), return a new instance
to a typeface referring to the same font. If that font is not available,
return null. If an instance is returned, the caller is responsible for