/frameworks/base/libs/hwui/tests/microbench/ |
H A D | FontBench.cpp | 36 std::vector<glyph_t> glyphs; 41 &glyphs, &positions, &totalAdvance, &bounds); 43 fontRenderer.precache(&paint, glyphs.data(), glyphs.size(), SkMatrix::I()); 46 fontRenderer.precache(&paint, glyphs.data(), glyphs.size(), SkMatrix::I());
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | FontRendererTests.cpp | 39 std::vector<glyph_t> glyphs; local 44 &glyphs, &positions, &totalAdvance, &bounds); 47 auto result = fontRenderer.renderDropShadow(&paint, glyphs.data(), glyphs.size(),
|
H A D | TextDropShadowCacheTests.cpp | 39 std::vector<glyph_t> glyphs; local 44 &glyphs, &positions, &totalAdvance, &bounds); 47 ShadowTexture* texture = cache.get(&paint, glyphs.data(), glyphs.size(), 10, positions.data());
|
/frameworks/base/libs/hwui/ |
H A D | SkiaCanvasProxy.cpp | 280 GlyphIDConverter glyphs(text, byteLength, origPaint); 283 std::unique_ptr<SkScalar[]> glyphWidths(new SkScalar[glyphs.count]); 284 glyphs.paint.getTextWidths(glyphs.glyphIDs, glyphs.count << 1, glyphWidths.get()); 290 glyphs.paint.measureText(glyphs.glyphIDs, glyphs.count << 1, &bounds); 293 if (glyphs.paint.getTextAlign() != SkPaint::kLeft_Align) { 295 for (int i = 0; i < glyphs [all...] |
H A D | TextDropShadowCache.h | 38 flags(0), italicStyle(0.0f), scaleX(0), glyphs(nullptr), positions(nullptr) { 51 , glyphs(srcGlyphs) 71 str.setTo(reinterpret_cast<const char16_t*>(glyphs), glyphCount); 72 glyphs = reinterpret_cast<const glyph_t*>(str.string()); 87 const glyph_t* glyphs; member in struct:android::uirenderer::ShadowText
|
H A D | TextDropShadowCache.cpp | 40 if (glyphs) { 42 hash, reinterpret_cast<const uint16_t*>(glyphs), glyphCount); 74 if (lhs.glyphs != rhs.glyphs) { 75 if (!lhs.glyphs) return -1; 76 if (!rhs.glyphs) return +1; 78 deltaInt = memcmp(lhs.glyphs, rhs.glyphs, lhs.glyphCount * sizeof(glyph_t)); 148 ShadowTexture* TextDropShadowCache::get(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, argument 150 ShadowText entry(paint, radius, numGlyphs, glyphs, position [all...] |
H A D | RecordedOp.h | 385 TextOp(BASE_PARAMS, const glyph_t* glyphs, const float* positions, int glyphCount, argument 388 , glyphs(glyphs) 393 const glyph_t* glyphs; member in struct:android::uirenderer::TextOp 403 const glyph_t* glyphs, int glyphCount, const SkPath* path, float hOffset, float vOffset) 405 , glyphs(glyphs) 410 const glyph_t* glyphs; member in struct:android::uirenderer::TextOnPathOp 402 TextOnPathOp(const Matrix4& localMatrix, const ClipBase* localClip, const SkPaint* paint, const glyph_t* glyphs, int glyphCount, const SkPath* path, float hOffset, float vOffset) argument
|
H A D | FontRenderer.h | 94 void precache(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, const SkMatrix& matrix); 97 bool renderPosText(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, 101 bool renderTextOnPath(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, 115 DropShadow renderDropShadow(const SkPaint* paint, const glyph_t *glyphs, int numGlyphs,
|
H A D | FontRenderer.cpp | 560 FontRenderer::DropShadow FontRenderer::renderDropShadow(const SkPaint* paint, const glyph_t *glyphs, argument 580 mCurrentFont->measure(paint, glyphs, numGlyphs, &bounds, positions); 607 mCurrentFont->render(paint, glyphs, numGlyphs, penX, penY, 641 void FontRenderer::precache(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, argument 644 font->precache(paint, glyphs, numGlyphs); 651 bool FontRenderer::renderPosText(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, argument 660 mCurrentFont->render(paint, glyphs, numGlyphs, x, y, positions); 669 bool FontRenderer::renderTextOnPath(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, argument 678 mCurrentFont->render(paint, glyphs, numGlyphs, path, hOffset, vOffset);
|
H A D | RecordingCanvas.cpp | 547 uint16_t* glyphs = (glyph_t*)alloc().alloc<glyph_t>(glyphCount * sizeof(glyph_t)); 549 glyphFunc(glyphs, positions); 556 refPaint(&paint), glyphs, positions, glyphCount, x, y)); local 562 uint16_t glyphs[1]; local 564 glyphs[0] = layout.getGlyphId(i); 568 const uint16_t* tempGlyphs = refBuffer<glyph_t>(glyphs, 1);
|
H A D | SkiaCanvas.cpp | 673 // glyphs centered or right-aligned; the offset above takes 683 glyphFunc(buffer.glyphs, buffer.pos); 695 uint16_t* glyphs = (uint16_t*)(xform + N); local 699 glyphs[i - start] = layout.getGlyphId(i); 715 this->asSkCanvas()->drawTextRSXform(glyphs, sizeof(uint16_t) * N, xform, nullptr, paint);
|
H A D | BakedOpDispatcher.cpp | 206 op.paint, op.glyphs, op.glyphCount, textShadow.radius, op.positions); 276 // matrix defines how glyphs are rasterized. Typically we want glyphs 279 // When a partial matrix is used to transform glyphs during rasterization, 303 fontRenderer.renderPosText(op.paint, localOpClip, op.glyphs, op.glyphCount, x, y, 754 if (fontRenderer.renderTextOnPath(op.paint, &localSpaceClip, op.glyphs, op.glyphCount,
|
H A D | FrameBuilder.cpp | 771 fontRenderer.precache(op.paint, op.glyphs, op.glyphCount, SkMatrix::I()); 776 fontRenderer.precache(op.paint, op.glyphs, op.glyphCount, SkMatrix::MakeScale( 788 op.paint, op.glyphs, op.glyphCount, SkMatrix::I());
|
/frameworks/base/libs/hwui/font/ |
H A D | Font.h | 48 * to generate glyphs and cache them in the FontState. 86 void render(const SkPaint* paint, const glyph_t* glyphs, 89 void render(const SkPaint* paint, const glyph_t* glyphs, 115 void precache(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs); 117 void render(const SkPaint* paint, const glyph_t* glyphs, 121 void measure(const SkPaint* paint, const glyph_t* glyphs, 151 // Cache of glyphs
|
H A D | Font.cpp | 231 // fonts/strings where glyphs overlap. 294 void Font::render(const SkPaint* paint, const glyph_t* glyphs, argument 296 render(paint, glyphs, numGlyphs, x, y, FRAMEBUFFER, nullptr, 300 void Font::render(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, argument 302 if (numGlyphs == 0 || glyphs == nullptr) { 318 float textWidth = SkScalarToFloat(paint->measureText(glyphs, numGlyphs * 2)); 328 glyph_t glyph = *(glyphs++); 348 void Font::measure(const SkPaint* paint, const glyph_t* glyphs, argument 355 render(paint, glyphs, numGlyphs, 0, 0, MEASURE, nullptr, 0, 0, bounds, positions); 358 void Font::precache(const SkPaint* paint, const glyph_t* glyphs, in argument 377 render(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, int x, int y, RenderMode mode, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* positions) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Paint.cpp | 281 Paint* paint, uint16_t* glyphs, SkPoint* pos) 282 : layout(layout), path(path), x(x), y(y), paint(paint), glyphs(glyphs), pos(pos) { 287 glyphs[i] = layout.getGlyphId(i); 292 paint->getPosTextPath(glyphs + start, (end - start) << 1, pos + start, path); 294 paint->getPosTextPath(glyphs + start, (end - start) << 1, pos + start, &tmpPath); 304 uint16_t* glyphs; member in class:android::PaintGlue::GetTextFunctor 314 uint16_t* glyphs = new uint16_t[nGlyphs]; local 321 GetTextFunctor f(layout, path, x, y, paint, glyphs, pos); 324 delete[] glyphs; 280 GetTextFunctor(const minikin::Layout& layout, SkPath* path, jfloat x, jfloat y, Paint* paint, uint16_t* glyphs, SkPoint* pos) argument [all...] |