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

Issue 1846433005: Implement direct write fallback proxy (Closed)

Created:
4 years, 8 months ago by Ilya Kulshin
Modified:
4 years, 8 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement direct write fallback proxy This change implements an IDWriteFontFallback that uses IPC to talk to the browser process and obtain font fallback data. This is part 2 of a three part change. 1: https://codereview.chromium.org/1878843002/ Adds support for specifying a font fallback in skia 2: https://codereview.chromium.org/1846433005/ Implements the fallback proxy in Chromium 3: https://codereview.chromium.org/1883483002/ Adds code to blink to call skia's fallback API BUG=459056 Committed: https://crrev.com/267bf5ecb13595bb8c95fd6f115e556d6c1c56d4 Cr-Commit-Position: refs/heads/master@{#388262}

Patch Set 1 #

Total comments: 28

Patch Set 2 : Style fixes #

Total comments: 10

Patch Set 3 : Update filter to initialize result.font_style #

Total comments: 4

Patch Set 4 : Rename variable to comply with style guide #

Patch Set 5 : Rebase #

Patch Set 6 : Rebase #

Patch Set 7 : Fix breaks on bots #

Patch Set 8 : More ctors/dtors #

Patch Set 9 : More clang fixes #

Patch Set 10 : Add a missing SUCCEEDED call #

