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

Issue 955043002: Steal a bit from the gen ID instead of managing two atomic values. (Closed)

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

Description

Steal a bit from the gen ID instead of managing two atomic values. This extra atomic bool is hard to think about, and I'm worried about how updates to fGenerationID and fUniqueGenerationID interlace. By storing them in the same int, they can't ever race. CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu13.10-GCE-NoGPU-x86_64-Release-TSAN-Trybot BUG=skia: Committed: https://skia.googlesource.com/skia/+/63d0024cde57eba4f7802fdc4fe49467867f52ba

Patch Set 1 #

Patch Set 2 : back inside #

Patch Set 3 : rebase #

Patch Set 4 : tweaks #

Total comments: 2

Patch Set 5 : comment raciness #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -27 lines) Patch
M include/core/SkPixelRef.h View 1 2 2 chunks +8 lines, -5 lines 0 comments Download
M src/core/SkPixelRef.cpp View 1 2 3 4 6 chunks +26 lines, -22 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
mtklein_C
5 years, 10 months ago (2015-02-25 16:23:41 UTC) #2
mtklein
On 2015/02/25 16:23:41, mtklein_C wrote: Don't look at this yet. Will need to rebase onto ...
5 years, 10 months ago (2015-02-25 16:27:20 UTC) #3
mtklein
On 2015/02/25 16:27:20, mtklein wrote: > On 2015/02/25 16:23:41, mtklein_C wrote: > > Don't look ...
5 years, 10 months ago (2015-02-25 16:34:15 UTC) #4
reed1
lgtm https://codereview.chromium.org/955043002/diff/60001/src/core/SkPixelRef.cpp File src/core/SkPixelRef.cpp (right): https://codereview.chromium.org/955043002/diff/60001/src/core/SkPixelRef.cpp#newcode125 src/core/SkPixelRef.cpp:125: SkASSERT(!this->genIDIsUnique()); // this is a racy assert
5 years, 10 months ago (2015-02-25 16:41:31 UTC) #5
mtklein
https://codereview.chromium.org/955043002/diff/60001/src/core/SkPixelRef.cpp File src/core/SkPixelRef.cpp (right): https://codereview.chromium.org/955043002/diff/60001/src/core/SkPixelRef.cpp#newcode125 src/core/SkPixelRef.cpp:125: SkASSERT(!this->genIDIsUnique()); On 2015/02/25 16:41:31, reed1 wrote: > // this ...
5 years, 10 months ago (2015-02-25 16:44:45 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/955043002/80001
5 years, 10 months ago (2015-02-25 16:45:45 UTC) #10
commit-bot: I haz the power
5 years, 10 months ago (2015-02-25 17:11:02 UTC) #11
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://skia.googlesource.com/skia/+/63d0024cde57eba4f7802fdc4fe49467867f52ba

Powered by Google App Engine
This is Rietveld 408576698