Expose limit for TypefaceCache
Current default is 1024, and that is preserved with this CL.
Add Get/Set pair to SkGraphics (mimicing other fontcache controls) to
allow clients to change this count_limit.
Specifically, some clients want to set this to zero, as they manage
their own typeface discoveries.
bug: b/316617002
Change-Id: I3b6e3040c2837c42249fac6b6a805b6f33e8b042
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/790576
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Mike Reed <mike@reedtribe.org>
Commit-Queue: Brian Salomon <briansalomon@gmail.com>
Reviewed-by: Florin Malita <fmalita@google.com>
4 files changed