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

Issue 696913002: Retrieve font metrics from skia if DirectWrite is enabled for font metrics calculations in the chro… (Closed)

Created:
6 years, 1 month ago by ananta
Modified:
6 years, 1 month ago
Reviewers:
scottmg, sky, piman
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Retrieve font metrics from skia if DirectWrite is enabled for font metrics calculations in the chrome browser UI. The previous patch for getting the correct font metrics from DirectWrite https://codereview.chromium.org/692633003/ was wrong as it did not return the correct font metrics in all cases. Getting the metrics from skia ensures that we get the same font metrics which would be used by skia for rendering. Changes in this patch are as below:- 1. Removed DirectWrite factory code from PlatformFontWin. The PlatformFontWin::ConvertGDIFontToDirectWriteFont function has been replaced by the CreateHFontRefFromSkia function. This function is called if DirectWrite is enabled in the browser which sets a static bool on the PlatformFontWin class. BUG=428645, 427804, 427802 Committed: https://crrev.com/f2d0aaebeb1f0b390b62082f77176ee303942ffb Cr-Commit-Position: refs/heads/master@{#302547}

Patch Set 1 #

Patch Set 2 : Fixed comment #

Total comments: 6

Patch Set 3 : Code review comments from scottmg #

Patch Set 4 : Removed incorrect code #

Patch Set 5 : Fixed build error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -53 lines) Patch
M content/browser/browser_main_runner.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M ui/gfx/platform_font_win.h View 1 2 5 chunks +13 lines, -14 lines 0 comments Download
M ui/gfx/platform_font_win.cc View 1 2 3 4 chunks +49 lines, -38 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
ananta
6 years, 1 month ago (2014-11-01 00:30:58 UTC) #2
ananta
+sky
6 years, 1 month ago (2014-11-01 00:36:26 UTC) #4
scottmg
https://codereview.chromium.org/696913002/diff/20001/ui/gfx/platform_font_win.cc File ui/gfx/platform_font_win.cc (right): https://codereview.chromium.org/696913002/diff/20001/ui/gfx/platform_font_win.cc#newcode338 ui/gfx/platform_font_win.cc:338: paint.setAntiAlias(true); is there anywhere these can be tied back ...
6 years, 1 month ago (2014-11-01 00:39:16 UTC) #5
ananta
https://codereview.chromium.org/696913002/diff/20001/ui/gfx/platform_font_win.cc File ui/gfx/platform_font_win.cc (right): https://codereview.chromium.org/696913002/diff/20001/ui/gfx/platform_font_win.cc#newcode338 ui/gfx/platform_font_win.cc:338: paint.setAntiAlias(true); On 2014/11/01 00:39:15, scottmg wrote: > is there ...
6 years, 1 month ago (2014-11-01 00:56:13 UTC) #6
scottmg
lgtm
6 years, 1 month ago (2014-11-03 20:31:41 UTC) #7
sky
LGTM
6 years, 1 month ago (2014-11-03 21:59:22 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/696913002/80001
6 years, 1 month ago (2014-11-04 00:02:03 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/21917)
6 years, 1 month ago (2014-11-04 00:09:37 UTC) #12
ananta
+piman for content owners.
6 years, 1 month ago (2014-11-04 00:20:11 UTC) #14
piman
lgtm
6 years, 1 month ago (2014-11-04 00:28:28 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/696913002/80001
6 years, 1 month ago (2014-11-04 00:32:14 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years, 1 month ago (2014-11-04 02:05:59 UTC) #18
commit-bot: I haz the power
6 years, 1 month ago (2014-11-04 02:06:36 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f2d0aaebeb1f0b390b62082f77176ee303942ffb
Cr-Commit-Position: refs/heads/master@{#302547}

Powered by Google App Engine
This is Rietveld 408576698