aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar herb <herb@google.com>2015-09-28 11:05:47 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-28 11:05:47 -0700
commit9f4dbca3290cfaca7dd17b71eb6b5b3a0ba5323e (patch)
treedd8b718075779650af0f8c9f569688cbb882f80b /include/core
parent449d9b7e2d1b2e20963f18639c6e541ef953f069 (diff)
Make SkPath fFirstDirection atomic to fix tsan.
There is no API change. TBR=reed@google.com BUG=skia: Review URL: https://codereview.chromium.org/1372103003
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkPath.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/core/SkPath.h b/include/core/SkPath.h
index caf4cfe5ec..d3673b6d5d 100644
--- a/include/core/SkPath.h
+++ b/include/core/SkPath.h
@@ -938,13 +938,13 @@ private:
kCurrent_Version = 1
};
- SkAutoTUnref<SkPathRef> fPathRef;
+ SkAutoTUnref<SkPathRef> fPathRef;
- int fLastMoveToIndex;
- uint8_t fFillType;
- mutable uint8_t fConvexity;
- mutable uint8_t fFirstDirection; // SkPathPriv::FirstDirection
- mutable SkBool8 fIsVolatile;
+ int fLastMoveToIndex;
+ uint8_t fFillType;
+ mutable uint8_t fConvexity;
+ mutable SkAtomic<uint8_t> fFirstDirection; // SkPathPriv::FirstDirection
+ mutable SkBool8 fIsVolatile;
/** Resets all fields other than fPathRef to their initial 'empty' values.
* Assumes the caller has already emptied fPathRef.