skia2/experimental
Mike Klein 2d9e543a58 some SkAtomics cleanup
- Replace sk_memory_order with std::memory_order.
 - Remove SkAtomic<T>.

SkPath was the only user of SkAtomic<T>, for its fConvexity and
fFirstDirection fields.  I've replaced them with std::atomic types, and
funneled access to them through methods that enforce the relaxed memory
order like SkAtomic<T> did.

For fConvexity, we can use the exisiting setConvexity() and
getConvexityOrUnknown() methods, adding a private const setConvexity()
to mutate convexity from const methods.  For fFirstDirection I've added
private setFirstDirection() and getFirstDirection() methods.

Removing SkAtomic<T> means SkAtomics.h no longer needs SkNoncopyable.h.
I've had to update a bunch of other headers that were depending on
transitive inclusion.

Change-Id: Ib238be71a121519db6e970a9a8955834e1298c87
Reviewed-on: https://skia-review.googlesource.com/c/174220
Commit-Queue: Brian Salomon <bsalomon@google.com>
Auto-Submit: Mike Klein <mtklein@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
2018-12-04 13:53:39 +00:00
..
c-api-example remove more old cmake files 2016-11-30 20:37:45 +00:00
canvaskit [canvaskit] Add profile mode 2018-12-03 20:43:17 +00:00
docs runs some sample animations side by side in canvas and svg 2015-11-16 13:36:08 -08:00
documentation experimental/tools/gerrit-change-id-to-number 2017-12-18 17:21:42 +00:00
go-demo Experimental Go bindings for Skia 2017-05-10 15:32:19 +00:00
go-skia Fix go syntax for Debian compile 2018-03-19 20:26:46 +00:00
Networking Remove a huge pile of views code 2017-11-22 18:59:44 +00:00
nima Refactor Nima code 2018-10-30 19:32:52 +00:00
pvg add pvg experiment 2018-11-02 15:35:21 +00:00
svg/model some SkAtomics cleanup 2018-12-04 13:53:39 +00:00
tools experimental/tools/generate-unicode-test-txt: update 2018-10-31 17:05:54 +00:00
xps_to_png experimental/xps_to_png: pass in DPI as program argument 2016-11-14 15:39:09 +00:00