diff options
author | bsalomon <bsalomon@google.com> | 2015-02-23 10:59:50 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-23 10:59:50 -0800 |
commit | 1a9600f2537ad62e85529801a634167f2913bc24 (patch) | |
tree | 590c0a3fc42a3e5ac514e0596e66e41d4aa4198b /src | |
parent | 278f86e4df6b835d0bcdb4ca14fa4dbbd4271cac (diff) |
Make STDPQueue::at() available in all builds.
Review URL: https://codereview.chromium.org/955433003
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkTDPQueue.h | 4 |
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; } |