Replace uses of GrAssert by SkASSERT.
R=bsalomon@google.com
Review URL: https://codereview.chromium.org/22850006
git-svn-id: http://skia.googlecode.com/svn/trunk@10789 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrBinHashKey.h b/src/gpu/GrBinHashKey.h
index 8fa53ef..5bbea07 100644
--- a/src/gpu/GrBinHashKey.h
+++ b/src/gpu/GrBinHashKey.h
@@ -52,7 +52,7 @@
}
void setKeyData(const uint32_t* SK_RESTRICT data) {
- GrAssert(GrIsALIGN4(KEY_SIZE));
+ SkASSERT(GrIsALIGN4(KEY_SIZE));
memcpy(&fData, data, KEY_SIZE);
uint32_t hash = 0;
@@ -73,27 +73,27 @@
}
int compare(const GrTBinHashKey<ENTRY, KEY_SIZE>& key) const {
- GrAssert(fIsValid && key.fIsValid);
+ SkASSERT(fIsValid && key.fIsValid);
return memcmp(fData, key.fData, KEY_SIZE);
}
static bool EQ(const ENTRY& entry, const GrTBinHashKey<ENTRY, KEY_SIZE>& key) {
- GrAssert(key.fIsValid);
+ SkASSERT(key.fIsValid);
return 0 == entry.compare(key);
}
static bool LT(const ENTRY& entry, const GrTBinHashKey<ENTRY, KEY_SIZE>& key) {
- GrAssert(key.fIsValid);
+ SkASSERT(key.fIsValid);
return entry.compare(key) < 0;
}
uint32_t getHash() const {
- GrAssert(fIsValid);
+ SkASSERT(fIsValid);
return fHash;
}
const uint8_t* getData() const {
- GrAssert(fIsValid);
+ SkASSERT(fIsValid);
return fData;
}