| Index: include/private/SkTArray.h
|
| diff --git a/include/private/SkTArray.h b/include/private/SkTArray.h
|
| index 55d4f86aaabf63d9baf9f8a6a9d610175b6a23b8..1fe2c3857c1555c58efe20303709dbde649ee868 100644
|
| --- a/include/private/SkTArray.h
|
| +++ b/include/private/SkTArray.h
|
| @@ -121,6 +121,15 @@ public:
|
| }
|
|
|
| /**
|
| + * Ensures there is enough reserved space for n elements.
|
| + */
|
| + void reserve(int n) {
|
| + if (fCount < n) {
|
| + this->checkRealloc(n - fCount);
|
| + }
|
| + }
|
| +
|
| + /**
|
| * Resets to a copy of a C array.
|
| */
|
| void reset(const T* array, int count) {
|
|
|