/frameworks/base/libs/hwui/font/ |
H A D | FontCacheHistoryTracker.h | 28 // Tracks glyph uploads and recent rendered/skipped glyphs, so it can give an idea 29 // what a missing character is: skipped glyph, wrong coordinates in cache texture etc. 49 CachedGlyph glyph; member in struct:android::uirenderer::FontCacheHistoryTracker::RenderEntry 54 static void dumpCachedGlyph(String8& log, const CachedGlyph& glyph); 56 static void dumpUploadEntry(String8& log, const CachedGlyph& glyph);
|
H A D | FontCacheHistoryTracker.cpp | 25 void FontCacheHistoryTracker::dumpCachedGlyph(String8& log, const CachedGlyph& glyph) { argument 26 log.appendFormat("glyph (texture %p, position: (%d, %d), size: %dx%d, gen: %d)", glyph.texture, 27 glyph.startX, glyph.startY, glyph.bitmapW, glyph.bitmapH, glyph.generation); 32 log.appendFormat(" glyph skipped in gen: %d\n", entry.glyph 40 dumpUploadEntry(String8& log, const CachedGlyph& glyph) argument 77 CachedGlyph& glyph = mUploadHistory.next(); local 87 CachedGlyph& glyph = mUploadHistory.next(); local [all...] |
H A D | CacheTexture.cpp | 226 bool CacheTexture::fitBitmap(const SkGlyph& glyph, uint32_t* retOriginX, uint32_t* retOriginY) { argument 227 switch (glyph.fMaskFormat) { 248 ALOGD("fitBitmap: unknown glyph format %x encountered", glyph.fMaskFormat); 253 if (glyph.fHeight + TEXTURE_BORDER_SIZE * 2 > getHeight()) { 257 uint16_t glyphW = glyph.fWidth + TEXTURE_BORDER_SIZE; 258 uint16_t glyphH = glyph.fHeight + TEXTURE_BORDER_SIZE; 268 // Store glyph in this block iff: it fits the block's remaining space and: 269 // it's the remainder space (mY == 0) or there's only enough height for this one glyph 275 // Only enough space for this glyph [all...] |
H A D | Font.cpp | 135 void Font::measureCachedGlyph(CachedGlyphInfo *glyph, int x, int y, argument 137 int width = (int) glyph->mBitmapWidth; 138 int height = (int) glyph->mBitmapHeight; 140 int nPenX = x + glyph->mBitmapLeft; 141 int nPenY = y + glyph->mBitmapTop; 157 void Font::drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y, argument 159 float width = (float) glyph->mBitmapWidth; 160 float height = (float) glyph->mBitmapHeight; 162 float nPenX = x + glyph->mBitmapLeft; 163 float nPenY = y + glyph 176 drawCachedGlyphTransformed(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument 206 drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapWidth, uint32_t bitmapHeight, Rect* bounds, const float* pos) argument 237 drawCachedGlyph(CachedGlyphInfo* glyph, float x, float hOffset, float vOffset, SkPathMeasure& measure, SkPoint* position, SkVector* tangent) argument 328 glyph_t glyph = *(glyphs++); local 365 glyph_t glyph = *(glyphs++); local 397 glyph_t glyph = *(glyphs++); local 426 updateGlyphCache(const SkPaint* paint, const SkGlyph& skiaGlyph, SkGlyphCache* skiaGlyphCache, CachedGlyphInfo* glyph, bool precaching) argument 470 cacheGlyph(const SkPaint* paint, glyph_t glyph, bool precaching) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | HarfBuzzNGFaceSkia.cpp | 66 uint16_t glyph = codepoint; local 68 paint->getTextWidths(&glyph, sizeof(glyph), &skWidth, &skBounds); 70 ALOGD("returned glyph for %i: width = %f", codepoint, skWidth); 83 static hb_bool_t harfbuzzGetGlyph(hb_font_t* hbFont, void* fontData, hb_codepoint_t unicode, hb_codepoint_t variationSelector, hb_codepoint_t* glyph, void* userData) argument 96 *glyph = glyph16; 97 return !!*glyph; 100 static hb_position_t harfbuzzGetGlyphHorizontalAdvance(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, void* userData) argument 105 SkiaGetGlyphWidthAndExtents(hbFontData->m_paint, glyph, &advance, 0); 109 static hb_bool_t harfbuzzGetGlyphHorizontalOrigin(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, hb_position_ argument 116 harfbuzzGetGlyphExtents(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, hb_glyph_extents_t* extents, void* userData) argument [all...] |
/frameworks/base/libs/hwui/tests/common/ |
H A D | TestUtils.cpp | 97 glyph_t glyph = autoCache.getCache()->unicharToGlyph(unichar); local 100 // push glyph and its relative position 101 outGlyphs->push_back(glyph); 113 paint.getTextWidths(&glyph, sizeof(glyph), &skWidth, NULL);
|
/frameworks/base/libs/hwui/ |
H A D | FontRenderer.cpp | 198 const SkGlyph& glyph, uint32_t* startX, uint32_t* startY) { 200 if (cacheTextures[i]->fitBitmap(glyph, startX, startY)) { 204 // Could not fit glyph into current cache textures 208 void FontRenderer::cacheBitmap(const SkGlyph& glyph, CachedGlyphInfo* cachedGlyph, argument 212 // If the glyph bitmap is empty let's assum the glyph is valid 214 if (glyph.fWidth == 0 || glyph.fHeight == 0) { 222 // choose an appropriate cache texture list for this glyph format 223 SkMask::Format format = static_cast<SkMask::Format>(glyph 197 cacheBitmapInTexture(std::vector<CacheTexture*>& cacheTextures, const SkGlyph& glyph, uint32_t* startX, uint32_t* startY) argument [all...] |
/frameworks/rs/ |
H A D | rsFont.cpp | 92 void Font::drawCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y) { argument 95 int32_t nPenX = x + glyph->mBitmapLeft; 96 int32_t nPenY = y - glyph->mBitmapTop + glyph->mBitmapHeight; 98 float u1 = glyph->mBitmapMinU; 99 float u2 = glyph->mBitmapMaxU; 100 float v1 = glyph->mBitmapMinV; 101 float v2 = glyph->mBitmapMaxV; 103 int32_t width = (int32_t) glyph->mBitmapWidth; 104 int32_t height = (int32_t) glyph 112 drawCachedGlyph(CachedGlyphInfo* glyph, int32_t x, int32_t y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH) argument 138 measureCachedGlyph(CachedGlyphInfo *glyph, int32_t x, int32_t y, Rect *bounds) argument 238 updateGlyphCache(CachedGlyphInfo *glyph) argument 283 cacheGlyph(uint32_t glyph) argument 327 CachedGlyphInfo *glyph = mCachedGlyphs.valueAt(i); local [all...] |
/frameworks/minikin/libs/minikin/ |
H A D | Layout.cpp | 239 hb_codepoint_t glyph, void* /* userData */) { 241 float advance = paint->font->GetHorizontalAdvance(glyph, *paint); 246 hb_codepoint_t /* glyph */, hb_position_t* /* x */, hb_position_t* /* y */, 297 const LayoutGlyph& glyph = mGlyphs[i]; local 298 std::cout << glyph.glyph_id << ": " << glyph.x << ", " << glyph.y << std::endl; 711 hb_codepoint_t glyph; local 715 if (hb_font_get_nominal_glyph(font, preferredHyphen, &glyph)) { 724 // Fallback to ASCII HYPHEN-MINUS if the font didn't have a glyph fo 238 harfbuzzGetGlyphHorizontalAdvance(hb_font_t* , void* fontData, hb_codepoint_t glyph, void* ) argument 986 LayoutGlyph glyph = {font_ix, glyph_ix, x + xoff, y + yoff}; local 1045 LayoutGlyph glyph = {font_ix, glyph_id, x, y}; local 1068 const LayoutGlyph& glyph = mGlyphs[i]; local 1073 const LayoutGlyph& glyph = mGlyphs[i]; local 1078 const LayoutGlyph& glyph = mGlyphs[i]; local 1083 const LayoutGlyph& glyph = mGlyphs[i]; local 1088 const LayoutGlyph& glyph = mGlyphs[i]; local [all...] |