Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Unified Diff: src/core/SkTDPQueue.h

Issue 1120023003: Refugee from Dead Machine 13: New version of the convex AA tessellator Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samplecode/SampleAnimator.cpp ('k') | src/gpu/GrAAConvexPathRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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]; }
« no previous file with comments | « samplecode/SampleAnimator.cpp ('k') | src/gpu/GrAAConvexPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698