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

Issue 304383005: Port most uses of SkOnce to SkLazyPtr. (Closed)

Created:
6 years, 6 months ago by mtklein_C
Modified:
6 years, 6 months ago
Reviewers:
mtklein, reed1
CC:
skia-review_googlegroups.com, bsalomon, robertphillips, tfarina
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : SkTypeface is created in an array #

Patch Set 3 : static #

Total comments: 5

Patch Set 4 : comment #

Patch Set 5 : might as well unref SkTypeface at exit #

Patch Set 6 : safe unref #

Patch Set 7 : merge #

Patch Set 8 : add mutex #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -124 lines) Patch
M include/core/SkPathRef.h View 1 chunk +1 line, -1 line 0 comments Download
M include/core/SkTypeface.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M include/ports/SkFontMgr.h View 1 chunk +1 line, -1 line 0 comments Download
M include/ports/SkFontMgr_indirect.h View 1 chunk +0 lines, -1 line 0 comments Download
M include/ports/SkRemotableFontMgr.h View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkFontHost.cpp View 2 chunks +6 lines, -11 lines 0 comments Download
M src/core/SkGlyphCache.cpp View 2 chunks +9 lines, -9 lines 0 comments Download
M src/core/SkLazyPtr.h View 1 2 3 4 5 6 2 chunks +0 lines, -2 lines 0 comments Download
M src/core/SkMatrix.cpp View 2 chunks +22 lines, -18 lines 0 comments Download
M src/core/SkMessageBus.h View 4 chunks +9 lines, -12 lines 0 comments Download
M src/core/SkPathRef.cpp View 2 chunks +7 lines, -9 lines 0 comments Download
M src/core/SkTypeface.cpp View 1 2 3 4 5 6 7 2 chunks +20 lines, -24 lines 0 comments Download
M src/fonts/SkRemotableFontMgr.cpp View 2 chunks +5 lines, -11 lines 0 comments Download
M src/lazy/SkDiscardableMemoryPool.cpp View 2 chunks +8 lines, -15 lines 0 comments Download
M src/ports/SkFontConfigInterface_direct.cpp View 1 2 2 chunks +7 lines, -8 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
mtklein
The follow-up where we port over most of SkOnce.
6 years, 6 months ago (2014-05-29 23:42:53 UTC) #1
tfarina
Mike, I'm copying Brian and Robert for the unnamed conversion you did below and where ...
6 years, 6 months ago (2014-05-30 04:38:48 UTC) #2
mtklein
https://codereview.chromium.org/304383005/diff/40001/src/core/SkGlyphCache.cpp File src/core/SkGlyphCache.cpp (right): https://codereview.chromium.org/304383005/diff/40001/src/core/SkGlyphCache.cpp#newcode24 src/core/SkGlyphCache.cpp:24: namespace { On 2014/05/30 04:38:48, tfarina wrote: > Mike, ...
6 years, 6 months ago (2014-05-30 13:07:52 UTC) #3
tfarina
https://codereview.chromium.org/304383005/diff/40001/src/core/SkGlyphCache.cpp File src/core/SkGlyphCache.cpp (right): https://codereview.chromium.org/304383005/diff/40001/src/core/SkGlyphCache.cpp#newcode24 src/core/SkGlyphCache.cpp:24: namespace { On 2014/05/30 13:07:53, mtklein wrote: > On ...
6 years, 6 months ago (2014-05-30 15:06:09 UTC) #4
reed1
lgtm https://codereview.chromium.org/304383005/diff/40001/include/core/SkTypeface.h File include/core/SkTypeface.h (right): https://codereview.chromium.org/304383005/diff/40001/include/core/SkTypeface.h#newcode342 include/core/SkTypeface.h:342: static SkTypeface* CreateDefault(int style); add comment why we ...
6 years, 6 months ago (2014-05-30 20:09:24 UTC) #5
mtklein
https://codereview.chromium.org/304383005/diff/40001/include/core/SkTypeface.h File include/core/SkTypeface.h (right): https://codereview.chromium.org/304383005/diff/40001/include/core/SkTypeface.h#newcode342 include/core/SkTypeface.h:342: static SkTypeface* CreateDefault(int style); On 2014/05/30 20:09:25, reed1 wrote: ...
6 years, 6 months ago (2014-05-30 20:12:05 UTC) #6
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 6 months ago (2014-05-30 20:12:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@chromium.org/304383005/60001
6 years, 6 months ago (2014-05-30 20:13:25 UTC) #8
commit-bot: I haz the power
Change committed as 15006
6 years, 6 months ago (2014-05-30 20:42:05 UTC) #9
mtklein
A revert of this CL has been created in https://codereview.chromium.org/304283007/ by mtklein@google.com. The reason for ...
6 years, 6 months ago (2014-05-30 20:59:41 UTC) #10
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 6 months ago (2014-05-30 23:51:06 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@chromium.org/304383005/90001
6 years, 6 months ago (2014-05-30 23:53:47 UTC) #12
commit-bot: I haz the power
Change committed as 15014
6 years, 6 months ago (2014-05-30 23:59:32 UTC) #13
mtklein
A revert of this CL has been created in https://codereview.chromium.org/306063004/ by mtklein@google.com. The reason for ...
6 years, 6 months ago (2014-05-31 00:12:18 UTC) #14
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 6 months ago (2014-06-02 15:39:56 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@chromium.org/304383005/130001
6 years, 6 months ago (2014-06-02 15:40:15 UTC) #16
commit-bot: I haz the power
6 years, 6 months ago (2014-06-02 15:44:30 UTC) #17
Message was sent while issue was closed.
Change committed as 78358bf624c7e7c09ffccf638c50870808d884d6

Powered by Google App Engine
This is Rietveld 408576698