From 9f4dbca3290cfaca7dd17b71eb6b5b3a0ba5323e Mon Sep 17 00:00:00 2001 From: herb Date: Mon, 28 Sep 2015 11:05:47 -0700 Subject: 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 --- include/core/SkPath.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include/core') 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 fPathRef; + SkAutoTUnref 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 fFirstDirection; // SkPathPriv::FirstDirection + mutable SkBool8 fIsVolatile; /** Resets all fields other than fPathRef to their initial 'empty' values. * Assumes the caller has already emptied fPathRef. -- cgit v1.2.3