commit | e167f9660cca8327afe48ae8c526a44e14c60f0e | [log] [tgz] |
---|---|---|
author | bsalomon <bsalomon@google.com> | Tue Jan 27 09:56:04 2015 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Tue Jan 27 09:56:04 2015 -0800 |
tree | 0c592af17ba00f35022c3c536771da220011b22c | |
parent | f379ad3429b61eb1d86e916767258340df372538 [diff] [blame] |
Fix GPU resource cache related assertions. Review URL: https://codereview.chromium.org/879963003
diff --git a/include/gpu/GrResourceKey.h b/include/gpu/GrResourceKey.h index 15d7b43..26373a7 100644 --- a/include/gpu/GrResourceKey.h +++ b/include/gpu/GrResourceKey.h
@@ -45,6 +45,7 @@ } bool operator==(const GrResourceKey& that) const { + SkASSERT(this->isValid() && that.isValid()); return 0 == memcmp(fKey.get(), that.fKey.get(), this->size()); }