skia2/tools/fonts
Dominik Röttsches 8be6332748 Serialize foreground color caching requirement specialisation
Add a getter to SkTypeface to provide information on whether it
needs access to the foreground color (in COLR fonts) so that the
strike cache can determine caching requirements.

Since remote SkTypefaces do not have access to table information,
implement this as a serializable flag, with font-blob backed
implementations being able to return this based on whether they
have a COLR table or not, starting with FreeType.

Preparation for supporting foreground color in FreeType COLR
rasterisation.

Bug: skia:12576
Change-Id: I7e71b0ec12e17f652ab7b43adffc43bc780ce2e7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/466936
Reviewed-by: Ben Wagner <bungeman@google.com>
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2021-11-03 19:56:47 +00:00
..
create_test_font_color.cpp Reland "Fix compilation w/ "skia_enable_svg = false" (take 2)" 2021-09-01 17:54:08 +00:00
create_test_font.cpp Move SkSpan to include/, for use in public API 2021-05-12 13:19:32 +00:00
generate_fir_coeff.py Fix Python3 compatibility 2021-03-25 14:15:35 +00:00
RandomScalerContext.cpp Make onCreateScalerContext return unique_ptr. 2020-12-28 17:31:09 +00:00
RandomScalerContext.h Serialize foreground color caching requirement specialisation 2021-11-03 19:56:47 +00:00
test_font_index.inc Make create_test_font less global-ish. 2018-08-23 21:23:29 +00:00
test_font_monospace.inc use SkFontMetrics so we can deprecated the typedef 2018-11-12 15:03:03 +00:00
test_font_sans_serif.inc use SkFontMetrics so we can deprecated the typedef 2018-11-12 15:03:03 +00:00
test_font_serif.inc use SkFontMetrics so we can deprecated the typedef 2018-11-12 15:03:03 +00:00
TestEmptyTypeface.h Serialize foreground color caching requirement specialisation 2021-11-03 19:56:47 +00:00
TestFontMgr.cpp Reland "Fix compilation w/ "skia_enable_svg = false" (take 2)" 2021-09-01 17:54:08 +00:00
TestFontMgr.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
TestSVGTypeface.cpp Reland "Fix compilation w/ "skia_enable_svg = false" (take 2)" 2021-09-01 17:54:08 +00:00
TestSVGTypeface.h Serialize foreground color caching requirement specialisation 2021-11-03 19:56:47 +00:00
TestTypeface.cpp Make onCreateScalerContext return unique_ptr. 2020-12-28 17:31:09 +00:00
TestTypeface.h Serialize foreground color caching requirement specialisation 2021-11-03 19:56:47 +00:00
ToolUtilsFont.cpp use pathbuilder 2020-08-25 16:29:48 +00:00