| Index: include/private/SkTArray.h
|
| diff --git a/include/private/SkTArray.h b/include/private/SkTArray.h
|
| index 1fe2c3857c1555c58efe20303709dbde649ee868..1c06bf331ae8e92f3efcdb54b60fd3af3572443e 100644
|
| --- a/include/private/SkTArray.h
|
| +++ b/include/private/SkTArray.h
|
| @@ -238,6 +238,19 @@ public:
|
| }
|
|
|
| /**
|
| + * Version of above that uses the move constructor to set n items.
|
| + */
|
| + T* move_back_n(int n, T* t) {
|
| + SkASSERT(n >= 0);
|
| + this->checkRealloc(n);
|
| + for (int i = 0; i < n; ++i) {
|
| + new (fItemArray + fCount + i) T(std::move(t[i]));
|
| + }
|
| + fCount += n;
|
| + return fItemArray + fCount - n;
|
| + }
|
| +
|
| + /**
|
| * Removes the last element. Not safe to call when count() == 0.
|
| */
|
| void pop_back() {
|
|
|