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

Unified Diff: src/core/SkGlyphCache.cpp

Issue 989683002: Fix bit rot in SkGlyphCache validate code. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkGlyphCache.cpp
diff --git a/src/core/SkGlyphCache.cpp b/src/core/SkGlyphCache.cpp
index 224a70a37f3f971c514775d18369a4e571dea8bd..ec342275cc6f3c6354eb60d0c16eeebcb8d0767b 100755
--- a/src/core/SkGlyphCache.cpp
+++ b/src/core/SkGlyphCache.cpp
@@ -662,15 +662,11 @@ void SkGlyphCache::validate() const {
#ifdef SK_DEBUG_GLYPH_CACHE
int count = fGlyphArray.count();
for (int i = 0; i < count; i++) {
- const SkGlyph* glyph = fGlyphArray[i];
+ const SkGlyph* glyph = &fGlyphArray[i];
mtklein 2015/03/06 22:25:28 Might want to const SkGlyph& glyph and use '.' bel
SkASSERT(glyph);
- SkASSERT(fGlyphAlloc.contains(glyph));
if (glyph->fImage) {
SkASSERT(fGlyphAlloc.contains(glyph->fImage));
}
- if (glyph->fDistanceField) {
- SkASSERT(fGlyphAlloc.contains(glyph->fDistanceField));
- }
}
#endif
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698