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

Issue 2147733002: Remove user specified typeface id. (Closed)

Created:
4 years, 5 months ago by bungeman-skia
Modified:
4 years, 5 months ago
Reviewers:
mtklein, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Remove user specified typeface id. Now that there may be multiple font managers in a process the typeface ids must be unique across all typefaces, not just unique within a font manager. If two typefaces have the same id there will be issues in the glyph cache. All existing font managers were already doing this by calling SkFontCache::NewFontID, so centralize this in SkTypeface. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2147733002 Committed: https://skia.googlesource.com/skia/+/e3aea10428d1597838fd563c92340beaf969a9b4

Patch Set 1 #

Patch Set 2 : Remove one last straggler. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -29 lines) Patch
M include/core/SkTypeface.h View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkTypeface.cpp View 2 chunks +4 lines, -3 lines 0 comments Download
M src/fonts/SkGScalerContext.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/fonts/SkRandomScalerContext.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/fonts/SkTestScalerContext.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/ports/SkFontConfigTypeface.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/ports/SkFontHost_FreeType_common.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/ports/SkFontHost_mac.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/ports/SkFontHost_win.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/ports/SkFontMgr_android.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/ports/SkFontMgr_custom.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/ports/SkFontMgr_fontconfig.cpp View 2 chunks +1 line, -2 lines 0 comments Download
M src/ports/SkTypeface_win_dw.h View 2 chunks +3 lines, -4 lines 0 comments Download
M tests/FontMgrTest.cpp View 2 chunks +3 lines, -4 lines 0 comments Download
M tests/TypefaceTest.cpp View 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 18 (14 generated)
bungeman-skia
4 years, 5 months ago (2016-07-12 21:30:39 UTC) #7
reed1
lgtm
4 years, 5 months ago (2016-07-12 22:47:11 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2147733002/20001
4 years, 5 months ago (2016-07-13 12:16:01 UTC) #16
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 12:17:03 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/e3aea10428d1597838fd563c92340beaf969a9b4

Powered by Google App Engine
This is Rietveld 408576698