Unified diffs Side-by-side diffs Delta from patch set Stats (+737 lines, -18 lines) Patch
M content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h View 4 chunks +12 lines, -0 lines 0 comments Download
M content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc View 1 2 13 chunks +121 lines, -16 lines 0 comments Download
M content/browser/renderer_host/dwrite_font_proxy_message_filter_win_unittest.cc View 1 2 3 chunks +80 lines, -0 lines 0 comments Download
M content/child/dwrite_font_proxy/dwrite_font_proxy_init_win.cc View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -2 lines 0 comments Download
M content/child/dwrite_font_proxy/dwrite_font_proxy_win.h View 1 2 chunks +8 lines, -0 lines 0 comments Download
M content/child/dwrite_font_proxy/dwrite_font_proxy_win.cc View 1 2 3 4 2 chunks +20 lines, -0 lines 0 comments Download
A content/child/dwrite_font_proxy/font_fallback_win.h View 1 2 3 4 5 6 7 8 1 chunk +56 lines, -0 lines 0 comments Download
A content/child/dwrite_font_proxy/font_fallback_win.cc View 1 2 3 4 5 6 7 1 chunk +108 lines, -0 lines 0 comments Download
A content/child/dwrite_font_proxy/font_fallback_win_unittest.cc View 1 2 3 4 5 6 1 chunk +95 lines, -0 lines 0 comments Download
M content/common/dwrite_font_proxy_messages.h View 2 chunks +29 lines, -0 lines 0 comments Download
A content/common/dwrite_text_analysis_source_win.h View 1 2 3 4 5 6 7 1 chunk +64 lines, -0 lines 0 comments Download
A content/common/dwrite_text_analysis_source_win.cc View 1 2 3 4 5 6 7 1 chunk +82 lines, -0 lines 0 comments Download
M content/content_child.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/test/dwrite_font_fake_sender_win.h View 1 2 3 4 4 chunks +19 lines, -0 lines 0 comments Download
M content/test/dwrite_font_fake_sender_win.cc View 1 2 3 4 4 chunks +28 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 27 (12 generated)
Ilya Kulshin
ptal ananta@ - content/browser/*, content/child/*, content/common/dwrite_text_analysis_source_win.*, content/test/* jschuh@ - content/common/dwrite_font_proxy_messages.h
4 years, 8 months ago (2016-04-12 21:21:13 UTC) #8
ananta
In the future, please split such patches into smaller sets. For e.g. new files can ...
4 years, 8 months ago (2016-04-12 23:44:40 UTC) #9
Ilya Kulshin
https://codereview.chromium.org/1846433005/diff/100001/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/1846433005/diff/100001/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc#newcode241 content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc:241: if (!SUCCEEDED(factory2_->GetSystemFontFallback(&font_fallback_))) On 2016/04/12 23:44:39, ananta wrote: > Please ...
4 years, 8 months ago (2016-04-13 01:33:29 UTC) #10
scottmg
https://codereview.chromium.org/1846433005/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/1846433005/diff/120001/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc#newcode237 content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc:237: result->mapped_length = text.length(); Does the rest of MapCharactersResult need ...
4 years, 8 months ago (2016-04-13 21:23:17 UTC) #11
Ilya Kulshin
https://codereview.chromium.org/1846433005/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/1846433005/diff/120001/content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc#newcode237 content/browser/renderer_host/dwrite_font_proxy_message_filter_win.cc:237: result->mapped_length = text.length(); On 2016/04/13 21:23:16, scottmg wrote: > ...
4 years, 8 months ago (2016-04-13 22:31:29 UTC) #12
scottmg
lgtm https://codereview.chromium.org/1846433005/diff/140001/content/child/dwrite_font_proxy/dwrite_font_proxy_init_win.cc File content/child/dwrite_font_proxy/dwrite_font_proxy_init_win.cc (right): https://codereview.chromium.org/1846433005/diff/140001/content/child/dwrite_font_proxy/dwrite_font_proxy_init_win.cc#newcode75 content/child/dwrite_font_proxy/dwrite_font_proxy_init_win.cc:75: mswr::ComPtr<IDWriteFontFallback> fontFallback; font_fallback
4 years, 8 months ago (2016-04-13 23:18:33 UTC) #13
ananta
https://codereview.chromium.org/1846433005/diff/100001/content/common/dwrite_text_analysis_source_win.h File content/common/dwrite_text_analysis_source_win.h (right): https://codereview.chromium.org/1846433005/diff/100001/content/common/dwrite_text_analysis_source_win.h#newcode18 content/common/dwrite_text_analysis_source_win.h:18: class CONTENT_EXPORT TextAnalysisSource On 2016/04/13 01:33:29, Ilya Kulshin wrote: ...
4 years, 8 months ago (2016-04-13 23:31:09 UTC) #14
Ilya Kulshin
https://codereview.chromium.org/1846433005/diff/100001/content/common/dwrite_text_analysis_source_win.h File content/common/dwrite_text_analysis_source_win.h (right): https://codereview.chromium.org/1846433005/diff/100001/content/common/dwrite_text_analysis_source_win.h#newcode18 content/common/dwrite_text_analysis_source_win.h:18: class CONTENT_EXPORT TextAnalysisSource On 2016/04/13 23:31:09, ananta wrote: > ...
4 years, 8 months ago (2016-04-13 23:59:40 UTC) #15
ananta
lgtm
4 years, 8 months ago (2016-04-15 20:15:51 UTC) #16
Ilya Kulshin
+jochen@ - could I get an owners approval for content/common/* and content/test/*? jschuh@ - could ...
4 years, 8 months ago (2016-04-15 20:25:46 UTC) #18
jschuh
On 2016/04/15 20:25:46, Ilya Kulshin wrote: > +jochen@ - could I get an owners approval ...
4 years, 8 months ago (2016-04-15 21:43:27 UTC) #19
jochen (gone - plz use gerrit)
lgtm
4 years, 8 months ago (2016-04-17 17:13:41 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1846433005/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1846433005/280001
4 years, 8 months ago (2016-04-19 18:45:58 UTC) #23
commit-bot: I haz the power
Committed patchset #10 (id:280001)
4 years, 8 months ago (2016-04-19 18:57:26 UTC) #25
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:14:35 UTC) #27
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/267bf5ecb13595bb8c95fd6f115e556d6c1c56d4
Cr-Commit-Position: refs/heads/master@{#388262}

Powered by Google App Engine
This is Rietveld 408576698