Skip to content

Commit 4a332f5

Browse files
Romain GuyAndroid (Google) Code Review
authored andcommitted
Merge "Don't invalidate all the glyphs when flushing large textures" into jb-mr1-dev
2 parents 5a426f6 + 521dc51 commit 4a332f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/hwui/font/Font.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Font::~Font() {
5151
void Font::invalidateTextureCache(CacheTexture* cacheTexture) {
5252
for (uint32_t i = 0; i < mCachedGlyphs.size(); i++) {
5353
CachedGlyphInfo* cachedGlyph = mCachedGlyphs.valueAt(i);
54-
if (cacheTexture || cachedGlyph->mCacheTexture == cacheTexture) {
54+
if (!cacheTexture || cachedGlyph->mCacheTexture == cacheTexture) {
5555
cachedGlyph->mIsValid = false;
5656
}
5757
}

0 commit comments

Comments
 (0)