Lines Matching refs:glyph

70             ALOGD("TextSetupFunctor: called with unknown glyph format %x", glyphFormat);
209 const SkGlyph& glyph, uint32_t* startX, uint32_t* startY) {
211 if (cacheTextures[i]->fitBitmap(glyph, startX, startY)) {
215 // Could not fit glyph into current cache textures
219 void FontRenderer::cacheBitmap(const SkGlyph& glyph, CachedGlyphInfo* cachedGlyph,
223 // If the glyph bitmap is empty let's assum the glyph is valid
225 if (glyph.fWidth == 0 || glyph.fHeight == 0) {
233 // choose an appropriate cache texture list for this glyph format
234 SkMask::Format format = static_cast<SkMask::Format>(glyph.fMaskFormat);
251 // If the glyph is too tall, don't cache it
252 if (glyph.fHeight + TEXTURE_BORDER_SIZE * 2 >
255 (int) glyph.fWidth, (int) glyph.fHeight);
263 CacheTexture* cacheTexture = cacheBitmapInTexture(*cacheTextures, glyph, &startX, &startY);
267 // If the new glyph didn't fit and we are not just trying to precache it,
270 cacheTexture = cacheBitmapInTexture(*cacheTextures, glyph, &startX, &startY);
274 // either the glyph didn't fit or we're precaching and will cache it when we draw
284 uint32_t endX = startX + glyph.fWidth;
285 uint32_t endY = startY + glyph.fHeight;
291 // Large-glyph texture memory is allocated only as needed
299 uint8_t* bitmapBuffer = (uint8_t*) glyph.fImage;
300 int srcStride = glyph.rowBytes();
302 // Copy the glyph image, taking the mask format into account
309 memset(&cacheBuffer[row], 0, glyph.fWidth + 2 * TEXTURE_BORDER_SIZE);
310 // write glyph data
324 memcpy(&cacheBuffer[row + startX], &bitmapBuffer[bY], glyph.fWidth);
331 memset(&cacheBuffer[row], 0, glyph.fWidth + 2 * TEXTURE_BORDER_SIZE);
338 size_t rowSize = formatSize * glyph.fWidth;
350 // write glyph data
353 memcpy(dst += dstStride, src += srcStride, rowSize); // glyph data
366 memset(&cacheBuffer[row], 0, glyph.fWidth + 2 * TEXTURE_BORDER_SIZE);
367 // write glyph data
387 memset(&cacheBuffer[row], 0, glyph.fWidth + 2 * TEXTURE_BORDER_SIZE);
391 ALOGW("Unknown glyph format: 0x%x", format);