commit | 918090c819109585f8fd2295039385a60eb0b572 | [log] [tgz] |
---|---|---|
author | bungeman <bungeman@google.com> | Tue Feb 09 09:14:28 2016 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Tue Feb 09 09:14:28 2016 -0800 |
tree | b5c7411d60dbdb0bdc803707454818e9e3d96634 | |
parent | eb00475d2335d4e2679d0ee12dd4741edcba7061 [diff] [blame] |
SkTArray to move when moving. This updates SkTArray to move elements when possible, instead of always copying them. TBR=reed Agreed moving is good. This should also become private. Committed: https://skia.googlesource.com/skia/+/3c69348e725131150e4ab962dec1b3ff1148a6bd Review URL: https://codereview.chromium.org/1672063002
diff --git a/include/ports/SkFontMgr_indirect.h b/include/ports/SkFontMgr_indirect.h index 81cd773..9d96fee 100644 --- a/include/ports/SkFontMgr_indirect.h +++ b/include/ports/SkFontMgr_indirect.h
@@ -70,8 +70,7 @@ DataEntry() { } - // This is a move!!! - DataEntry(DataEntry& that) + DataEntry(DataEntry&& that) : fDataId(that.fDataId) , fTtcIndex(that.fTtcIndex) , fTypeface(that.fTypeface)