Make skia::RefPtr movable.
commit59d9350f87bbcf8ec849d9e2d4c19d0e2419b802
authorjbroman <jbroman@chromium.org>
Tue, 5 May 2015 00:11:03 +0000 (4 17:11 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 5 May 2015 00:11:29 +0000 (5 00:11 +0000)
treea9f044614a439daeaa3c3301d0123d3f3dec96dd
parent28a7b3f1a3880288062e97b4faf47ebf0b8aa7ea
Make skia::RefPtr movable.

This is analogous to the change to base::scoped_ptr, including the standard
swap idiom for the move assignment operator.

Note in particular that Skia's refcounts are atomic/thread-safe; thus it is
particularly valuable to avoid thrashing the refcount unnecessarily.

Review URL: https://codereview.chromium.org/1113113003

Cr-Commit-Position: refs/heads/master@{#328225}
skia/ext/refptr.h
skia/ext/refptr_unittest.cc