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

Issue 1438603002: Create direct write font proxy classes and unit tests. (Closed)

Created:
5 years, 1 month ago by Ilya Kulshin
Modified:
5 years ago
CC:
asvitkine+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, gab, jschuh, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Create direct write font proxy classes and unit tests. BUG=525142 Committed: https://crrev.com/42290cb91a66566637a1715737b1961a8480b934 Cr-Commit-Position: refs/heads/master@{#363785} Committed: https://crrev.com/772bb2e55ce932909dc9ac934eabb4c47dd638d4 Cr-Commit-Position: refs/heads/master@{#364445} Committed: https://crrev.com/4039fd5b32b74b01866ca4c1ce73998f19320de1 Cr-Commit-Position: refs/heads/master@{#365122}

Patch Set 1 #

Total comments: 34

Patch Set 2 : Minor tweaks from review comments #

Total comments: 2

Patch Set 3 : moving direct write init onto file thread #

Patch Set 4 : #

Patch Set 5 : Adding crash logging #

Total comments: 10

Patch Set 6 : Add OWNERS and remove extra copy of init code #

Patch Set 7 : Merge to origin/master #

Total comments: 24

Patch Set 8 : Fix bug that would not load the system font path in release. Also minor formatting tweaks and refac… #

Total comments: 36

Patch Set 9 : More fixes #

Total comments: 30

Patch Set 10 : Minor tweaks, mostly renames and comments #

Patch Set 11 : Merge to upstream changes #

Patch Set 12 : Fix compile error #

Patch Set 13 : Fix clang compile error #

Patch Set 14 : More compile fixes #

Total comments: 4

Patch Set 15 : #

Patch Set 16 : Disable font proxy unit tests when direct write is not supported. #

Patch Set 17 : Fix UT crash on Vista and XP #

