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

Issue 521483002: Added restricted font fallback to custom font collection loader. (Closed)

Created:
6 years, 3 months ago by Shrikant Kelkar
Modified:
6 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Added restricted font fallback to custom font collection loader. After few experiments/crashes it seems that some users have enormous number of fonts in the registry. On suspect that we have for failing to load collection is that direct write cache is unable to load/handle those many fonts. In this CL we are trying to see if we can put arbitrary limit on number of fonts that could be loaded. We also added a fallback mechanism where in if loading from registry fails, we will try to load only default fonts. Definition of 'default' is taken from file prefs_tab_helper.cc ~ kDefaultFonts. R=ananta,scottmg,cpu BUG=399233 Committed: https://crrev.com/d4a0b1d5102a0fe01ea29f14c90a28afc87da95c Cr-Commit-Position: refs/heads/master@{#292573}

Patch Set 1 #

Patch Set 2 : Further restricting max number of fonts that we can load, if not we will go to fallback list. #

Total comments: 6

Patch Set 3 : Code review #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -2 lines) Patch
M content/renderer/renderer_font_platform_win.cc View 1 2 3 chunks +59 lines, -2 lines 4 comments Download

Messages

Total messages: 17 (0 generated)
Shrikant Kelkar
ptal.
6 years, 3 months ago (2014-08-28 23:58:54 UTC) #1
Shrikant Kelkar
ptal.
6 years, 3 months ago (2014-08-29 00:43:22 UTC) #2
cpu_(ooo_6.6-7.5)
please beef up the CL description. https://codereview.chromium.org/521483002/diff/20001/content/renderer/renderer_font_platform_win.cc File content/renderer/renderer_font_platform_win.cc (right): https://codereview.chromium.org/521483002/diff/20001/content/renderer/renderer_font_platform_win.cc#newcode318 content/renderer/renderer_font_platform_win.cc:318: L"mingliu.ttc", 1) add ...
6 years, 3 months ago (2014-08-29 01:14:31 UTC) #3
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/521483002/diff/20001/content/renderer/renderer_font_platform_win.cc File content/renderer/renderer_font_platform_win.cc (right): https://codereview.chromium.org/521483002/diff/20001/content/renderer/renderer_font_platform_win.cc#newcode350 content/renderer/renderer_font_platform_win.cc:350: I rather have an "else" than rely on hr ...
6 years, 3 months ago (2014-08-29 01:17:54 UTC) #4
Shrikant Kelkar
ptal. https://codereview.chromium.org/521483002/diff/20001/content/renderer/renderer_font_platform_win.cc File content/renderer/renderer_font_platform_win.cc (right): https://codereview.chromium.org/521483002/diff/20001/content/renderer/renderer_font_platform_win.cc#newcode318 content/renderer/renderer_font_platform_win.cc:318: L"mingliu.ttc", On 2014/08/29 01:14:31, cpu wrote: > 1) ...
6 years, 3 months ago (2014-08-29 01:41:28 UTC) #5
cpu_(ooo_6.6-7.5)
lgtm
6 years, 3 months ago (2014-08-29 01:48:51 UTC) #6
Shrikant Kelkar
The CQ bit was checked by shrikant@chromium.org
6 years, 3 months ago (2014-08-29 01:49:22 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shrikant@chromium.org/521483002/40001
6 years, 3 months ago (2014-08-29 01:50:55 UTC) #8
scottmg
I think it would be better to force load the standard set first (including other ...
6 years, 3 months ago (2014-08-29 02:51:05 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_gpu on tryserver.chromium.gpu ...
6 years, 3 months ago (2014-08-29 03:08:05 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-29 03:28:01 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu_retina_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu_retina_triggered_tests/builds/40908)
6 years, 3 months ago (2014-08-29 03:28:02 UTC) #12
Shrikant Kelkar
The CQ bit was checked by shrikant@chromium.org
6 years, 3 months ago (2014-08-29 04:13:42 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shrikant@chromium.org/521483002/40001
6 years, 3 months ago (2014-08-29 04:14:02 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 7b8c1ba05a85a3eab2e51d82d37f0915f49f7214
6 years, 3 months ago (2014-08-29 04:48:21 UTC) #15
Shrikant Kelkar
Sorry, I read your comments little late and had already scheduled on commit queue. Will ...
6 years, 3 months ago (2014-08-29 23:26:28 UTC) #16
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:06:24 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d4a0b1d5102a0fe01ea29f14c90a28afc87da95c
Cr-Commit-Position: refs/heads/master@{#292573}

Powered by Google App Engine
This is Rietveld 408576698