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

Issue 1914443002: Revert of RenderTextMac: Cache the SkTypeface on the TextRun (Closed)

Created:
4 years, 8 months ago by kjellander_chromium
Modified:
4 years, 8 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

Revert of RenderTextMac: Cache the SkTypeface on the TextRun (patchset #4 id:80001 of https://codereview.chromium.org/1907833002/ ) Reason for revert: Seems to break gfx_unittests on Mac10.11 Tests: https://build.chromium.org/p/chromium.mac/builders/Mac10.11%20Tests/builds/1384 See https://findit-for-me.appspot.com/build-failure?url=https://build.chromium.org/p/chromium.mac/builders/Mac10.11%20Tests/builds/1384 for more info. Original issue's description: > RenderTextMac: Cache the SkTypeface on the TextRun > > SkiaTextRenderer::SetFontWithStyle() uses gfx::Font::Derive() which is > slow. SetFontWithStyle is only used on Mac but, also, there was actually > never anything to derive on Mac, since RenderTextMac does (on every > *paint*): > CTFontRef = <get font from CTRun> > gfx::Font = <wrap CTFontRef> > CFFontRef = <unwrap from gfx:Font> # cheap > style = <extract style from CTFontRef> > gfx::Font_2 = Derive(apply <style> to gfx::Font) # A "no-op", but expensive > > So remove SkiaTextRenderer::SetFontWithStyle() since nothing needs it. > > Then store the SkTypeface on the RenderTextMac TextRun. This saves a > lookup on each paint and is consistent with RenderTextHarfbuzz. > > BUG=605131, 605136 TBR=asvitkine@chromium.org,tapted@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=605131, 605136 Committed: https://crrev.com/6371bc49fe4c8e605a1b0a98e417e6aea80a5168 Cr-Commit-Position: refs/heads/master@{#389076}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -15 lines) Patch
M ui/gfx/render_text.h View 2 chunks +5 lines, -0 lines 0 comments Download
M ui/gfx/render_text.cc View 3 chunks +30 lines, -0 lines 0 comments Download
M ui/gfx/render_text_harfbuzz.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/render_text_harfbuzz.cc View 2 chunks +2 lines, -9 lines 0 comments Download
M ui/gfx/render_text_mac.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/gfx/render_text_mac.mm View 3 chunks +19 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
kjellander_chromium
Created Revert of RenderTextMac: Cache the SkTypeface on the TextRun
4 years, 8 months ago (2016-04-22 11:23:32 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1914443002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1914443002/1
4 years, 8 months ago (2016-04-22 11:23:41 UTC) #2
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-04-22 11:24:12 UTC) #4
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:46:18 UTC) #6
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/6371bc49fe4c8e605a1b0a98e417e6aea80a5168
Cr-Commit-Position: refs/heads/master@{#389076}

Powered by Google App Engine
This is Rietveld 408576698