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

Issue 302083003: Clean up SkOnce: (Closed)

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

Description

Clean up SkOnce: 1 Remove atExit feature: clients can do it just as well as SkOnce can. 2 Remove support for functors: no one but the unit test did that. 3 Remove support for unused non-static SkOnceFlag (no SK_ONCE_INIT). 4 Add SkOnce variants for no-arg functions so we're not forced to pass dummy values all the time. 5 Merge SkSpinlock and SkOnceFlag, making all members private. 6 More notes about memory barriers, adding an acquire load after acquiring the spinlock. BUG=skia: Committed: https://skia.googlesource.com/skia/+/1b81877880253c75f835eede9a8ee21b9e7b584a

Patch Set 1 #

Total comments: 2

Patch Set 2 : prefix #

Patch Set 3 : unused 1 == #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -101 lines) Patch
M include/core/SkInstCnt.h View 1 chunk +2 lines, -2 lines 0 comments Download
M include/core/SkOnce.h View 1 2 4 chunks +61 lines, -55 lines 0 comments Download
M src/ports/SkGlobalInitialization_chromium.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M src/ports/SkGlobalInitialization_default.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M src/utils/SkEventTracer.cpp View 1 chunk +9 lines, -10 lines 0 comments Download
M src/utils/win/SkDWrite.cpp View 2 chunks +8 lines, -6 lines 0 comments Download
M tests/OnceTest.cpp View 2 chunks +7 lines, -22 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
mtklein
6 years, 6 months ago (2014-05-30 20:55:47 UTC) #1
bungeman-skia
lgtm with one nit https://codereview.chromium.org/302083003/diff/1/include/core/SkOnce.h File include/core/SkOnce.h (right): https://codereview.chromium.org/302083003/diff/1/include/core/SkOnce.h#newcode131 include/core/SkOnce.h:131: static void no_arg_adaptor(void (*f)()) { ...
6 years, 6 months ago (2014-05-30 21:13:18 UTC) #2
mtklein
https://codereview.chromium.org/302083003/diff/1/include/core/SkOnce.h File include/core/SkOnce.h (right): https://codereview.chromium.org/302083003/diff/1/include/core/SkOnce.h#newcode131 include/core/SkOnce.h:131: static void no_arg_adaptor(void (*f)()) { On 2014/05/30 21:13:18, bungeman1 ...
6 years, 6 months ago (2014-06-02 16:11:38 UTC) #3
mtklein
+reed Mike, can you take a look for include/ ? This is a bunch of ...
6 years, 6 months ago (2014-06-02 16:14:36 UTC) #4
reed1
include lgtm
6 years, 6 months ago (2014-06-02 18:20:10 UTC) #5
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 6 months ago (2014-06-02 18:21:46 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@chromium.org/302083003/40001
6 years, 6 months ago (2014-06-02 18:22:14 UTC) #7
commit-bot: I haz the power
6 years, 6 months ago (2014-06-02 18:27:04 UTC) #8
Message was sent while issue was closed.
Change committed as 1b81877880253c75f835eede9a8ee21b9e7b584a

Powered by Google App Engine
This is Rietveld 408576698