From 1a9600f2537ad62e85529801a634167f2913bc24 Mon Sep 17 00:00:00 2001 From: bsalomon Date: Mon, 23 Feb 2015 10:59:50 -0800 Subject: [PATCH] Make STDPQueue::at() available in all builds. Review URL: https://codereview.chromium.org/955433003 --- src/core/SkTDPQueue.h | 4 ++-- 1 file 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; }