| Index: src/core/SkTDPQueue.h
|
| diff --git a/src/core/SkTDPQueue.h b/src/core/SkTDPQueue.h
|
| index a6784bb64b91f3b5055ae8a7b409442a16971afd..90e2c149d60ef3a92816a00d721d9d2936c2b5d3 100644
|
| --- a/src/core/SkTDPQueue.h
|
| +++ b/src/core/SkTDPQueue.h
|
| @@ -17,7 +17,7 @@
|
| * Optionally objects may know their index into the priority queue. The queue will update the index
|
| * as the objects move through the queue. This is enabled by using a non-NULL function for INDEX.
|
| * When an INDEX function is provided random deletes from the queue are allowed using remove().
|
| - * Additionally, the * priority is allowed to change as long as priorityDidChange() is called
|
| + * Additionally, the priority is allowed to change as long as priorityDidChange() is called
|
| * afterwards. In debug builds the index will be set to -1 before an element is removed from the
|
| * queue.
|
| */
|
| @@ -31,6 +31,9 @@ public:
|
| /** Number of items in the queue. */
|
| int count() const { return fArray.count(); }
|
|
|
| + void setReserve(int reserve) { fArray.setReserve(reserve); }
|
| + void rewind() { fArray.rewind(); }
|
| +
|
| /** Gets the next item in the queue without popping it. */
|
| const T& peek() const { return fArray[0]; }
|
| T& peek() { return fArray[0]; }
|
|
|