/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. 50 CachedGlyph glyph; member in struct:android::uirenderer::FontCacheHistoryTracker::RenderEntry 55 static void dumpCachedGlyph(String8& log, const CachedGlyph& glyph); 57 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 | 229 bool CacheTexture::fitBitmap(const SkGlyph& glyph, uint32_t* retOriginX, uint32_t* retOriginY) { argument 230 switch (glyph.fMaskFormat) { 251 ALOGD("fitBitmap: unknown glyph format %x encountered", glyph.fMaskFormat); 256 if (glyph.fHeight + TEXTURE_BORDER_SIZE * 2 > getHeight()) { 260 uint16_t glyphW = glyph.fWidth + TEXTURE_BORDER_SIZE; 261 uint16_t glyphH = glyph.fHeight + TEXTURE_BORDER_SIZE; 271 // Store glyph in this block iff: it fits the block's remaining space and: 272 // it's the remainder space (mY == 0) or there's only enough height for this one glyph 278 // Only enough space for this glyph [all...] |
H A D | Font.cpp | 135 void Font::measureCachedGlyph(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, 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, uint8_t* bitmap, uint32_t bitmapW, argument 159 float width = (float)glyph->mBitmapWidth; 160 float height = (float)glyph->mBitmapHeight; 162 float nPenX = x + glyph->mBitmapLeft; 163 float nPenY = y + glyph 175 drawCachedGlyphTransformed(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument 204 drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapWidth, uint32_t bitmapHeight, Rect* bounds, const float* pos) argument 235 drawCachedGlyph(CachedGlyphInfo* glyph, float x, float hOffset, float vOffset, SkPathMeasure& measure, SkPoint* position, SkVector* tangent) argument 322 glyph_t glyph = *(glyphs++); local 359 glyph_t glyph = *(glyphs++); local 389 glyph_t glyph = *(glyphs++); local 417 updateGlyphCache(const SkPaint* paint, const SkGlyph& skiaGlyph, SkGlyphCache* skiaGlyphCache, CachedGlyphInfo* glyph, bool precaching) argument 461 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 | 99 glyph_t glyph = autoCache.getCache()->unicharToGlyph(unichar); local 102 // push glyph and its relative position 103 outGlyphs->push_back(glyph); 115 paint.getTextWidths(&glyph, sizeof(glyph), &skWidth, NULL);
|
/frameworks/base/libs/hwui/ |
H A D | FontRenderer.cpp | 195 const SkGlyph& glyph, uint32_t* startX, 198 if (cacheTextures[i]->fitBitmap(glyph, startX, startY)) { 202 // Could not fit glyph into current cache textures 206 void FontRenderer::cacheBitmap(const SkGlyph& glyph, CachedGlyphInfo* cachedGlyph, argument 210 // If the glyph bitmap is empty let's assum the glyph is valid 212 if (glyph.fWidth == 0 || glyph.fHeight == 0) { 220 // choose an appropriate cache texture list for this glyph format 221 SkMask::Format format = static_cast<SkMask::Format>(glyph 194 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 | 57 hb_codepoint_t glyph, void* /* userData */) { 59 float advance = args->font->GetHorizontalAdvance(glyph, *args->paint, args->fakery); 64 hb_codepoint_t /* glyph */, 157 const LayoutGlyph& glyph = mGlyphs[i]; local 158 std::cout << glyph.glyph_id << ": " << glyph.x << ", " << glyph.y << std::endl; 445 hb_codepoint_t glyph; local 449 if (hb_font_get_nominal_glyph(font, preferredHyphen, &glyph)) { 458 // Fallback to ASCII HYPHEN-MINUS if the font didn't have a glyph fo 56 harfbuzzGetGlyphHorizontalAdvance(hb_font_t* , void* fontData, hb_codepoint_t glyph, void* ) argument 714 LayoutGlyph glyph = {font_ix, glyph_ix, x + xoff, y + yoff}; local 776 LayoutGlyph glyph = {font_ix, glyph_id, x, y}; local 801 const LayoutGlyph& glyph = mGlyphs[i]; local 806 const LayoutGlyph& glyph = mGlyphs[i]; local 811 const LayoutGlyph& glyph = mGlyphs[i]; local 816 const LayoutGlyph& glyph = mGlyphs[i]; local 821 const LayoutGlyph& glyph = mGlyphs[i]; local [all...] |