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

Issue 1322933005: Port uses of SkLazyPtr to SkOncePtr. (Closed)

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

Description

Port uses of SkLazyPtr to SkOncePtr. This gives SkOncePtr a non-trivial destructor that uses std::default_delete by default. This is overrideable, as seen in SkColorTable. SK_DECLARE_STATIC_ONCE_PTR still just leaves its pointers hanging at EOP. BUG=skia: No public API changes. TBR=reed@google.com Committed: https://skia.googlesource.com/skia/+/a1254acdb344174e761f5061c820559dab64a74c Committed: https://skia.googlesource.com/skia/+/6c59d80858f453a426df9b07fdf3a8cc01e0b906

Patch Set 1 #

Patch Set 2 : fix build #

Patch Set 3 : back to custom free #

Patch Set 4 : update test #

Patch Set 5 : the rest #

Total comments: 6

Patch Set 6 : inline #

Patch Set 7 : name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -467 lines) Patch
M include/core/SkColorTable.h View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
D include/core/SkLazyPtr.h View 1 2 3 4 1 chunk +0 lines, -188 lines 0 comments Download
M include/core/SkTypeface.h View 2 chunks +3 lines, -6 lines 0 comments Download
M include/private/SkOncePtr.h View 1 2 3 4 5 6 3 chunks +12 lines, -11 lines 0 comments Download
M src/core/SkBigPicture.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/core/SkBigPicture.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M src/core/SkColorTable.cpp View 1 2 3 4 5 1 chunk +3 lines, -15 lines 0 comments Download
M src/core/SkData.cpp View 1 2 3 4 2 chunks +3 lines, -8 lines 0 comments Download
M src/core/SkFontMgr.cpp View 1 2 3 4 2 chunks +6 lines, -10 lines 0 comments Download
M src/core/SkGlyphCache.cpp View 1 2 3 4 3 chunks +3 lines, -6 lines 0 comments Download
M src/core/SkImageFilter.cpp View 1 2 3 4 2 chunks +4 lines, -9 lines 0 comments Download
M src/core/SkMessageBus.h View 1 2 3 4 2 chunks +6 lines, -9 lines 0 comments Download
M src/core/SkMiniRecorder.cpp View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M src/core/SkPathRef.cpp View 1 2 3 4 3 chunks +8 lines, -12 lines 0 comments Download
M src/core/SkTypeface.cpp View 1 2 3 4 3 chunks +17 lines, -36 lines 0 comments Download
M src/core/SkXfermode.cpp View 1 2 3 4 3 chunks +9 lines, -16 lines 0 comments Download
M src/fonts/SkRemotableFontMgr.cpp View 1 2 3 4 2 chunks +3 lines, -9 lines 0 comments Download
M src/lazy/SkDiscardableMemoryPool.cpp View 1 2 3 4 2 chunks +7 lines, -12 lines 0 comments Download
M src/opts/opts_check_x86.cpp View 1 2 3 4 4 chunks +4 lines, -6 lines 0 comments Download
M src/pdf/SkPDFGraphicState.cpp View 1 2 3 4 5 chunks +7 lines, -19 lines 0 comments Download
M src/pdf/SkPDFShader.cpp View 1 2 3 4 4 chunks +4 lines, -9 lines 0 comments Download
M src/utils/SkEventTracer.cpp View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
D tests/LazyPtrTest.cpp View 1 chunk +0 lines, -70 lines 0 comments Download
M tests/OncePtrTest.cpp View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 31 (12 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/1322933005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1322933005/60001
5 years, 3 months ago (2015-09-08 16:05:31 UTC) #2
mtklein_C
5 years, 3 months ago (2015-09-08 16:11:12 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-08 16:20:22 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1322933005/70011 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1322933005/70011
5 years, 3 months ago (2015-09-08 17:07:56 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-08 17:13:09 UTC) #10
mtklein_C
I was Feeling Lucky so I did everything SkLazyPtr related.
5 years, 3 months ago (2015-09-08 17:28:08 UTC) #11
herb_g
https://codereview.chromium.org/1322933005/diff/70011/include/core/SkColorTable.h File include/core/SkColorTable.h (right): https://codereview.chromium.org/1322933005/diff/70011/include/core/SkColorTable.h#newcode64 include/core/SkColorTable.h:64: struct Free16BitCache { void operator()(uint16_t* cache) const; }; Consider ...
5 years, 3 months ago (2015-09-08 20:24:34 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1322933005/110001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1322933005/110001
5 years, 3 months ago (2015-09-08 20:34:03 UTC) #14
mtklein_C
https://codereview.chromium.org/1322933005/diff/70011/include/core/SkColorTable.h File include/core/SkColorTable.h (right): https://codereview.chromium.org/1322933005/diff/70011/include/core/SkColorTable.h#newcode64 include/core/SkColorTable.h:64: struct Free16BitCache { void operator()(uint16_t* cache) const; }; On ...
5 years, 3 months ago (2015-09-08 20:37:17 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-08 20:38:57 UTC) #17
herb_g
lgtm
5 years, 3 months ago (2015-09-09 13:45:05 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1322933005/110001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1322933005/110001
5 years, 3 months ago (2015-09-09 13:46:30 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1322933005/110001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1322933005/110001
5 years, 3 months ago (2015-09-09 13:47:51 UTC) #24
commit-bot: I haz the power
Committed patchset #7 (id:110001) as https://skia.googlesource.com/skia/+/a1254acdb344174e761f5061c820559dab64a74c
5 years, 3 months ago (2015-09-09 13:48:37 UTC) #25
mtklein
A revert of this CL (patchset #7 id:110001) has been created in https://codereview.chromium.org/1334523002/ by mtklein@google.com. ...
5 years, 3 months ago (2015-09-09 14:10:30 UTC) #26
mtklein
On 2015/09/09 14:10:30, mtklein wrote: > A revert of this CL (patchset #7 id:110001) has ...
5 years, 3 months ago (2015-09-09 14:13:10 UTC) #27
mtklein
On 2015/09/09 14:13:10, mtklein wrote: > On 2015/09/09 14:10:30, mtklein wrote: > > A revert ...
5 years, 3 months ago (2015-09-09 16:08:58 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1322933005/110001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1322933005/110001
5 years, 3 months ago (2015-09-09 16:09:17 UTC) #30
commit-bot: I haz the power
5 years, 3 months ago (2015-09-09 16:09:56 UTC) #31
Message was sent while issue was closed.
Committed patchset #7 (id:110001) as
https://skia.googlesource.com/skia/+/6c59d80858f453a426df9b07fdf3a8cc01e0b906

Powered by Google App Engine
This is Rietveld 408576698