skia2/include
Ben Wagner 8405dfceaa Improve remote glyph caching.
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>
2022-02-03 16:49:43 +00:00
..
android [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00
c [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00
codec HEIF decode: add support for 10-bit color format 2022-02-01 19:49:39 +00:00
config [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00
core Improve remote glyph caching. 2022-02-03 16:49:43 +00:00
docs [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00
effects Revert "For runtime shaders, deduce isOpaque automatically" 2022-02-03 16:09:13 +00:00
encode [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00
gpu Revert "redo AtlasTextOp caching" 2022-01-24 15:59:48 +00:00
pathops [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00
ports [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00
private Remove SkSL::String class. 2022-02-03 14:59:16 +00:00
sksl Remove SkSL::String class. 2022-02-03 14:59:16 +00:00
svg [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00
third_party [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00
utils Remove canvas marker stack, marked matrices, etc... 2021-12-09 16:22:16 +00:00
OWNERS Add Bazel folks as owners to BUILD.bazel files 2021-11-09 14:24:54 +00:00