diff options
Diffstat (limited to 'gpu/src/GrTextStrike.cpp')
-rw-r--r-- | gpu/src/GrTextStrike.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gpu/src/GrTextStrike.cpp b/gpu/src/GrTextStrike.cpp index a245997d20..7aae7571a3 100644 --- a/gpu/src/GrTextStrike.cpp +++ b/gpu/src/GrTextStrike.cpp @@ -169,6 +169,11 @@ GrGlyph* GrTextStrike::generateGlyph(GrGlyph::PackedID packed, } bool GrTextStrike::getGlyphAtlas(GrGlyph* glyph, GrFontScaler* scaler) { +#if 0 // testing hack to force us to flush our cache often + static int gCounter; + if ((++gCounter % 10) == 0) return false; +#endif + GrAssert(glyph); GrAssert(scaler); GrAssert(fCache.contains(glyph)); |