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

Issue 7866019: New implementation of font precache on Windows. (Closed)

Created:
9 years, 3 months ago by arthurhsu
Modified:
9 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, jam, dpranke+watch-content_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, Lei Zhang, vandebo (ex-Chrome)
Visibility:
Public.

Description

New implementation of font precache on Windows. BUG=94421 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=101911

Patch Set 1 #

Total comments: 3

Patch Set 2 : Update per code review #

Total comments: 6

Patch Set 3 : Update per code review #

Total comments: 4

Patch Set 4 : Update per code review #

Total comments: 2

Patch Set 5 : Update per code review #

Total comments: 4

Patch Set 6 : Update per code review #

Patch Set 7 : Fix Linux/Mac build break #

Total comments: 10

Patch Set 8 : Update for code review #

Total comments: 2

Patch Set 9 : Fix final nits #

Patch Set 10 : Merge to latest trunk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -46 lines) Patch
M chrome/common/chrome_utility_messages.h View 1 2 3 4 5 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/renderer/chrome_render_process_observer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/service/service_utility_process_host.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/service/service_utility_process_host.cc View 1 2 3 4 5 6 7 4 chunks +10 lines, -2 lines 0 comments Download
M chrome/utility/chrome_content_utility_client.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 6 7 4 chunks +15 lines, -2 lines 0 comments Download
M content/common/child_process_host.h View 1 2 3 4 5 6 7 8 4 chunks +34 lines, -1 line 0 comments Download
M content/common/child_process_host.cc View 1 2 3 4 5 6 7 8 3 chunks +113 lines, -24 lines 0 comments Download
M content/common/child_process_messages.h View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -7 lines 0 comments Download
M content/renderer/render_thread.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/render_thread.cc View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -1 line 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 34 (0 generated)
arthurhsu
9 years, 3 months ago (2011-09-13 18:36:20 UTC) #1
arthurhsu
If you don't have time to review this CL, please let me know. Thanks.
9 years, 3 months ago (2011-09-13 18:36:58 UTC) #2
nsylvain
The code itself looks pretty good, but i haven't really written code in chrome in ...
9 years, 3 months ago (2011-09-13 19:32:17 UTC) #3
arthurhsu
On 2011/09/13 19:32:17, nsylvain wrote: > The code itself looks pretty good, but i haven't ...
9 years, 3 months ago (2011-09-13 19:41:33 UTC) #4
arthurhsu
On 2011/09/13 19:41:33, arthurhsu wrote: > I don't know how to get renderer pid within ...
9 years, 3 months ago (2011-09-13 20:01:43 UTC) #5
nsylvain
On Tue, Sep 13, 2011 at 12:41 PM, <arthurhsu@chromium.org> wrote: > On 2011/09/13 19:32:17, nsylvain ...
9 years, 3 months ago (2011-09-13 20:16:51 UTC) #6
arthurhsu
On 2011/09/13 20:16:51, nsylvain wrote: > I don't see that in the code. I see ...
9 years, 3 months ago (2011-09-13 20:21:33 UTC) #7
nsylvain
http://codereview.chromium.org/7866019/diff/1/chrome/utility/chrome_content_utility_client.cc File chrome/utility/chrome_content_utility_client.cc (right): http://codereview.chromium.org/7866019/diff/1/chrome/utility/chrome_content_utility_client.cc#newcode218 chrome/utility/chrome_content_utility_client.cc:218: int rv = GetFontData(hdc, table, offset, buffer, length); The ...
9 years, 3 months ago (2011-09-13 20:28:51 UTC) #8
arthurhsu
On 2011/09/13 20:28:51, nsylvain wrote: > http://codereview.chromium.org/7866019/diff/1/chrome/utility/chrome_content_utility_client.cc > File chrome/utility/chrome_content_utility_client.cc (right): > > http://codereview.chromium.org/7866019/diff/1/chrome/utility/chrome_content_utility_client.cc#newcode218 > ...
9 years, 3 months ago (2011-09-13 20:38:18 UTC) #9
arthurhsu
http://codereview.chromium.org/7866019/diff/1/chrome/common/chrome_utility_messages.h File chrome/common/chrome_utility_messages.h (right): http://codereview.chromium.org/7866019/diff/1/chrome/common/chrome_utility_messages.h#newcode151 chrome/common/chrome_utility_messages.h:151: int /*pid*/) On 2011/09/13 19:32:18, nsylvain wrote: > should ...
9 years, 3 months ago (2011-09-13 20:58:32 UTC) #10
nsylvain
On 2011/09/13 20:38:18, arthurhsu wrote: > On 2011/09/13 20:28:51, nsylvain wrote: > > > http://codereview.chromium.org/7866019/diff/1/chrome/utility/chrome_content_utility_client.cc ...
9 years, 3 months ago (2011-09-13 21:35:47 UTC) #11
arthurhsu
Ricardo, please let me know when you have time to review this. This CL is ...
9 years, 3 months ago (2011-09-13 22:33:13 UTC) #12
rvargas (doing something else)
There is already a one to one mapping from child_process_host to child, so it doesn't ...
9 years, 3 months ago (2011-09-13 23:40:30 UTC) #13
arthurhsu
The PreCacheFont is called from two components. One is the service utility process, which is ...
9 years, 3 months ago (2011-09-14 02:06:56 UTC) #14
rvargas (doing something else)
I see. We still should be able to remove the PIDs and the map though. ...
9 years, 3 months ago (2011-09-14 03:05:04 UTC) #15
arthurhsu
Do you mean remove the pid from cache impl, or remove pid from IPC message ...
9 years, 3 months ago (2011-09-14 20:25:48 UTC) #16
rvargas (doing something else)
On 2011/09/14 20:25:48, arthurhsu wrote: > Do you mean remove the pid from cache impl, ...
9 years, 3 months ago (2011-09-14 21:19:47 UTC) #17
rvargas (doing something else)
http://codereview.chromium.org/7866019/diff/8004/content/common/child_process_host.h File content/common/child_process_host.h (right): http://codereview.chromium.org/7866019/diff/8004/content/common/child_process_host.h#newcode178 content/common/child_process_host.h:178: friend struct DefaultSingletonTraits<FontCache>; Sorry I was not clear, struct ...
9 years, 3 months ago (2011-09-14 21:21:36 UTC) #18
arthurhsu
I also removed the pid from service utility message. As to the pid used in ...
9 years, 3 months ago (2011-09-15 05:52:47 UTC) #19
jam
http://codereview.chromium.org/7866019/diff/4024/chrome/common/chrome_utility_messages.h File chrome/common/chrome_utility_messages.h (right): http://codereview.chromium.org/7866019/diff/4024/chrome/common/chrome_utility_messages.h#newcode153 chrome/common/chrome_utility_messages.h:153: IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ReleaseCachedFonts) instead of declaring this message for utility/renderer, it ...
9 years, 3 months ago (2011-09-15 16:18:23 UTC) #20
rvargas (doing something else)
On 2011/09/15 05:52:47, arthurhsu wrote: > I also removed the pid from service utility message. ...
9 years, 3 months ago (2011-09-15 18:19:26 UTC) #21
arthurhsu
On 2011/09/15 18:19:26, rvargas wrote: > On 2011/09/15 05:52:47, arthurhsu wrote: > > I also ...
9 years, 3 months ago (2011-09-15 18:38:29 UTC) #22
rvargas (doing something else)
On 2011/09/15 18:38:29, arthurhsu wrote: > On 2011/09/15 18:19:26, rvargas wrote: > > On 2011/09/15 ...
9 years, 3 months ago (2011-09-15 18:54:36 UTC) #23
arthurhsu
I have already removed all pid from messages. For cache implementation, PID is introduced to ...
9 years, 3 months ago (2011-09-15 19:05:00 UTC) #24
rvargas (doing something else)
On 2011/09/15 19:05:00, arthurhsu wrote: > I have already removed all pid from messages. > ...
9 years, 3 months ago (2011-09-15 19:25:51 UTC) #25
arthurhsu
On 2011/09/15 19:25:51, rvargas wrote: > On 2011/09/15 19:05:00, arthurhsu wrote: > > I have ...
9 years, 3 months ago (2011-09-15 19:41:02 UTC) #26
rvargas (doing something else)
> A renderer can/will request fontX for multiple times to avoid GDI swapping the > ...
9 years, 3 months ago (2011-09-15 21:50:10 UTC) #27
arthurhsu
http://codereview.chromium.org/7866019/diff/4024/chrome/common/chrome_utility_messages.h File chrome/common/chrome_utility_messages.h (right): http://codereview.chromium.org/7866019/diff/4024/chrome/common/chrome_utility_messages.h#newcode153 chrome/common/chrome_utility_messages.h:153: IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ReleaseCachedFonts) On 2011/09/15 16:18:23, John Abd-El-Malek wrote: > instead ...
9 years, 3 months ago (2011-09-16 02:14:06 UTC) #28
jam
http://codereview.chromium.org/7866019/diff/18014/chrome/service/service_utility_process_host.cc File chrome/service/service_utility_process_host.cc (right): http://codereview.chromium.org/7866019/diff/18014/chrome/service/service_utility_process_host.cc#newcode122 chrome/service/service_utility_process_host.cc:122: unique_process_id_ = ChildProcessInfo::GenerateChildProcessUniqueId(); we usually set this in the ...
9 years, 3 months ago (2011-09-19 16:31:17 UTC) #29
arthurhsu
http://codereview.chromium.org/7866019/diff/18014/chrome/service/service_utility_process_host.cc File chrome/service/service_utility_process_host.cc (right): http://codereview.chromium.org/7866019/diff/18014/chrome/service/service_utility_process_host.cc#newcode122 chrome/service/service_utility_process_host.cc:122: unique_process_id_ = ChildProcessInfo::GenerateChildProcessUniqueId(); On 2011/09/19 16:31:17, John Abd-El-Malek wrote: ...
9 years, 3 months ago (2011-09-19 18:22:51 UTC) #30
jam
lgtm http://codereview.chromium.org/7866019/diff/27001/content/common/child_process_host.h File content/common/child_process_host.h (right): http://codereview.chromium.org/7866019/diff/27001/content/common/child_process_host.h#newcode93 content/common/child_process_host.h:93: static void PreCacheFont(LOGFONT font, int pid); nit: here ...
9 years, 3 months ago (2011-09-19 21:27:48 UTC) #31
arthurhsu
http://codereview.chromium.org/7866019/diff/27001/content/common/child_process_host.h File content/common/child_process_host.h (right): http://codereview.chromium.org/7866019/diff/27001/content/common/child_process_host.h#newcode93 content/common/child_process_host.h:93: static void PreCacheFont(LOGFONT font, int pid); On 2011/09/19 21:27:49, ...
9 years, 3 months ago (2011-09-19 22:47:31 UTC) #32
commit-bot: I haz the power
Can't apply patch for file chrome/renderer/chrome_render_process_observer.cc. While running patch -p1 --forward --force; patching file chrome/renderer/chrome_render_process_observer.cc ...
9 years, 3 months ago (2011-09-20 00:35:33 UTC) #33
commit-bot: I haz the power
9 years, 3 months ago (2011-09-20 03:33:24 UTC) #34
Change committed as 101911

Powered by Google App Engine
This is Rietveld 408576698