Lines Matching refs:bitmap
112 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH) {
132 bitmap[bY * bitmapW + bX] = tempCol;
162 uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) {
205 case BITMAP:
206 drawCachedGlyph(cachedGlyph, penX, penY, bitmap, bitmapW, bitmapH);
250 FT_Bitmap *bitmap = &mFace->glyph->bitmap;
252 // Now copy the bitmap into the cache texture
256 // Let the font state figure out where to put the bitmap
258 glyph->mIsValid = state->cacheBitmap(bitmap, &startX, &startY);
264 uint32_t endX = startX + bitmap->width;
265 uint32_t endY = startY + bitmap->rows;
269 glyph->mBitmapWidth = bitmap->width;
270 glyph->mBitmapHeight = bitmap->rows;
410 bool FontState::cacheBitmap(FT_Bitmap *bitmap, uint32_t *retOriginX, uint32_t *retOriginY) {
412 if ((uint32_t)bitmap->rows > mCacheLines[mCacheLines.size()-1]->mMaxHeight) {
413 ALOGE("Font size to large to fit in cache. width, height = %i, %i", (int)bitmap->width, (int)bitmap->rows);
417 // Now copy the bitmap into the cache texture
423 bitmapFit = mCacheLines[i]->fitBitmap(bitmap, &startX, &startY);
435 bitmapFit = mCacheLines[i]->fitBitmap(bitmap, &startX, &startY);
443 ALOGE("Bitmap doesn't fit in cache. width, height = %i, %i", (int)bitmap->width, (int)bitmap->rows);
451 uint32_t endX = startX + bitmap->width;
452 uint32_t endY = startY + bitmap->rows;
457 uint8_t *bitmapBuffer = bitmap->buffer;
462 uint8_t tempCol = bitmapBuffer[bY * bitmap->width + bX];
749 uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) {
774 mode, bounds, bitmap, bitmapW, bitmapH);
839 bool FontState::CacheTextureLine::fitBitmap(FT_Bitmap_ *bitmap, uint32_t *retOriginX, uint32_t *retOriginY) {
840 if ((uint32_t)bitmap->rows > mMaxHeight) {
844 if (mCurrentCol + (uint32_t)bitmap->width < mMaxWidth) {
847 mCurrentCol += bitmap->width;