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

Issue 99333013: Don't check lfQuality in LOGFONT as it has no effect on rendering (Closed)

Created:
7 years ago by eae
Modified:
6 years, 10 months ago
CC:
blink-reviews
Visibility:
Public.

Description

Don't check lfQuality in LOGFONT as it has no effect on rendering Remove the LOGFONT lfQuality check in computePaintTextFlags and instead base the textFlags entierly on the system ClearType settings (and whether a font is a web font). Skia will then use this information to pick the appropriate type of font smoothing to apply (if any). BUG=249099 R=bungeman@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163507

Patch Set 1 : #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -50 lines) Patch
M Source/platform/fonts/skia/SkiaFontWin.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/platform/fonts/win/FontPlatformDataWin.h View 3 chunks +2 lines, -3 lines 0 comments Download
M Source/platform/fonts/win/FontPlatformDataWin.cpp View 11 chunks +13 lines, -45 lines 6 comments Download

Messages

Total messages: 12 (0 generated)
eae
This change is based on my understanding of how the flag is used after we ...
7 years ago (2013-12-09 04:27:59 UTC) #1
bungeman-chromium
lgtm https://codereview.chromium.org/99333013/diff/80001/Source/platform/fonts/win/FontPlatformDataWin.cpp File Source/platform/fonts/win/FontPlatformDataWin.cpp (right): https://codereview.chromium.org/99333013/diff/80001/Source/platform/fonts/win/FontPlatformDataWin.cpp#newcode88 Source/platform/fonts/win/FontPlatformDataWin.cpp:88: static uint32_t getSystemTextFlags() I have no real issue ...
7 years ago (2013-12-09 15:29:58 UTC) #2
eae
On 2013/12/09 15:29:58, bungeman2 wrote: > lgtm > > https://codereview.chromium.org/99333013/diff/80001/Source/platform/fonts/win/FontPlatformDataWin.cpp > File Source/platform/fonts/win/FontPlatformDataWin.cpp (right): > ...
7 years ago (2013-12-09 22:21:20 UTC) #3
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years ago (2013-12-09 22:22:24 UTC) #4
bungeman-chromium
On 2013/12/09 22:21:20, eae wrote: > On 2013/12/09 15:29:58, bungeman2 wrote: > > lgtm > ...
7 years ago (2013-12-09 22:24:25 UTC) #5
eae
Need r+ from Blink committer.
7 years ago (2013-12-09 23:01:40 UTC) #6
tasak
lgtm
7 years ago (2013-12-10 05:26:31 UTC) #7
eae
Thanks! To unsubscribe from this group and stop receiving emails from it, send an email ...
7 years ago (2013-12-10 05:35:59 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eae@chromium.org/99333013/80001
7 years ago (2013-12-10 05:36:12 UTC) #9
commit-bot: I haz the power
Change committed as 163507
7 years ago (2013-12-10 07:10:36 UTC) #10
bungeman-chromium
Some initial comments speculating as to why this may have caused a slowdown. https://codereview.chromium.org/99333013/diff/80001/Source/platform/fonts/win/FontPlatformDataWin.cpp File ...
6 years, 10 months ago (2014-02-10 20:59:56 UTC) #11
bungeman-skia
6 years, 10 months ago (2014-02-10 23:16:15 UTC) #12
Message was sent while issue was closed.
https://codereview.chromium.org/99333013/diff/80001/Source/platform/fonts/win...
File Source/platform/fonts/win/FontPlatformDataWin.cpp (right):

https://codereview.chromium.org/99333013/diff/80001/Source/platform/fonts/win...
Source/platform/fonts/win/FontPlatformDataWin.cpp:125: if
(isWebFont(fontFamilyName()) && !isRunningLayoutTest())
On 2014/02/10 20:59:57, bungeman2 wrote:
> Hopefully getting the family name here doesn't take too long. It seems like
> before we were going off the logfont data which was already in hand as opposed
> to going off and finding the name of the font.

Yep, this is it. Doing the work of actually digging out the name each time we
create the paint (basically every measure and draw for each bit of text) is
taking up all of the time. I ran

python tools/perf/run_benchmark -v --browser=release rasterize_and_record.top_25

locally at tip of tree with and without this 'if' (and the line below) commented
out. When commented out, the record_time is cut in half.

Powered by Google App Engine
This is Rietveld 408576698