aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-02-23 10:59:50 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-23 10:59:50 -0800
commit1a9600f2537ad62e85529801a634167f2913bc24 (patch)
tree590c0a3fc42a3e5ac514e0596e66e41d4aa4198b
parent278f86e4df6b835d0bcdb4ca14fa4dbbd4271cac (diff)
Make STDPQueue::at() available in all builds.
-rw-r--r--src/core/SkTDPQueue.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkTDPQueue.h b/src/core/SkTDPQueue.h
index ae9dc25227..a6784bb64b 100644
--- a/src/core/SkTDPQueue.h
+++ b/src/core/SkTDPQueue.h
@@ -92,9 +92,9 @@ public:
this->validate();
}
-#ifdef SK_DEBUG
+ /** Gets the item at index i in the priority queue (for i < this->count()). at(0) is equivalent
+ to peek(). Otherwise, there is no guarantee about ordering of elements in the queue. */
T at(int i) const { return fArray[i]; }
-#endif
private:
static int LeftOf(int x) { SkASSERT(x >= 0); return 2 * x + 1; }