SkTArray movable and swap for move only elements.
authorbungeman <bungeman@google.com>
Wed, 20 Apr 2016 17:22:20 +0000 (10:22 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 20 Apr 2016 17:22:20 +0000 (10:22 -0700)
commit0d9e9bee17aa2901582c5461ae60f7241fc0cd59
tree7062135aa1a3fad1e8352162fc3c7d9efc7f34f0
parent36db3f44b6cd71d1f462626601ec7c33fdcc187c
SkTArray movable and swap for move only elements.

SkTArray cannot currently contain move only elements because its swap
currently requires the SkTArray to be copyable. This makes SkTArray
movable and makes its swap move instead of copy.

Review URL: https://codereview.chromium.org/1904663004
include/private/SkTArray.h
tests/TArrayTest.cpp