commit | 4888cda29f38dffa7ec9db0b1e2e08dab6d6f834 | [log] [tgz] |
---|---|---|
author | Adlai Holler <adlai@google.com> | Fri Nov 06 16:37:37 2020 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Tue Nov 10 16:01:51 2020 +0000 |
tree | 913efcd33a2eccf5abe96b3ace529a7cd98b2589 | |
parent | 9e2544e62f25702dec266e5c7849f814254dca1f [diff] [blame] |
Fix up a ton of implicit memory_order_seq_cst for unique id gen Change-Id: Icfbaa3129f5b45b5053c4f3444ff904c188b211a Reviewed-on: https://skia-review.googlesource.com/c/skia/+/332725 Reviewed-by: Mike Klein <mtklein@google.com> Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Adlai Holler <adlai@google.com>
diff --git a/src/gpu/GrClipStack.cpp b/src/gpu/GrClipStack.cpp index abab6b7..98de71b 100644 --- a/src/gpu/GrClipStack.cpp +++ b/src/gpu/GrClipStack.cpp
@@ -192,7 +192,7 @@ uint32_t id; do { - id = nextID++; + id = nextID.fetch_add(1, std::memory_order_relaxed); } while (id < kFirstUnreservedGenID); return id; }