Lines Matching refs:glyph
198 const SkGlyph& glyph, uint32_t* startX, uint32_t* startY) { in cacheBitmapInTexture() argument
200 if (cacheTextures[i]->fitBitmap(glyph, startX, startY)) { in cacheBitmapInTexture()
208 void FontRenderer::cacheBitmap(const SkGlyph& glyph, CachedGlyphInfo* cachedGlyph, in cacheBitmap() argument
214 if (glyph.fWidth == 0 || glyph.fHeight == 0) { in cacheBitmap()
223 SkMask::Format format = static_cast<SkMask::Format>(glyph.fMaskFormat); in cacheBitmap()
241 if (glyph.fHeight + TEXTURE_BORDER_SIZE * 2 > in cacheBitmap()
244 (int) glyph.fWidth, (int) glyph.fHeight); in cacheBitmap()
252 CacheTexture* cacheTexture = cacheBitmapInTexture(*cacheTextures, glyph, &startX, &startY); in cacheBitmap()
259 cacheTexture = cacheBitmapInTexture(*cacheTextures, glyph, &startX, &startY); in cacheBitmap()
273 uint32_t endX = startX + glyph.fWidth; in cacheBitmap()
274 uint32_t endY = startY + glyph.fHeight; in cacheBitmap()
288 uint8_t* bitmapBuffer = (uint8_t*) glyph.fImage; in cacheBitmap()
289 int srcStride = glyph.rowBytes(); in cacheBitmap()
297 memset(&cacheBuffer[row], 0, glyph.fWidth + 2 * TEXTURE_BORDER_SIZE); in cacheBitmap()
312 memcpy(&cacheBuffer[row + startX], &bitmapBuffer[bY], glyph.fWidth); in cacheBitmap()
319 memset(&cacheBuffer[row], 0, glyph.fWidth + 2 * TEXTURE_BORDER_SIZE); in cacheBitmap()
326 size_t rowSize = formatSize * glyph.fWidth; in cacheBitmap()
354 memset(&cacheBuffer[row], 0, glyph.fWidth + 2 * TEXTURE_BORDER_SIZE); in cacheBitmap()
375 memset(&cacheBuffer[row], 0, glyph.fWidth + 2 * TEXTURE_BORDER_SIZE); in cacheBitmap()
386 mHistoryTracker.glyphUploaded(cacheTexture, startX, startY, glyph.fWidth, glyph.fHeight); in cacheBitmap()