aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pathops/SkOpContour.h
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-25 13:42:21 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-25 13:42:21 +0000
commit0bcb8ca8a8fc04a4a9c69013ccc46645d2f2ae77 (patch)
tree121f7a9335184312cc37c4de5c3996b2e456e574 /src/pathops/SkOpContour.h
parent8cb1daaa1e4343eb60a7c4f21c12e33de30dad64 (diff)
pathops debug globals use atomic increment
R=mtklein@google.com TBR=mtklein BUG=skia:2460 Author: caryclark@google.com Review URL: https://codereview.chromium.org/257773007 git-svn-id: http://skia.googlecode.com/svn/trunk@14379 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/pathops/SkOpContour.h')
-rw-r--r--src/pathops/SkOpContour.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pathops/SkOpContour.h b/src/pathops/SkOpContour.h
index 5b92a4b071..7fad7a40e4 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
}