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

Unified Diff: src/pathops/SkOpContour.h

Issue 257773007: pathops debug globals use atomic increment (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/pathops/SkOpSegment.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pathops/SkOpContour.h
diff --git a/src/pathops/SkOpContour.h b/src/pathops/SkOpContour.h
index 5b92a4b071b999d9adfad3d8f89a8ad025b75f38..7fad7a40e46637c62dd47c9c8b8b2ec332ef0d87 100644
--- a/src/pathops/SkOpContour.h
+++ b/src/pathops/SkOpContour.h
@@ -10,6 +10,10 @@
#include "SkOpSegment.h"
#include "SkTArray.h"
+#if defined(SK_DEBUG) || !FORCE_RELEASE
+#include "SkThread.h"
+#endif
+
class SkIntersections;
class SkOpContour;
class SkPathWriter;
@@ -26,7 +30,7 @@ public:
SkOpContour() {
reset();
#if defined(SK_DEBUG) || !FORCE_RELEASE
- fID = ++SkPathOpsDebug::gContourID;
+ fID = sk_atomic_inc(&SkPathOpsDebug::gContourID);
#endif
}
« no previous file with comments | « no previous file | src/pathops/SkOpSegment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698