Make SkPaint movable.
This adds a move constructor and move assignment to SkPaint. This
allows elision of atomic increments and decrements on the reference
counted fields.
Review URL: https://codereview.chromium.org/1676843002
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h
index 51e8848..a0def42 100644
--- a/include/core/SkPaint.h
+++ b/include/core/SkPaint.h
@@ -52,9 +52,11 @@
public:
SkPaint();
SkPaint(const SkPaint& paint);
+ SkPaint(SkPaint&& paint);
~SkPaint();
SkPaint& operator=(const SkPaint&);
+ SkPaint& operator=(SkPaint&&);
/** operator== may give false negatives: two paints that draw equivalently
may return false. It will never give false positives: two paints that