2d9e543a58
- 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> |
||
---|---|---|
.. | ||
SkPEG.h | ||
SkSVGAttribute.cpp | ||
SkSVGAttribute.h | ||
SkSVGAttributeParser.cpp | ||
SkSVGAttributeParser.h | ||
SkSVGCircle.cpp | ||
SkSVGCircle.h | ||
SkSVGClipPath.cpp | ||
SkSVGClipPath.h | ||
SkSVGContainer.cpp | ||
SkSVGContainer.h | ||
SkSVGDefs.h | ||
SkSVGDOM.cpp | ||
SkSVGDOM.h | ||
SkSVGEllipse.cpp | ||
SkSVGEllipse.h | ||
SkSVGG.h | ||
SkSVGGradient.cpp | ||
SkSVGGradient.h | ||
SkSVGHiddenContainer.h | ||
SkSVGIDMapper.h | ||
SkSVGLine.cpp | ||
SkSVGLine.h | ||
SkSVGLinearGradient.cpp | ||
SkSVGLinearGradient.h | ||
SkSVGNode.cpp | ||
SkSVGNode.h | ||
SkSVGPath.cpp | ||
SkSVGPath.h | ||
SkSVGPattern.cpp | ||
SkSVGPattern.h | ||
SkSVGPoly.cpp | ||
SkSVGPoly.h | ||
SkSVGRadialGradient.cpp | ||
SkSVGRadialGradient.h | ||
SkSVGRect.cpp | ||
SkSVGRect.h | ||
SkSVGRenderContext.cpp | ||
SkSVGRenderContext.h | ||
SkSVGShape.cpp | ||
SkSVGShape.h | ||
SkSVGStop.cpp | ||
SkSVGStop.h | ||
SkSVGSVG.cpp | ||
SkSVGSVG.h | ||
SkSVGTransformableNode.cpp | ||
SkSVGTransformableNode.h | ||
SkSVGTypes.h | ||
SkSVGUse.cpp | ||
SkSVGUse.h | ||
SkSVGValue.cpp | ||
SkSVGValue.h |