/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 | DisplayListCanvas.cpp | 424 void DisplayListCanvas::drawGlyphsOnPath(const uint16_t* glyphs, int count, argument 426 if (!glyphs || count <= 0) return; 429 DrawOp* op = new (alloc()) DrawTextOnPathOp(refBuffer<glyph_t>(glyphs, count), 435 void DisplayListCanvas::drawGlyphs(const uint16_t* glyphs, const float* positions, argument 440 if (!glyphs || count <= 0 || PaintUtils::paintWillNotDrawText(paint)) return; 446 DrawOp* op = new (alloc()) DrawTextOp(refBuffer<glyph_t>(glyphs, count), bytesCount, count,
|
H A D | FontRenderer.cpp | 574 FontRenderer::DropShadow FontRenderer::renderDropShadow(const SkPaint* paint, const glyph_t *glyphs, argument 594 mCurrentFont->measure(paint, glyphs, numGlyphs, &bounds, positions); 626 mCurrentFont->render(paint, glyphs, numGlyphs, penX, penY, 660 void FontRenderer::precache(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, argument 663 font->precache(paint, glyphs, numGlyphs); 670 bool FontRenderer::renderPosText(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, argument 679 mCurrentFont->render(paint, glyphs, numGlyphs, x, y, positions); 688 bool FontRenderer::renderTextOnPath(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, argument 697 mCurrentFont->render(paint, glyphs, numGlyphs, path, hOffset, vOffset);
|
H A D | RecordingCanvas.cpp | 546 void RecordingCanvas::drawGlyphs(const uint16_t* glyphs, const float* positions, int glyphCount, argument 549 if (!glyphs || !positions || glyphCount <= 0 || PaintUtils::paintWillNotDrawText(paint)) return; 550 glyphs = refBuffer<glyph_t>(glyphs, glyphCount); 558 refPaint(&paint), glyphs, positions, glyphCount, x, y)); local 562 void RecordingCanvas::drawGlyphsOnPath(const uint16_t* glyphs, int glyphCount, const SkPath& path, argument 564 if (!glyphs || glyphCount <= 0 || PaintUtils::paintWillNotDrawText(paint)) return; 565 glyphs = refBuffer<glyph_t>(glyphs, glyphCount); 569 refPaint(&paint), glyphs, glyphCoun [all...] |
H A D | SkiaCanvas.cpp | 171 virtual void drawGlyphsOnPath(const uint16_t* glyphs, int count, const SkPath& path, 768 void SkiaCanvas::drawGlyphsOnPath(const uint16_t* glyphs, int count, const SkPath& path, argument 770 mCanvas->drawTextOnPathHV(glyphs, count << 1, path, hOffset, vOffset, paint);
|
H A D | OpenGLRenderer.cpp | 1960 void OpenGLRenderer::drawTextShadow(const SkPaint* paint, const glyph_t* glyphs, argument 1974 paint, glyphs, count, textShadow.radius, positions); 2095 void OpenGLRenderer::drawText(const glyph_t* glyphs, int bytesCount, int count, float x, float y, argument 2102 if (glyphs == nullptr || count == 0 || mState.currentlyIgnored() || canSkipText(paint) || 2126 drawTextShadow(paint, glyphs, count, positions, fontRenderer, 2133 // matrix defines how glyphs are rasterized. Typically we want glyphs 2136 // When a partial matrix is used to transform glyphs during rasterization, 2167 status = fontRenderer.renderPosText(&paintCopy, clip, glyphs, count, x, y, 2170 status = fontRenderer.renderPosText(paint, clip, glyphs, coun 2184 drawTextOnPath(const glyph_t* glyphs, int bytesCount, int count, const SkPath* path, float hOffset, float vOffset, const SkPaint* paint) argument [all...] |
/frameworks/minikin/sample/ |
H A D | example_skia.cpp | 82 uint16_t *glyphs = new uint16_t[nGlyphs]; local 92 glyphs[i] = layout->getGlyphId(i); 97 canvas->drawPosText(glyphs + start, (i - start) << 1, pos + start, *paint); 103 canvas->drawPosText(glyphs + start, (nGlyphs - start) << 1, pos + start, *paint); 104 delete[] glyphs;
|
/frameworks/base/libs/hwui/hwui/ |
H A D | Canvas.cpp | 82 DrawTextFunctor(const Layout& layout, Canvas* canvas, uint16_t* glyphs, float* pos, argument 86 , glyphs(glyphs) 98 glyphs[i] = layout.getGlyphId(i); 104 glyphs[i] = layout.getGlyphId(i); 122 canvas->drawGlyphs(glyphs + start, pos + (2 * start), glyphCount, outlinePaint, x, y, 129 canvas->drawGlyphs(glyphs + start, pos + (2 * start), glyphCount, innerPaint, x, y, 133 canvas->drawGlyphs(glyphs + start, pos + (2 * start), glyphCount, paint, x, y, 140 uint16_t* glyphs; member in class:android::DrawTextFunctor 158 std::unique_ptr<uint16_t[]> glyphs(ne 192 uint16_t glyphs[1]; local [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 | 565 uint16_t* glyphs, SkPoint* pos) 566 : layout(layout), path(path), x(x), y(y), paint(paint), glyphs(glyphs), pos(pos) { 571 glyphs[i] = layout.getGlyphId(i); 576 paint->getPosTextPath(glyphs + start, (end - start) << 1, pos + start, path); 578 paint->getPosTextPath(glyphs + start, (end - start) << 1, pos + start, &tmpPath); 588 uint16_t* glyphs; member in class:android::PaintGlue::GetTextFunctor 598 uint16_t* glyphs = new uint16_t[nGlyphs]; local 605 GetTextFunctor f(layout, path, x, y, paint, glyphs, pos); 608 delete[] glyphs; 564 GetTextFunctor(const Layout& layout, SkPath* path, jfloat x, jfloat y, Paint* paint, uint16_t* glyphs, SkPoint* pos) argument [all...] |