|
|
Introduce typeface cache in blink::FontCache
blink::FontCache stores fonts as FontPlatformData, that is associated
with the font size. However on other platform than Mac, the backing
SkTypeface are independent of the size and can be shared among font
queries that have different sizes.
This CL adds a cache to hold SkTypeface on non-Mac platform.
TODO:
* Measure the performance on Windows.
* Set up finch experiment to measure it in wild.
For more context, see https://codereview.chromium.org/1919183002/
BUG=
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+236 lines, -234 lines) |
Patch |
 |
M |
third_party/WebKit/Source/core/css/BinaryDataFontFaceSource.cpp
|
View
|
1
2
3
4
|
1 chunk |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp
|
View
|
1
2
3
4
|
2 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/fetch/FontResource.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/fetch/FontResource.cpp
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/blink_platform.gypi
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/fonts/Font.cpp
|
View
|
1
2
3
4
5
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/fonts/FontCache.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/fonts/FontCache.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/fonts/FontCustomPlatformData.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/fonts/FontCustomPlatformData.cpp
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/fonts/FontDataCache.h
|
View
|
1
2
3
4
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/fonts/FontDataCache.cpp
|
View
|
1
2
|
3 chunks |
+29 lines, -27 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/fonts/FontPlatformData.h
|
View
|
1
2
3
4
5
|
3 chunks |
+4 lines, -17 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/fonts/FontPlatformData.cpp
|
View
|
1
2
3
4
5
|
11 chunks |
+5 lines, -46 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/fonts/FontPlatformDataTest.cpp
|
View
|
1
2
3
4
5
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/fonts/FontRenderStyle.h
|
View
|
1
2
3
4
5
|
2 chunks |
+18 lines, -1 line |
0 comments
|
Download
|
 |
A |
third_party/WebKit/Source/platform/fonts/FontRenderStyle.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+106 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/fonts/SimpleFontData.h
|
View
|
1
2
3
4
5
|
4 chunks |
+10 lines, -5 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/fonts/SimpleFontData.cpp
|
View
|
1
2
3
4
5
|
10 chunks |
+17 lines, -10 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/fonts/linux/FontPlatformDataLinux.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -90 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.h
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzFace.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp
|
View
|
1
2
3
4
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/testing/FontTestHelpers.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/linux/WebFontRendering.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
Total messages: 23 (11 generated)
|