Go to file
Ben Wagner d19bb17782 Cache hb_face.
Creating an hb_face can be quite expensive, cache them.

This implementation is similar to the super simple caching strategy used
by libtxt. It uses a simple global LRU cache from SkFontID to hb_hbface
of size 100.

Change-Id: I364a4548699cece50073e829a065c0a303245873
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289442
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Mike Reed <reed@google.com>
2020-05-18 20:18:07 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Added SkSL unpremul intrinsic 2020-05-14 20:57:15 +00:00
bin roll GN 2020-04-01 17:02:23 +00:00
build/fuchsia harmonize rewrite-includes and gn-format checks 2020-04-03 17:00:54 +00:00
build_overrides Use Dawn's BUILD.gn instead of defining another one for Skia. 2020-04-13 23:26:31 +00:00
client_utils/android Remove SkFrontBufferedStream 2020-04-28 13:51:40 +00:00
dm Remove outdated color type readback workaround from dm 2020-05-14 22:11:35 +00:00
docker Support specifying hash and patch_ref in skia-release & skia-wasm-release Dockerfiles 2020-05-06 20:39:04 +00:00
docs/examples Remove SkPath::RawIter from docs and examples 2020-05-06 14:00:59 +00:00
example Revert "Revert "switch to new filltype for SkPath"" 2019-11-26 17:43:14 +00:00
experimental Added setNodeAttribute to SkSVGDom 2020-05-08 21:08:12 +00:00
fuzz Revert "Revert "Revert "Revert "Don't build GL on Metal, Vulkan, Dawn, Direct3D bots"""" 2020-03-20 17:11:58 +00:00
gm extend custom typeface gm 2020-05-18 18:45:38 +00:00
gn Add SkLRUCache.h to core.gni. 2020-05-18 16:49:47 +00:00
include Fix TODO in SkTArray move constructor. 2020-05-18 15:17:17 +00:00
infra Reland "Update skpbench to let the gpu thread run alongside the recording threads" 2020-05-18 15:12:47 +00:00
modules Cache hb_face. 2020-05-18 20:18:07 +00:00
platform_tools Improve selection of target_cpu in android_gdbserver 2020-04-21 19:31:54 +00:00
resources Add ahem.ttf. 2020-05-13 16:32:52 +00:00
samplecode Attaching ellipsis to emoji cluster 2020-05-15 21:02:30 +00:00
site update release notes file, site for 84 branch 2020-05-15 17:38:43 +00:00
specs [img-decode] Start on proposed new spec 2019-05-06 17:39:19 +00:00
src Inset subset rect in texture op when nearest sampling 2020-05-18 19:16:12 +00:00
tests Reland "direct mask biased to (0,0)" 2020-05-18 15:58:37 +00:00
third_party Update AMD vulkan memory allocator. 2020-05-13 13:03:39 +00:00
tools Reland "Update skpbench to let the gpu thread run alongside the recording threads" 2020-05-18 15:12:47 +00:00
.clang-format Disable BinPackParameters in .clang-format 2020-03-27 14:32:40 +00:00
.clang-tidy add google-build-namespaces to clang-tidy checks 2018-12-12 16:33:59 +00:00
.gitignore clean up some .gitignores 2019-05-15 19:55:45 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS Fixing a bug in SkOpEdgeBuilder::walk that causes pathOps to fail when cubic segment is reducable 2020-04-21 16:56:54 +00:00
BUILD.gn Add Direct3D swapchain support 2020-05-14 14:23:02 +00:00
codereview.settings Make uploading to Gerrit the default for Skia 2016-11-09 19:07:56 +00:00
CONTRIBUTING Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
CQ_COMMITTERS Moved committer list to chrome-infra-auth and deleted it from the repo 2015-09-02 13:37:54 -07:00
DEPS Roll third_party/externals/angle2 11f9c56c0347..d34ab323f368 (13 commits) 2020-05-18 04:53:43 +00:00
go.mod Update Go Deps 2020-05-18 05:38:13 +00:00
go.sum Update Go Deps 2020-05-18 05:38:13 +00:00
LICENSE LICENSE file: clean up 2019-11-22 21:59:03 +00:00
OWNERS add OWNERS file 2017-12-01 19:50:19 +00:00
PRESUBMIT.py PRESUBMIT: Don't check formatting of deleted files 2020-04-08 10:36:09 +00:00
public.bzl [skottie] Cleanup: split animators into separate CUs 2020-03-17 15:48:17 +00:00
README Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
README.chromium Update README.chromium. 2015-06-11 13:19:24 -07:00
RELEASE_NOTES.txt For vertices/patches with a shader and no texCoords, use positions 2020-05-18 14:34:07 +00:00
whitespace.txt Whitespace change to re-trigger Mac/iOS tests 2020-02-23 20:55:01 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://skia.org.