diff options
author | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-07 07:41:52 +0000 |
---|---|---|
committer | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-07 07:41:52 +0000 |
commit | e643315015016774de3f72f171b93e2ef8d714d0 (patch) | |
tree | 16505bfdfe87dbfb7882962cb0c638aceb702fd0 /skia/skia_library.gypi | |
parent | 1f70e9bdb669f7d69bac9d3c31d4918f19814e9a (diff) | |
download | chromium_src-e643315015016774de3f72f171b93e2ef8d714d0.zip chromium_src-e643315015016774de3f72f171b93e2ef8d714d0.tar.gz chromium_src-e643315015016774de3f72f171b93e2ef8d714d0.tar.bz2 |
Set the skia glyph cache count limit to 64
The skia glyph cache can use up to 4 GDI handles per cache entry (1 HFONT,
1 HBITMAP, 2 HDCs). There's a global (session-wide) limit of GDI handles
at 10k on some version of windows, so we need to keep the per-process handle
count well below this limit to avoid exhaustion. This sets the limit at 64
cache entries so the skia glyph cache will stay under ~256 handles per process.
BUG=314387
Review URL: https://codereview.chromium.org/60933003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233531 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/skia_library.gypi')
-rw-r--r-- | skia/skia_library.gypi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/skia/skia_library.gypi b/skia/skia_library.gypi index d070546..50304b1 100644 --- a/skia/skia_library.gypi +++ b/skia/skia_library.gypi @@ -441,6 +441,9 @@ 'SK_DEFAULT_FONT_CACHE_LIMIT=<(default_font_cache_limit)', + # http://crbug.com/314387 + 'SK_DEFAULT_FONT_CACHE_COUNT_LIMIT=64', + 'SK_DISABLE_BLUR_DIVISION_OPTIMIZATION', ], |