* commit '70a5967e0bb295f64c99593043f138fdd62365f4': Fix CacheBitmap crash issue when using H/W UI rendering
This commit is contained in:
committed by
Android Git Automerger
commit
c095eb04fa
@@ -617,7 +617,7 @@ void FontRenderer::cacheBitmap(const SkGlyph& glyph, CachedGlyphInfo* cachedGlyp
|
|||||||
uint32_t* retOriginX, uint32_t* retOriginY) {
|
uint32_t* retOriginX, uint32_t* retOriginY) {
|
||||||
cachedGlyph->mIsValid = false;
|
cachedGlyph->mIsValid = false;
|
||||||
// If the glyph is too tall, don't cache it
|
// If the glyph is too tall, don't cache it
|
||||||
if (glyph.fHeight + TEXTURE_BORDER_SIZE > mCacheLines[mCacheLines.size() - 1]->mMaxHeight) {
|
if (mCacheLines.size() != 0 && (glyph.fHeight + TEXTURE_BORDER_SIZE > mCacheLines[mCacheLines.size() - 1]->mMaxHeight)) {
|
||||||
ALOGE("Font size to large to fit in cache. width, height = %i, %i",
|
ALOGE("Font size to large to fit in cache. width, height = %i, %i",
|
||||||
(int) glyph.fWidth, (int) glyph.fHeight);
|
(int) glyph.fWidth, (int) glyph.fHeight);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user