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

Issue 724633002: DirectWrite Font Cache browser side hookup (Closed)

Created:
6 years, 1 month ago by Shrikant Kelkar
Modified:
6 years, 1 month ago
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

DirectWrite Font Cache browser side hookup This part is mainly to hookup browser side for building and loading font cache. In browser's postprofileinit if font cache already exists in user profile directory then we load that and create a read only shared memory section. If cache is not there then we spawn a Chrome utility process to build font cache, which will be used when browser restarts. For details on how whole thing works please look at design document at https://goto.google.com/font-cache-design BUG=406659 R=cpu, scottmg, ananta Committed: https://crrev.com/5140a1f1ba5bd57d5c7d9af04ed3eb8ac83f487d Cr-Commit-Position: refs/heads/master@{#304277} Committed: https://crrev.com/4e44258a618f23923f3671edca12cc58d83f90f3 Cr-Commit-Position: refs/heads/master@{#304474}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Code review... #

Total comments: 4

Patch Set 3 : Code review.. #

Total comments: 1

Patch Set 4 : Fixed unit test. #

Total comments: 4

Patch Set 5 : Fixed comment. #

Patch Set 6 : Enforcing cache file size limit 20MB and reducing cached percentile. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -101 lines) Patch
M chrome/browser/chrome_browser_main_win.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main_win.cc View 6 chunks +32 lines, -0 lines 0 comments Download
M chrome/chrome_utility.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_utility_messages.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/utility/chrome_content_utility_client.cc View 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/utility/font_cache_handler_win.h View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/utility/font_cache_handler_win.cc View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
D content/browser/dwrite_font_cache_win.cc View 1 chunk +0 lines, -23 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
D content/common/dwrite_font_platform_win.h View 1 chunk +0 lines, -38 lines 0 comments Download
M content/common/dwrite_font_platform_win.cc View 1 2 3 4 5 6 chunks +20 lines, -11 lines 0 comments Download
M content/common/dwrite_font_platform_win_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/content_browser.gypi View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/content_common.gypi View 2 chunks +1 line, -2 lines 0 comments Download
D content/public/common/dwrite_font_cache_win.h View 1 chunk +0 lines, -19 lines 0 comments Download
A + content/public/common/dwrite_font_platform_win.h View 1 1 chunk +7 lines, -4 lines 0 comments Download
M content/renderer/render_font_warmup_win.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (2 generated)
Shrikant Kelkar
ptal.
6 years, 1 month ago (2014-11-13 02:17:29 UTC) #1
scottmg
https://codereview.chromium.org/724633002/diff/1/chrome/browser/chrome_browser_main_win.h File chrome/browser/chrome_browser_main_win.h (right): https://codereview.chromium.org/724633002/diff/1/chrome/browser/chrome_browser_main_win.h#newcode35 chrome/browser/chrome_browser_main_win.h:35: virtual void ChromeBrowserMainPartsWin::PostProfileInit() override; remove "ChromeBrowserMainPartsWin::" https://codereview.chromium.org/724633002/diff/1/content/common/dwrite_font_platform_win.cc File content/common/dwrite_font_platform_win.cc ...
6 years, 1 month ago (2014-11-13 07:35:30 UTC) #2
scottmg
content/common/dwrite_font_platform_win_unittest.cc likely needs an update too.
6 years, 1 month ago (2014-11-13 07:40:13 UTC) #3
Shrikant Kelkar
https://codereview.chromium.org/724633002/diff/1/chrome/browser/chrome_browser_main_win.h File chrome/browser/chrome_browser_main_win.h (right): https://codereview.chromium.org/724633002/diff/1/chrome/browser/chrome_browser_main_win.h#newcode35 chrome/browser/chrome_browser_main_win.h:35: virtual void ChromeBrowserMainPartsWin::PostProfileInit() override; On 2014/11/13 07:35:30, scottmg wrote: ...
6 years, 1 month ago (2014-11-13 20:29:21 UTC) #4
ananta
lgtm https://codereview.chromium.org/724633002/diff/20001/chrome/utility/font_cache_handler_win.cc File chrome/utility/font_cache_handler_win.cc (right): https://codereview.chromium.org/724633002/diff/20001/chrome/utility/font_cache_handler_win.cc#newcode11 chrome/utility/font_cache_handler_win.cc:11: FontCacheHandler::FontCacheHandler() {} Nuke and move to header. https://codereview.chromium.org/724633002/diff/20001/chrome/utility/font_cache_handler_win.h ...
6 years, 1 month ago (2014-11-13 23:24:47 UTC) #5
Shrikant Kelkar
https://codereview.chromium.org/724633002/diff/20001/chrome/utility/font_cache_handler_win.cc File chrome/utility/font_cache_handler_win.cc (right): https://codereview.chromium.org/724633002/diff/20001/chrome/utility/font_cache_handler_win.cc#newcode11 chrome/utility/font_cache_handler_win.cc:11: FontCacheHandler::FontCacheHandler() {} On 2014/11/13 23:24:47, ananta wrote: > Nuke ...
6 years, 1 month ago (2014-11-13 23:37:59 UTC) #6
jschuh
ipc security lgtm for chrome_utility_messages.h. browser -> unsandboxed utility
6 years, 1 month ago (2014-11-14 14:27:08 UTC) #7
scottmg
https://codereview.chromium.org/724633002/diff/40001/content/common/dwrite_font_platform_win_unittest.cc File content/common/dwrite_font_platform_win_unittest.cc (right): https://codereview.chromium.org/724633002/diff/40001/content/common/dwrite_font_platform_win_unittest.cc#newcode44 content/common/dwrite_font_platform_win_unittest.cc:44: EXPECT_TRUE(BuildAndLoadFontCache(cache_file_path_)); lgtm, but I'm pretty sure this still won't ...
6 years, 1 month ago (2014-11-14 16:55:33 UTC) #8
Shrikant Kelkar
On 2014/11/14 16:55:33, scottmg wrote: > https://codereview.chromium.org/724633002/diff/40001/content/common/dwrite_font_platform_win_unittest.cc > File content/common/dwrite_font_platform_win_unittest.cc (right): > > https://codereview.chromium.org/724633002/diff/40001/content/common/dwrite_font_platform_win_unittest.cc#newcode44 > ...
6 years, 1 month ago (2014-11-14 17:21:46 UTC) #9
cpu_(ooo_6.6-7.5)
lgtm https://codereview.chromium.org/724633002/diff/60001/chrome/utility/font_cache_handler_win.h File chrome/utility/font_cache_handler_win.h (right): https://codereview.chromium.org/724633002/diff/60001/chrome/utility/font_cache_handler_win.h#newcode11 chrome/utility/font_cache_handler_win.h:11: // Handles requests to build static direct write ...
6 years, 1 month ago (2014-11-14 18:13:52 UTC) #10
Shrikant Kelkar
https://codereview.chromium.org/724633002/diff/60001/chrome/utility/font_cache_handler_win.h File chrome/utility/font_cache_handler_win.h (right): https://codereview.chromium.org/724633002/diff/60001/chrome/utility/font_cache_handler_win.h#newcode11 chrome/utility/font_cache_handler_win.h:11: // Handles requests to build static direct write font ...
6 years, 1 month ago (2014-11-14 18:51:53 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/724633002/80001
6 years, 1 month ago (2014-11-14 21:23:41 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years, 1 month ago (2014-11-14 22:18:22 UTC) #14
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/5140a1f1ba5bd57d5c7d9af04ed3eb8ac83f487d Cr-Commit-Position: refs/heads/master@{#304277}
6 years, 1 month ago (2014-11-14 22:20:02 UTC) #15
scottmg
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/729103002/ by scottmg@chromium.org. ...
6 years, 1 month ago (2014-11-15 04:03:19 UTC) #16
Shrikant Kelkar
To be more conservative in terms of working size, I have put an arbitrary limit ...
6 years, 1 month ago (2014-11-15 22:51:51 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/724633002/80002
6 years, 1 month ago (2014-11-17 20:10:21 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:80002)
6 years, 1 month ago (2014-11-17 21:00:12 UTC) #20
commit-bot: I haz the power
6 years, 1 month ago (2014-11-17 21:02:08 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/4e44258a618f23923f3671edca12cc58d83f90f3
Cr-Commit-Position: refs/heads/master@{#304474}

Powered by Google App Engine
This is Rietveld 408576698