skia2/include
Mike Klein b9b5de5c66 make SkPath::fConvexity atomic
The TSAN bots fail regularly with races on fConvexity.  Very annoying.

We used to have this very same problem with SkPath::fFirstDirection
until we made it atomic.  This does the same to fConvexity.

This makes the field as lightly atomic as possible, with all operations
using a relaxed memory order.  The value of fConvexity isn't guarding
any other non-atomic memory or implying any other writes have happened
so I don't think we need anything beyond relaxed here.

Change-Id: I0da1f892dc2b7072d692ce8b460fb1862aebef77
Reviewed-on: https://skia-review.googlesource.com/52180
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
2017-09-28 01:59:06 +00:00
..
android Add SK_API to APIs used by the android framework. 2017-09-21 18:14:36 +00:00
c C API: document sk_matrix_t 2017-03-21 18:04:34 +00:00
codec Add SK_API to APIs used by the android framework. 2017-09-21 18:14:36 +00:00
config Revert "Revert "SkUserConfig.h: remove out-of-date comment on SK_SFNTLY_SUBSETTER"" 2017-01-27 14:40:01 +00:00
core make SkPath::fConvexity atomic 2017-09-28 01:59:06 +00:00
effects Reland "Fix SkImageSource::filterBounds()" again 2017-09-25 19:05:20 +00:00
encode Add comments support for PNG encoder 2017-06-09 17:24:03 +00:00
gpu changed vertex attribute precisions to be actual types 2017-09-27 14:04:17 +00:00
pathops use reversePathTo in place of addPathReverse 2016-11-07 05:09:28 -08:00
ports Revert "Revert "migrate to sk_sp for SkFontMgr API"" 2017-09-26 14:05:18 +00:00
private changed vertex attribute precisions to be actual types 2017-09-27 14:04:17 +00:00
svg Add a SkWStream-based SkSVGCanvas factory 2017-09-19 20:33:19 +00:00
utils Add missing onDrawDrawable() overrides to utility canvases 2017-09-22 14:01:27 +00:00
views Convert NULL and 0 to nullptr. 2017-08-28 17:48:57 +00:00