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

Issue 1925033002: RenderText: Don't default-construct gfx::Fonts unnecessarily (Closed)

Created:
4 years, 7 months ago by tapted
Modified:
4 years, 7 months ago
CC:
chromium-reviews, derat+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

RenderText: Don't default-construct gfx::Fonts unnecessarily The default constructor for gfx::Font is expensive. Don't use it when creating text runs. Instead, reference an existing font. RenderTextMac doesn't need the gfx::Font at all, so just retain the CTFont on the run, since constructing a gfx::Font from an NSFont is also expensive. BUG=605131 Committed: https://crrev.com/45d205ff3d72b742b3c3d16c66d6074800e86baf Cr-Commit-Position: refs/heads/master@{#390556}

Patch Set 1 #

Patch Set 2 : remove gfx::Font from RTM completely #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -20 lines) Patch
M ui/gfx/render_text_harfbuzz.h View 1 chunk +3 lines, -1 line 0 comments Download
M ui/gfx/render_text_harfbuzz.cc View 5 chunks +9 lines, -7 lines 0 comments Download
M ui/gfx/render_text_mac.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M ui/gfx/render_text_mac.mm View 1 5 chunks +6 lines, -7 lines 0 comments Download
M ui/gfx/render_text_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
tapted
Hi Alexei - please take a look - this was the next biggest culprit from ...
4 years, 7 months ago (2016-04-28 14:34:52 UTC) #4
Alexei Svitkine (slow)
lgtm
4 years, 7 months ago (2016-04-28 15:12:20 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1925033002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1925033002/20001
4 years, 7 months ago (2016-04-29 00:13:51 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-04-29 01:23:31 UTC) #9
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:23:17 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/45d205ff3d72b742b3c3d16c66d6074800e86baf
Cr-Commit-Position: refs/heads/master@{#390556}

Powered by Google App Engine
This is Rietveld 408576698