Patch Set 18 : Merge to head #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2474 lines, -63 lines) Patch
A content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +65 lines, -0 lines 0 comments Download
A content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +345 lines, -0 lines 0 comments Download
A content/browser/renderer_host/dwrite_font_proxy_message_filter_win_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +145 lines, -0 lines 0 comments Download
A content/child/dwrite_font_proxy/OWNERS View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
A content/child/dwrite_font_proxy/dwrite_font_proxy_init_win.h View 1 1 chunk +30 lines, -0 lines 0 comments Download
A content/child/dwrite_font_proxy/dwrite_font_proxy_init_win.cc View 1 2 3 4 5 6 7 1 chunk +118 lines, -0 lines 0 comments Download
A content/child/dwrite_font_proxy/dwrite_font_proxy_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +202 lines, -0 lines 0 comments Download
A content/child/dwrite_font_proxy/dwrite_font_proxy_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +514 lines, -0 lines 0 comments Download
A content/child/dwrite_font_proxy/dwrite_font_proxy_win_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +378 lines, -0 lines 0 comments Download
A content/child/dwrite_font_proxy/dwrite_localized_strings_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +57 lines, -0 lines 0 comments Download
A content/child/dwrite_font_proxy/dwrite_localized_strings_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +91 lines, -0 lines 0 comments Download
M content/common/content_message_generator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -0 lines 0 comments Download
A content/common/dwrite_font_proxy_messages.h View 1 2 3 4 5 6 7 8 9 1 chunk +39 lines, -0 lines 0 comments Download
M content/common/font_warmup_win.h View 1 chunk +18 lines, -0 lines 0 comments Download
M content/common/font_warmup_win.cc View 2 chunks +50 lines, -50 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_child.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +4 lines, -0 lines 0 comments Download
A content/test/dwrite_font_fake_sender_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +160 lines, -0 lines 0 comments Download
A content/test/dwrite_font_fake_sender_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +174 lines, -0 lines 0 comments Download
M ipc/ipc_message_start.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +43 lines, -0 lines 0 comments Download
M ui/gfx/win/direct_write.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M ui/gfx/win/direct_write.cc View 1 2 3 3 chunks +19 lines, -13 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 72 (29 generated)
Ilya Kulshin
This is part 1 of the split of issue 1378353006. Part 2 is issue 1432123002. ...
5 years, 1 month ago (2015-11-11 02:17:35 UTC) #2
jam
readding jschuh. he should review the core direct write font logic i mostly before was ...
5 years, 1 month ago (2015-11-11 23:03:16 UTC) #4
jschuh
ananta@ - I'll give this a pass and cover the IPC security stuff as well, ...
5 years, 1 month ago (2015-11-12 23:38:53 UTC) #6
Ilya Kulshin
+ananta
5 years, 1 month ago (2015-11-12 23:39:05 UTC) #7
ananta
+scottmg
5 years, 1 month ago (2015-11-12 23:42:37 UTC) #10
ananta
Have some questions about the approach. Based on a cursory reading of the patch it ...
5 years, 1 month ago (2015-11-13 00:08:10 UTC) #11
Ilya Kulshin
Regarding ananta@'s concerns: > Have some questions about the approach. > Based on a cursory ...
5 years, 1 month ago (2015-11-13 00:41:12 UTC) #12
scottmg
Just some superficial things for now, still trying to absorb all this. https://codereview.chromium.org/1438603002/diff/1/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc File content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc ...
5 years, 1 month ago (2015-11-13 00:51:46 UTC) #13
Ilya Kulshin
https://codereview.chromium.org/1438603002/diff/1/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc File content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc (right): https://codereview.chromium.org/1438603002/diff/1/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc#newcode52 content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc:52: // weights, On 2015/11/13 00:51:46, scottmg wrote: > Reformat ...
5 years, 1 month ago (2015-11-14 00:25:34 UTC) #14
ananta
https://codereview.chromium.org/1438603002/diff/20001/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc File content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc (right): https://codereview.chromium.org/1438603002/diff/20001/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc#newcode66 content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc:66: DWriteFontProxyMessageFilter::DWriteFontProxyMessageFilter() The Browser message filter is invoked on the ...
5 years, 1 month ago (2015-11-16 23:03:03 UTC) #15
Ilya Kulshin
ptal. https://codereview.chromium.org/1438603002/diff/20001/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc File content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc (right): https://codereview.chromium.org/1438603002/diff/20001/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc#newcode66 content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc:66: DWriteFontProxyMessageFilter::DWriteFontProxyMessageFilter() On 2015/11/16 23:03:03, ananta wrote: > The ...
5 years, 1 month ago (2015-11-17 22:49:36 UTC) #16
scottmg
Do we do SetCrashKeyValue("font_key_name", ...) anywhere? https://code.google.com/p/chromium/codesearch#chromium/src/content/common/dwrite_font_platform_win.cc&l=595 It might be useful to see if we ...
5 years, 1 month ago (2015-11-18 00:11:36 UTC) #17
Ilya Kulshin
Added crash key logging to family loading, which is where the bulk of this code ...
5 years, 1 month ago (2015-11-18 22:43:02 UTC) #18
scottmg
https://codereview.chromium.org/1438603002/diff/80001/content/child/dwrite_font_proxy/dwrite_font_proxy_win.cc File content/child/dwrite_font_proxy/dwrite_font_proxy_win.cc (right): https://codereview.chromium.org/1438603002/diff/80001/content/child/dwrite_font_proxy/dwrite_font_proxy_win.cc#newcode373 content/child/dwrite_font_proxy/dwrite_font_proxy_win.cc:373: base::WideToUTF8(family_name_)); I think we're more likely to see a ...
5 years, 1 month ago (2015-11-18 22:45:48 UTC) #19
jschuh
lgtm for ipc security
5 years, 1 month ago (2015-11-18 23:20:20 UTC) #20
scottmg
lgtm https://codereview.chromium.org/1438603002/diff/80001/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc File content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc (right): https://codereview.chromium.org/1438603002/diff/80001/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc#newcode259 content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc:259: local_loader->GetFilePathLengthFromKey(key, key_size, &path_length); Check HR here.
5 years, 1 month ago (2015-11-18 23:35:44 UTC) #21
jam
https://codereview.chromium.org/1438603002/diff/80001/content/child/dwrite_font_proxy/dwrite_font_proxy_init_win.h File content/child/dwrite_font_proxy/dwrite_font_proxy_init_win.h (right): https://codereview.chromium.org/1438603002/diff/80001/content/child/dwrite_font_proxy/dwrite_font_proxy_init_win.h#newcode1 content/child/dwrite_font_proxy/dwrite_font_proxy_init_win.h:1: // Copyright 2015 The Chromium Authors. All rights reserved. ...
5 years, 1 month ago (2015-11-20 17:39:32 UTC) #22
Ilya Kulshin
ptal. +asvitkine for tools/metrics/histograms https://codereview.chromium.org/1438603002/diff/80001/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc File content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc (right): https://codereview.chromium.org/1438603002/diff/80001/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc#newcode259 content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc:259: local_loader->GetFilePathLengthFromKey(key, key_size, &path_length); On 2015/11/18 ...
5 years, 1 month ago (2015-11-20 22:10:58 UTC) #24
Alexei Svitkine (slow)
https://codereview.chromium.org/1438603002/diff/120001/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc File content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc (right): https://codereview.chromium.org/1438603002/diff/120001/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc#newcode71 content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc:71: DCHECK(SHGetSpecialFolderPath(NULL /* hwndOwner - reserved */, I don't think ...
5 years, 1 month ago (2015-11-23 16:25:40 UTC) #25
jam
rubberstamp lgtm, deferring to other reviewers (my comments have been addressed)
5 years ago (2015-11-24 00:11:31 UTC) #26
Ilya Kulshin
ptal. https://codereview.chromium.org/1438603002/diff/120001/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc File content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc (right): https://codereview.chromium.org/1438603002/diff/120001/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc#newcode71 content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc:71: DCHECK(SHGetSpecialFolderPath(NULL /* hwndOwner - reserved */, On 2015/11/23 ...
5 years ago (2015-11-24 01:45:27 UTC) #27
Alexei Svitkine (slow)
Sorry, more comments. It's still a big change... https://codereview.chromium.org/1438603002/diff/120001/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h File content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h (right): https://codereview.chromium.org/1438603002/diff/120001/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h#newcode29 content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h:29: On ...
5 years ago (2015-11-24 16:42:36 UTC) #28
Ilya Kulshin
https://codereview.chromium.org/1438603002/diff/140001/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc File content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc (right): https://codereview.chromium.org/1438603002/diff/140001/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc#newcode71 content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc:71: BOOL result = SHGetSpecialFolderPath(NULL /* hwndOwner - reserved */, ...
5 years ago (2015-11-25 02:40:48 UTC) #29
Alexei Svitkine (slow)
https://codereview.chromium.org/1438603002/diff/160001/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc File content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc (right): https://codereview.chromium.org/1438603002/diff/160001/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc#newcode64 content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc:64: const base::string16 GetWindowsFontsPath() { Nit: No const on return ...
5 years ago (2015-11-25 20:17:46 UTC) #30
Ilya Kulshin
https://codereview.chromium.org/1438603002/diff/160001/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc File content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc (right): https://codereview.chromium.org/1438603002/diff/160001/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc#newcode64 content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc:64: const base::string16 GetWindowsFontsPath() { On 2015/11/25 20:17:45, Alexei Svitkine ...
5 years ago (2015-12-02 02:23:02 UTC) #31
Alexei Svitkine (slow)
lgtm
5 years ago (2015-12-03 18:50:23 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1438603002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1438603002/220001
5 years ago (2015-12-08 19:07:10 UTC) #37
Ilya Kulshin
Can I get a new set of LGTMs, since I made a change since the ...
5 years ago (2015-12-08 19:13:58 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1438603002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1438603002/220001
5 years ago (2015-12-08 21:04:56 UTC) #41
Alexei Svitkine (slow)
lgtm
5 years ago (2015-12-08 21:11:13 UTC) #42
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years ago (2015-12-08 21:42:12 UTC) #44
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/42290cb91a66566637a1715737b1961a8480b934 Cr-Commit-Position: refs/heads/master@{#363785}
5 years ago (2015-12-08 21:43:10 UTC) #46
Nico
clang complains: In file included from ..\..\content\browser\renderer_host\dwrite_font_proxy_message_filter_win.cc:5: ..\..\content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h(30,3) : error: [chromium-style] Classes that are ref-counted ...
5 years ago (2015-12-08 22:28:20 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1438603002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1438603002/260001
5 years ago (2015-12-10 00:43:39 UTC) #52
dcheng
A couple more clang warnings that would be nice to fix before this lands https://codereview.chromium.org/1438603002/diff/260001/content/test/dwrite_font_fake_sender_win.h ...
5 years ago (2015-12-10 01:05:29 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1438603002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1438603002/280001
5 years ago (2015-12-10 19:39:29 UTC) #58
commit-bot: I haz the power
Committed patchset #15 (id:280001)
5 years ago (2015-12-10 19:56:07 UTC) #60
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/772bb2e55ce932909dc9ac934eabb4c47dd638d4 Cr-Commit-Position: refs/heads/master@{#364445}
5 years ago (2015-12-10 19:57:24 UTC) #62
Marijn Kruisselbrink
I reverted this (for the second time) in https://codereview.chromium.org/1514183002. Please make sure you actually fix ...
5 years ago (2015-12-10 21:47:55 UTC) #63
Ilya Kulshin
Merge to head
5 years ago (2015-12-11 21:11:41 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1438603002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1438603002/340001
5 years ago (2015-12-14 22:15:20 UTC) #68
commit-bot: I haz the power
Committed patchset #18 (id:340001)
5 years ago (2015-12-14 23:13:03 UTC) #70
commit-bot: I haz the power
5 years ago (2015-12-14 23:14:30 UTC) #72
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/4039fd5b32b74b01866ca4c1ce73998f19320de1
Cr-Commit-Position: refs/heads/master@{#365122}

Powered by Google App Engine
This is Rietveld 408576698