Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Issue 180026: Linux: use mmap fonts. (Closed)

Created:
11 years, 3 months ago by agl
Modified:
9 years, 7 months ago
Reviewers:
tony
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Linux: use mmap fonts. FreeType makes a lot of seek calls when we give it fonts as a stream. To avoid the seeks (which hurt the SUID sandbox), we mmap the fonts. Will need to pay attention to the perf bots after this lands.

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -23 lines) Patch
M skia/ext/SkFontHost_fontconfig.cpp View 3 chunks +36 lines, -23 lines 1 comment Download

Messages

Total messages: 2 (0 generated)
agl
11 years, 3 months ago (2009-08-28 20:05:43 UTC) #1
tony
11 years, 3 months ago (2009-08-28 20:11:29 UTC) #2
LGTM

http://codereview.chromium.org/180026/diff/1/2
File skia/ext/SkFontHost_fontconfig.cpp (right):

http://codereview.chromium.org/180026/diff/1/2#newcode32
Line 32: #include <sys/mman.h>
Nit: Sort these?

Powered by Google App Engine
This is Rietveld 408576698