aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTHashCache.h
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-12-20 15:13:01 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-12-20 15:13:01 +0000
commit0797c2cceadd7dfc2e7f9efa30b611d18efcdcdd (patch)
tree2fc86b2f5248e1977e8ffee9190d606947358a4f /src/gpu/GrTHashCache.h
parent0b6ad2297fbf43466950690102c1c9c150f2a972 (diff)
Reland 6914 w/ fixes.
git-svn-id: http://skia.googlecode.com/svn/trunk@6916 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrTHashCache.h')
-rw-r--r--src/gpu/GrTHashCache.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/gpu/GrTHashCache.h b/src/gpu/GrTHashCache.h
index 4494f9f024..854723715d 100644
--- a/src/gpu/GrTHashCache.h
+++ b/src/gpu/GrTHashCache.h
@@ -226,13 +226,6 @@ void GrTHashTable<T, Key, kHashBits>::unrefAll() {
#if GR_DEBUG
template <typename T, typename Key, size_t kHashBits>
void GrTHashTable<T, Key, kHashBits>::validate() const {
- for (size_t i = 0; i < GR_ARRAY_COUNT(fHash); i++) {
- if (fHash[i]) {
- unsigned hashIndex = hash2Index(Key::GetHash(*fHash[i]));
- GrAssert(hashIndex == i);
- }
- }
-
int count = fSorted.count();
for (int i = 1; i < count; i++) {
GrAssert(Key::LT(*fSorted[i - 1], *fSorted[i]) ||