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

Issue 227693003: Factory methods for heap-allocated SkTypeface objects. (Closed)

Created:
6 years, 8 months ago by Dominik Grewe
Modified:
6 years, 8 months ago
Reviewers:
bungeman-skia, scroggo
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Factory methods for heap-allocated SkTypeface objects. This is part of an effort to ensure that all SkPaint effects can only be allocated on the heap. This patch makes the constructors of SkTypeface and its subclasses non-public and instead provides factory methods for creating these objects on the heap. BUG=skia:2187 Committed: http://code.google.com/p/skia/source/detail?r=14080

Patch Set 1 #

Total comments: 1

Patch Set 2 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -16 lines) Patch
M src/core/SkTypeface.cpp View 1 2 chunks +7 lines, -2 lines 0 comments Download
M src/fonts/SkFontMgr_fontconfig.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/ports/SkFontConfigTypeface.h View 2 chunks +22 lines, -12 lines 0 comments Download
M src/ports/SkFontHost_fontconfig.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Dominik Grewe
PTAL, thanks.
6 years, 8 months ago (2014-04-07 16:05:09 UTC) #1
scroggo
lgtm, but cc'ing Ben, who works on our fonts. https://codereview.chromium.org/227693003/diff/1/src/core/SkTypeface.cpp File src/core/SkTypeface.cpp (left): https://codereview.chromium.org/227693003/diff/1/src/core/SkTypeface.cpp#oldcode88 src/core/SkTypeface.cpp:88: ...
6 years, 8 months ago (2014-04-07 16:46:12 UTC) #2
bungeman-skia
I'll second scroggos's comment, in that we do need to fix that at some point. ...
6 years, 8 months ago (2014-04-07 17:35:20 UTC) #3
Dominik Grewe
On 2014/04/07 17:35:20, bungeman1 wrote: > I'll second scroggos's comment, in that we do need ...
6 years, 8 months ago (2014-04-07 17:40:31 UTC) #4
Dominik Grewe
The CQ bit was checked by dominikg@chromium.org
6 years, 8 months ago (2014-04-07 18:17:01 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/dominikg@chromium.org/227693003/20001
6 years, 8 months ago (2014-04-07 18:17:11 UTC) #6
commit-bot: I haz the power
6 years, 8 months ago (2014-04-07 19:34:27 UTC) #7
Message was sent while issue was closed.
Change committed as 14080

Powered by Google App Engine
This is Rietveld 408576698