8405dfceaa
A glyph cache entry is made up of metrics, an image, and a path. If an entry does not exist then nothing is known of the glyph yet. If there is an entry it must have at least the metrics. The image and the path may logically be added lazily as needed. Prior to this change it was not possible to send both the image and the path of a single glyph. The added test fails when a given strike is used for both the image and the path. With this change the test passes, as the image is sent and the path is sent, and both are merged into the remote glyph. The assertions around not creating the glyph more than once are replaced with assertions that no part of the glyph is set more than once. Change-Id: I2fd4047ee15e0d584b68e1180c6fe15224889310 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/503347 Reviewed-by: Herb Derby <herb@google.com> Reviewed-by: Derek Sollenberger <djsollen@google.com> Commit-Queue: Ben Wagner <bungeman@google.com> |
||
---|---|---|
.. | ||
android | ||
c | ||
codec | ||
config | ||
core | ||
docs | ||
effects | ||
encode | ||
gpu | ||
pathops | ||
ports | ||
private | ||
sksl | ||
svg | ||
third_party | ||
utils | ||
OWNERS |