Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Unified Diff: src/gpu/GrBinHashKey.h

Issue 22850006: Replace uses of GrAssert by SkASSERT. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrAtlas.cpp ('k') | src/gpu/GrBlend.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrBinHashKey.h
diff --git a/src/gpu/GrBinHashKey.h b/src/gpu/GrBinHashKey.h
index 8fa53ef68a44f96beddb0721383152d526a93fc9..5bbea072afa0e5d48ef3f95a8138125f82ad247e 100644
--- a/src/gpu/GrBinHashKey.h
+++ b/src/gpu/GrBinHashKey.h
@@ -52,7 +52,7 @@ public:
}
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 @@ public:
}
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;
}
« no previous file with comments | « src/gpu/GrAtlas.cpp ('k') | src/gpu/GrBlend.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698