Loading core/jni/android/graphics/TextLayoutCache.cpp +3 −1 Original line number Original line Diff line number Diff line Loading @@ -626,7 +626,9 @@ void TextLayoutCacheValue::getGlyphsIndexAndCount(size_t start, size_t count, si return; return; } } *outStartIndex = mLogClusters[start]; *outStartIndex = mLogClusters[start]; *outGlyphsCount = mLogClusters[start + count - 1] - mLogClusters[start] + 1; size_t endIndex = (start + count >= mAdvances.size()) ? mGlyphs.size() : mLogClusters[start + count]; *outGlyphsCount = endIndex - *outStartIndex; #if DEBUG_GLYPHS #if DEBUG_GLYPHS LOGD("getGlyphsIndexes - start=%d count=%d - startIndex=%d count=%d", start, count, LOGD("getGlyphsIndexes - start=%d count=%d - startIndex=%d count=%d", start, count, *outStartIndex, *outGlyphsCount); *outStartIndex, *outGlyphsCount); Loading Loading
core/jni/android/graphics/TextLayoutCache.cpp +3 −1 Original line number Original line Diff line number Diff line Loading @@ -626,7 +626,9 @@ void TextLayoutCacheValue::getGlyphsIndexAndCount(size_t start, size_t count, si return; return; } } *outStartIndex = mLogClusters[start]; *outStartIndex = mLogClusters[start]; *outGlyphsCount = mLogClusters[start + count - 1] - mLogClusters[start] + 1; size_t endIndex = (start + count >= mAdvances.size()) ? mGlyphs.size() : mLogClusters[start + count]; *outGlyphsCount = endIndex - *outStartIndex; #if DEBUG_GLYPHS #if DEBUG_GLYPHS LOGD("getGlyphsIndexes - start=%d count=%d - startIndex=%d count=%d", start, count, LOGD("getGlyphsIndexes - start=%d count=%d - startIndex=%d count=%d", start, count, *outStartIndex, *outGlyphsCount); *outStartIndex, *outGlyphsCount); Loading