/frameworks/base/libs/hwui/tests/unit/ |
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());
|
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(),
|
/frameworks/base/libs/hwui/ |
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 | 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 | 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.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 | 543 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 D | SkiaCanvas.cpp | 694 // 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);
|
/frameworks/base/libs/hwui/hwui/ |
H A D | Canvas.cpp | 83 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...] |
/frameworks/base/libs/hwui/font/ |
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...] |