Searched refs:glyphs (Results 1 - 18 of 18) sorted by relevance

/frameworks/base/libs/hwui/tests/microbench/
H A DFontBench.cpp36 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 DFontRendererTests.cpp39 std::vector<glyph_t> glyphs; local
44 &glyphs, &positions, &totalAdvance, &bounds);
47 auto result = fontRenderer.renderDropShadow(&paint, glyphs.data(), glyphs.size(),
H A DTextDropShadowCacheTests.cpp39 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 DSkiaCanvasProxy.cpp286 GlyphIDConverter glyphs(text, byteLength, origPaint);
289 std::unique_ptr<SkPoint[]> pointStorage(new SkPoint[glyphs.count]);
290 std::unique_ptr<SkScalar[]> glyphWidths(new SkScalar[glyphs.count]);
291 glyphs.paint.getTextWidths(glyphs.glyphIDs, glyphs.count << 1, glyphWidths.get());
297 glyphs.paint.measureText(glyphs.glyphIDs, glyphs.count << 1, &bounds);
300 if (glyphs
[all...]
H A DTextDropShadowCache.h38 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 DTextDropShadowCache.cpp40 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 DRecordedOp.h385 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 DFontRenderer.h94 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 DFontRenderer.cpp560 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 DRecordingCanvas.cpp543 void RecordingCanvas::drawGlyphs(const uint16_t* glyphs, const float* positions, int glyphCount, argument
546 if (!glyphs || !positions || glyphCount <= 0 || paint.nothingToDraw()) return;
547 glyphs = refBuffer<glyph_t>(glyphs, glyphCount);
555 refPaint(&paint), glyphs, positions, glyphCount, x, y)); local
561 uint16_t glyphs[1]; local
563 glyphs[0] = layout.getGlyphId(i);
567 const uint16_t* tempGlyphs = refBuffer<glyph_t>(glyphs, 1);
H A DSkiaCanvas.cpp694 // glyphs centered or right-aligned; the offset above takes
706 memcpy(buffer.glyphs, text, count * sizeof(uint16_t));
719 uint16_t* glyphs = (uint16_t*)(xform + N); local
723 glyphs[i - start] = layout.getGlyphId(i);
739 this->asSkCanvas()->drawTextRSXform(glyphs, sizeof(uint16_t) * N, xform, nullptr, paint);
H A DBakedOpDispatcher.cpp206 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 DFrameBuilder.cpp771 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/hwui/
H A DCanvas.cpp83 DrawTextFunctor(const minikin::Layout& layout, Canvas* canvas, uint16_t* glyphs, float* pos, argument
88 , glyphs(glyphs)
100 glyphs[i] = layout.getGlyphId(i);
106 glyphs[i] = layout.getGlyphId(i);
124 canvas->drawGlyphs(glyphs + start, pos + (2 * start), glyphCount, outlinePaint, x, y,
131 canvas->drawGlyphs(glyphs + start, pos + (2 * start), glyphCount, innerPaint, x, y,
135 canvas->drawGlyphs(glyphs + start, pos + (2 * start), glyphCount, paint, x, y,
142 uint16_t* glyphs; member in class:android::DrawTextFunctor
160 std::unique_ptr<uint16_t[]> glyphs(ne
[all...]
H A DCanvas.h264 * Converts utf16 text to glyphs, calculating position and boundary,
277 * drawText: count is of glyphs
280 virtual void drawGlyphs(const uint16_t* glyphs, const float* positions, int count,
/frameworks/base/libs/hwui/font/
H A DFont.h48 * 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 DFont.cpp231 // 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 DPaint.cpp281 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...]

Completed in 2496 milliseconds