aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrResourceKey.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-01-27 09:56:04 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-01-27 09:56:04 -0800
commite167f9660cca8327afe48ae8c526a44e14c60f0e (patch)
tree0c592af17ba00f35022c3c536771da220011b22c /include/gpu/GrResourceKey.h
parentf379ad3429b61eb1d86e916767258340df372538 (diff)
Fix GPU resource cache related assertions.
Diffstat (limited to 'include/gpu/GrResourceKey.h')
-rw-r--r--include/gpu/GrResourceKey.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/gpu/GrResourceKey.h b/include/gpu/GrResourceKey.h
index 15d7b439f1..26373a7859 100644
--- a/include/gpu/GrResourceKey.h
+++ b/include/gpu/GrResourceKey.h
@@ -45,6 +45,7 @@ protected:
}
bool operator==(const GrResourceKey& that) const {
+ SkASSERT(this->isValid() && that.isValid());
return 0 == memcmp(fKey.get(), that.fKey.get(), this->size());
}