|
|
Move PPB_TrueTypeFont_Dev host from renderer to browser.
On Linux, we can now use FontConfig in the browser process since it
is thread-safe, so we don't need to use SandboxIPC from the renderer.
In the browser, the needed functionality is split off from
SandboxIPCHandler into a static function,
MatchFontFaceWithFallback in a new pair of files, font_utils_linux.*.
This change also moves any potentially blocking font creation and
reading to the browser's blocking thread pool.
I reworked the PepperTrueTypeFont base class to make Create simpler.
- Added an Initialize method which returns the font descriptor.
- Removed the Describe method.
I reworked the resource to delay calls to the host until we receive the desc
and initialization is complete. Describe will now wait until Initialize completes,
and the host uses a SequencedTaskRunner to serialize tasks, so Initialize
completes before GetTableTags and GetTable calls complete.
The Describe method can be implemented without IPC since we have the desc
on the plugin side.
BUG= 382729
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=280107
Total comments: 21
Total comments: 12
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+908 lines, -1557 lines) |
Patch |
 |
A |
content/browser/renderer_host/font_utils_linux.h
|
View
|
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/browser/renderer_host/font_utils_linux.cc
|
View
|
1
2
3
|
1 chunk |
+261 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/pepper/content_browser_pepper_host_factory.cc
|
View
|
|
3 chunks |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/browser/renderer_host/pepper/pepper_truetype_font.h
|
View
|
1
2
3
4
5
|
1 chunk |
+55 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
content/browser/renderer_host/pepper/pepper_truetype_font_android.cc
|
View
|
1
2
|
1 chunk |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
A |
content/browser/renderer_host/pepper/pepper_truetype_font_host.h
|
View
|
1
2
3
4
|
1 chunk |
+69 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/browser/renderer_host/pepper/pepper_truetype_font_host.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+159 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
content/browser/renderer_host/pepper/pepper_truetype_font_linux.cc
|
View
|
1
2
3
4
5
|
6 chunks |
+44 lines, -46 lines |
0 comments
|
Download
|
 |
A + |
content/browser/renderer_host/pepper/pepper_truetype_font_mac.mm
|
View
|
1
2
3
4
5
|
14 chunks |
+128 lines, -123 lines |
0 comments
|
Download
|
 |
A + |
content/browser/renderer_host/pepper/pepper_truetype_font_win.cc
|
View
|
1
2
3
4
5
|
8 chunks |
+59 lines, -67 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/sandbox_ipc_linux.cc
|
View
|
|
5 chunks |
+3 lines, -238 lines |
0 comments
|
Download
|
 |
M |
content/content_browser.gypi
|
View
|
|
3 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/content_renderer.gypi
|
View
|
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/renderer/pepper/content_renderer_pepper_host_factory.cc
|
View
|
|
3 chunks |
+0 lines, -16 lines |
0 comments
|
Download
|
 |
D |
content/renderer/pepper/pepper_truetype_font.h
|
View
|
|
1 chunk |
+0 lines, -50 lines |
0 comments
|
Download
|
 |
D |
content/renderer/pepper/pepper_truetype_font_android.cc
|
View
|
|
1 chunk |
+0 lines, -17 lines |
0 comments
|
Download
|
 |
D |
content/renderer/pepper/pepper_truetype_font_host.h
|
View
|
|
1 chunk |
+0 lines, -50 lines |
0 comments
|
Download
|
 |
D |
content/renderer/pepper/pepper_truetype_font_host.cc
|
View
|
|
1 chunk |
+0 lines, -93 lines |
0 comments
|
Download
|
 |
D |
content/renderer/pepper/pepper_truetype_font_linux.cc
|
View
|
|
1 chunk |
+0 lines, -159 lines |
0 comments
|
Download
|
 |
D |
content/renderer/pepper/pepper_truetype_font_mac.mm
|
View
|
|
1 chunk |
+0 lines, -408 lines |
0 comments
|
Download
|
 |
D |
content/renderer/pepper/pepper_truetype_font_win.cc
|
View
|
|
1 chunk |
+0 lines, -245 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/ppapi_messages.h
|
View
|
1
2
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/truetype_font_resource.h
|
View
|
1
2
3
4
|
4 chunks |
+18 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ppapi/proxy/truetype_font_resource.cc
|
View
|
1
2
3
4
|
3 chunks |
+59 lines, -25 lines |
0 comments
|
Download
|
Total messages: 28 (0 generated)
|