Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Skia] Create the font manager on demand when first needed
https://bugs.webkit.org/show_bug.cgi?id=271396 Reviewed by Adrian Perez de Castro. We are creating the font manager in FontCache::platformInit(), but that's only called once for all the instances. This makes all offscreen canvas tests rendering text to crash, because the FontCache in the worker thread doesn't have a font manager. * Source/WebCore/platform/graphics/FontCache.h: (WebCore::FontCache::fontManager const): Deleted. * Source/WebCore/platform/graphics/skia/FontCacheSkia.cpp: (WebCore::FontCache::platformInit): (WebCore::FontCache::fontManager const): (WebCore::FontCache::systemFallbackForCharacterCluster): (WebCore::FontCache::systemFontFamilies): (WebCore::FontCache::createFontPlatformData): * Source/WebCore/platform/graphics/skia/FontCustomPlatformDataSkia.cpp: (WebCore::FontCustomPlatformData::create): Canonical link: https://commits.webkit.org/276483@main
- Loading branch information
1 parent
84ef0be
commit 82bbfe7
Showing
3 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters