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

Issue 26491003: SK_ONCE for SkData (Closed)

Created:
7 years, 2 months ago by mtklein
Modified:
7 years, 2 months ago
Reviewers:
bungeman-skia, reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

SK_ONCE for SkData and SkPathRef Adds SK_ONCE_FRIEND, to allow SK_DEF_ONCE code to be friends with a class. This had to go in include/core to be visible to headers there. BUG= Committed: http://code.google.com/p/skia/source/detail?r=11914

Patch Set 1 #

Patch Set 2 : pathref too #

Patch Set 3 : new approach #

Patch Set 4 : two-line #

Patch Set 5 : reup #

Total comments: 3

Patch Set 6 : winders #

Patch Set 7 : reupload #

Total comments: 1

Patch Set 8 : winders2 #

Patch Set 9 : add comment #

Patch Set 10 : super-explicit #

Patch Set 11 : typo #

Patch Set 12 : docs and such #

Patch Set 13 : reup #

Patch Set 14 : reup #

Patch Set 15 : reup #

Patch Set 16 : reup #

Patch Set 17 : reup #

Patch Set 18 : dropped assert #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -67 lines) Patch
M include/core/SkData.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M include/core/SkPathRef.h View 1 2 2 chunks +6 lines, -8 lines 0 comments Download
M src/core/SkData.cpp View 1 2 2 chunks +7 lines, -3 lines 0 comments Download
M src/core/SkMatrix.cpp View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M src/core/SkOnce.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +37 lines, -46 lines 0 comments Download
M src/core/SkPathRef.cpp View 1 2 2 chunks +13 lines, -0 lines 0 comments Download
M tests/OnceTest.cpp View 1 2 2 chunks +13 lines, -8 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
mtklein
Will wait on both reed and bungeman this time.
7 years, 2 months ago (2013-10-10 21:44:24 UTC) #1
bungeman-skia
There are a lot of constraints here, and many ways to try to get around ...
7 years, 2 months ago (2013-10-11 14:35:52 UTC) #2
mtklein
On 2013/10/11 14:35:52, bungeman1 wrote: > There are a lot of constraints here, and many ...
7 years, 2 months ago (2013-10-15 15:52:29 UTC) #3
bungeman-skia
On 2013/10/15 15:52:29, mtklein wrote: > On 2013/10/11 14:35:52, bungeman1 wrote: > > There are ...
7 years, 2 months ago (2013-10-15 15:54:06 UTC) #4
mtklein
Have another look? After lots of stewing and some cribbing from std::call_once, I've got a ...
7 years, 2 months ago (2013-10-22 20:52:25 UTC) #5
reed1
lgtm, but defers to ben
7 years, 2 months ago (2013-10-22 21:00:18 UTC) #6
bungeman-skia
https://codereview.chromium.org/26491003/diff/59001/src/core/SkOnce.h File src/core/SkOnce.h (right): https://codereview.chromium.org/26491003/diff/59001/src/core/SkOnce.h#newcode21 src/core/SkOnce.h:21: static SkOnceFlag name = { { PTHREAD_MUTEX_INITIALIZER }, false ...
7 years, 2 months ago (2013-10-22 21:06:11 UTC) #7
mtklein
https://codereview.chromium.org/26491003/diff/59001/src/core/SkOnce.h File src/core/SkOnce.h (right): https://codereview.chromium.org/26491003/diff/59001/src/core/SkOnce.h#newcode21 src/core/SkOnce.h:21: static SkOnceFlag name = { { PTHREAD_MUTEX_INITIALIZER }, false ...
7 years, 2 months ago (2013-10-22 21:08:24 UTC) #8
mtklein
On 2013/10/22 21:08:24, mtklein wrote: > https://codereview.chromium.org/26491003/diff/59001/src/core/SkOnce.h > File src/core/SkOnce.h (right): > > https://codereview.chromium.org/26491003/diff/59001/src/core/SkOnce.h#newcode21 > ...
7 years, 2 months ago (2013-10-22 21:09:35 UTC) #9
mtklein
https://codereview.chromium.org/26491003/diff/59001/src/core/SkOnce.h File src/core/SkOnce.h (right): https://codereview.chromium.org/26491003/diff/59001/src/core/SkOnce.h#newcode21 src/core/SkOnce.h:21: static SkOnceFlag name = { { PTHREAD_MUTEX_INITIALIZER }, false ...
7 years, 2 months ago (2013-10-22 21:22:08 UTC) #10
bungeman-skia
On 2013/10/22 21:22:08, mtklein wrote: > https://codereview.chromium.org/26491003/diff/59001/src/core/SkOnce.h > File src/core/SkOnce.h (right): > > https://codereview.chromium.org/26491003/diff/59001/src/core/SkOnce.h#newcode21 > ...
7 years, 2 months ago (2013-10-22 21:25:58 UTC) #11
mtklein
On 2013/10/22 21:25:58, bungeman1 wrote: > On 2013/10/22 21:22:08, mtklein wrote: > > https://codereview.chromium.org/26491003/diff/59001/src/core/SkOnce.h > ...
7 years, 2 months ago (2013-10-22 21:28:02 UTC) #12
mtklein
That is to say, this doesn't change the status quo from the current SkOnce.h code ...
7 years, 2 months ago (2013-10-22 21:30:44 UTC) #13
bungeman-skia
https://codereview.chromium.org/26491003/diff/159001/src/core/SkOnce.h File src/core/SkOnce.h (right): https://codereview.chromium.org/26491003/diff/159001/src/core/SkOnce.h#newcode26 src/core/SkOnce.h:26: static SkOnceFlag name = { false } There is ...
7 years, 2 months ago (2013-10-22 21:38:59 UTC) #14
bungeman-skia
On 2013/10/22 21:38:59, bungeman1 wrote: > https://codereview.chromium.org/26491003/diff/159001/src/core/SkOnce.h > File src/core/SkOnce.h (right): > > https://codereview.chromium.org/26491003/diff/159001/src/core/SkOnce.h#newcode26 > ...
7 years, 2 months ago (2013-10-22 22:00:41 UTC) #15
mtklein
On 2013/10/22 22:00:41, bungeman1 wrote: > On 2013/10/22 21:38:59, bungeman1 wrote: > > https://codereview.chromium.org/26491003/diff/159001/src/core/SkOnce.h > ...
7 years, 2 months ago (2013-10-22 22:17:18 UTC) #16
bungeman-skia
lgtm
7 years, 2 months ago (2013-10-22 22:21:55 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@google.com/26491003/479001
7 years, 2 months ago (2013-10-23 14:26:58 UTC) #18
commit-bot: I haz the power
7 years, 2 months ago (2013-10-23 14:44:19 UTC) #19
Message was sent while issue was closed.
Change committed as 11914

Powered by Google App Engine
This is Rietveld 408576698