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

Issue 1321243004: Stop using SkScalerContext::getAdvance() in SkGlyphCache. (Closed)

Created:
5 years, 3 months ago by mtklein_C
Modified:
5 years, 3 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Stop using SkScalerContext::getAdvance() in SkGlyphCache. We think it'll simplify things to just always get the full metrics. On most platforms, it's no different, and we think the platforms that do differ (FreeType) will be nearly just as cheap. Removing this distinction helps us make SkGlyphCaches concurrent by removing a state (we-have-only-advances) from its logical state machine. We see no significant changes running SKPs before and after this CL. That makes sense, of course, because the SKPs bake some of this into drawPosText. BUG=skia: Committed: https://skia.googlesource.com/skia/+/518a2923f11b819fa44ed5cff54155326959540f

Patch Set 1 #

Total comments: 2

Patch Set 2 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -35 lines) Patch
M src/core/SkGlyphCache.h View 1 2 chunks +4 lines, -11 lines 0 comments Download
M src/core/SkGlyphCache.cpp View 3 chunks +13 lines, -24 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1321243004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1321243004/1
5 years, 3 months ago (2015-09-01 18:00:23 UTC) #2
mtklein_C
5 years, 3 months ago (2015-09-01 18:01:06 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-01 18:05:15 UTC) #6
herb_g
There could be more collapsing of code, but that would only make the merge with ...
5 years, 3 months ago (2015-09-01 18:24:03 UTC) #7
mtklein_C
agreed https://codereview.chromium.org/1321243004/diff/1/src/core/SkGlyphCache.h File src/core/SkGlyphCache.h (left): https://codereview.chromium.org/1321243004/diff/1/src/core/SkGlyphCache.h#oldcode221 src/core/SkGlyphCache.h:221: // Return a new SkGlyph for the glyph ...
5 years, 3 months ago (2015-09-01 18:26:02 UTC) #8
herb_g
lgtm
5 years, 3 months ago (2015-09-01 18:27:29 UTC) #9
bungeman-skia
lgtm
5 years, 3 months ago (2015-09-01 18:39:39 UTC) #10
reed1
band-wagon-lgtm
5 years, 3 months ago (2015-09-01 19:20:27 UTC) #11
mtklein
lgtm We're going on an adventure!
5 years, 3 months ago (2015-09-01 19:26:08 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1321243004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1321243004/20001
5 years, 3 months ago (2015-09-01 19:26:19 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/518a2923f11b819fa44ed5cff54155326959540f
5 years, 3 months ago (2015-09-01 19:32:27 UTC) #16
mtklein
5 years, 2 months ago (2015-10-06 14:00:21 UTC) #17
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/1383403003/ by mtklein@google.com.

The reason for reverting is: Suspect this is the cause of regressions in
crbug.com/527445.  It's triggering on Windows and Linux, where getting advances
does less than getting full metrics.  It's not triggering on Mac, where this CL
was a no-op..

Powered by Google App Engine
This is Rietveld 408576698