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

Issue 1039323002: Extract the spinlock from SkOnce as SkSpinlock. (Closed)

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

Description

Extract the spinlock from SkOnce as SkSpinlock. This uses slightly newer APIs from SkAtomics.h to make it a bit more efficient. No public API changes. TBR=reed@google.com BUG=skia: Committed: https://skia.googlesource.com/skia/+/50ffd9921e6dc82cae8ef143e8cecfd8bcf900fb

Patch Set 1 #

Patch Set 2 : Add and use sk_atomic_exchange. #

Patch Set 3 : quotes #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -15 lines) Patch
M include/core/SkAtomics.h View 1 2 chunks +10 lines, -0 lines 0 comments Download
M include/core/SkOnce.h View 2 chunks +4 lines, -15 lines 0 comments Download
A include/core/SkSpinlock.h View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
M include/ports/SkAtomics_atomic.h View 1 2 chunks +13 lines, -0 lines 0 comments Download
M include/ports/SkAtomics_std.h View 1 2 chunks +14 lines, -0 lines 0 comments Download
M include/ports/SkAtomics_sync.h View 1 2 chunks +17 lines, -0 lines 1 comment Download

Messages

Total messages: 17 (7 generated)
mtklein_C
See if this still drops in as faster for your use case? I'll follow up ...
5 years, 9 months ago (2015-03-27 18:28:18 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1039323002/1
5 years, 9 months ago (2015-03-27 19:02:49 UTC) #4
commit-bot: I haz the power
This issue passed the CQ dry run.
5 years, 9 months ago (2015-03-27 19:11:45 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1039323002/20001
5 years, 9 months ago (2015-03-27 20:32:10 UTC) #8
commit-bot: I haz the power
This issue passed the CQ dry run.
5 years, 9 months ago (2015-03-27 20:55:41 UTC) #10
joshualitt
On 2015/03/27 20:55:41, I haz the power (commit-bot) wrote: > This issue passed the CQ ...
5 years, 9 months ago (2015-03-27 21:36:12 UTC) #11
mtklein_C
+Ben This is what we were looking at before in person. Mind taking a look?
5 years, 9 months ago (2015-03-27 22:04:24 UTC) #13
bungeman-skia
I can find no useful fault, so lgtm. https://codereview.chromium.org/1039323002/diff/40001/include/ports/SkAtomics_sync.h File include/ports/SkAtomics_sync.h (right): https://codereview.chromium.org/1039323002/diff/40001/include/ports/SkAtomics_sync.h#newcode64 include/ports/SkAtomics_sync.h:64: } ...
5 years, 8 months ago (2015-03-30 14:52:17 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1039323002/40001
5 years, 8 months ago (2015-03-30 14:58:01 UTC) #16
commit-bot: I haz the power
5 years, 8 months ago (2015-03-30 15:13:39 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/50ffd9921e6dc82cae8ef143e8cecfd8bcf900fb

Powered by Google App Engine
This is Rietveld 408576698