/frameworks/base/libs/hwui/ |
D | SkiaCanvasProxy.cpp | 242 GlyphIDConverter glyphs(text, byteLength, origPaint); in onDrawText() local 245 std::unique_ptr<SkPoint[]> pointStorage(new SkPoint[glyphs.count]); in onDrawText() 246 std::unique_ptr<SkScalar[]> glyphWidths(new SkScalar[glyphs.count]); in onDrawText() 247 glyphs.paint.getTextWidths(glyphs.glyphIDs, glyphs.count << 1, glyphWidths.get()); in onDrawText() 253 glyphs.paint.measureText(glyphs.glyphIDs, glyphs.count << 1, &bounds); in onDrawText() 256 if (glyphs.paint.getTextAlign() != SkPaint::kLeft_Align) { in onDrawText() 258 for (int i = 0; i < glyphs.count; i++) { in onDrawText() 261 if (glyphs.paint.getTextAlign() == SkPaint::kCenter_Align) { in onDrawText() 264 if (glyphs.paint.isVerticalText()) { in onDrawText() 282 if (glyphs.paint.isVerticalText()) { in onDrawText() [all …]
|
D | TextDropShadowCache.cpp | 40 if (glyphs) { in hash() 42 hash, reinterpret_cast<const uint16_t*>(glyphs), glyphCount); in hash() 74 if (lhs.glyphs != rhs.glyphs) { in compare() 75 if (!lhs.glyphs) return -1; in compare() 76 if (!rhs.glyphs) return +1; in compare() 78 deltaInt = memcmp(lhs.glyphs, rhs.glyphs, lhs.glyphCount * sizeof(glyph_t)); in compare() 148 ShadowTexture* TextDropShadowCache::get(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, in get() argument 150 ShadowText entry(paint, radius, numGlyphs, glyphs, positions); in get() 156 FontRenderer::DropShadow shadow = mRenderer->renderDropShadow(&paintCopy, glyphs, numGlyphs, in get()
|
D | TextDropShadowCache.h | 38 flags(0), italicStyle(0.0f), scaleX(0), glyphs(nullptr), positions(nullptr) { in ShadowText() 51 , glyphs(srcGlyphs) in ShadowText() 71 str.setTo(reinterpret_cast<const char16_t*>(glyphs), glyphCount); in copyTextLocally() 72 glyphs = reinterpret_cast<const glyph_t*>(str.string()); in copyTextLocally() 87 const glyph_t* glyphs; member
|
D | RecordedOp.h | 385 TextOp(BASE_PARAMS, const glyph_t* glyphs, const float* positions, int glyphCount, in TextOp() 388 , glyphs(glyphs) in TextOp() 393 const glyph_t* glyphs; member 403 const glyph_t* glyphs, int glyphCount, const SkPath* path, float hOffset, float vOffset) in TextOnPathOp() 405 , glyphs(glyphs) in TextOnPathOp() 410 const glyph_t* glyphs; member
|
D | FontRenderer.h | 107 … void precache(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, const SkMatrix& matrix); 110 bool renderPosText(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, 114 bool renderTextOnPath(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, 128 DropShadow renderDropShadow(const SkPaint* paint, const glyph_t *glyphs, int numGlyphs,
|
D | RecordingCanvas.cpp | 528 void RecordingCanvas::drawGlyphs(const uint16_t* glyphs, const float* positions, int glyphCount, in drawGlyphs() argument 531 if (!glyphs || !positions || glyphCount <= 0 || PaintUtils::paintWillNotDrawText(paint)) return; in drawGlyphs() 532 glyphs = refBuffer<glyph_t>(glyphs, glyphCount); in drawGlyphs() 540 refPaint(&paint), glyphs, positions, glyphCount, x, y)); in drawGlyphs() 544 void RecordingCanvas::drawGlyphsOnPath(const uint16_t* glyphs, int glyphCount, const SkPath& path, in drawGlyphsOnPath() argument 546 if (!glyphs || glyphCount <= 0 || PaintUtils::paintWillNotDrawText(paint)) return; in drawGlyphsOnPath() 547 glyphs = refBuffer<glyph_t>(glyphs, glyphCount); in drawGlyphsOnPath() 551 refPaint(&paint), glyphs, glyphCount, refPath(&path), hOffset, vOffset)); in drawGlyphsOnPath()
|
D | FontRenderer.cpp | 560 FontRenderer::DropShadow FontRenderer::renderDropShadow(const SkPaint* paint, const glyph_t *glyphs, in renderDropShadow() argument 580 mCurrentFont->measure(paint, glyphs, numGlyphs, &bounds, positions); in renderDropShadow() 612 mCurrentFont->render(paint, glyphs, numGlyphs, penX, penY, in renderDropShadow() 646 void FontRenderer::precache(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, in precache() argument 649 font->precache(paint, glyphs, numGlyphs); in precache() 656 bool FontRenderer::renderPosText(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, in renderPosText() argument 665 mCurrentFont->render(paint, glyphs, numGlyphs, x, y, positions); in renderPosText() 674 bool FontRenderer::renderTextOnPath(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, in renderTextOnPath() argument 683 mCurrentFont->render(paint, glyphs, numGlyphs, path, hOffset, vOffset); in renderTextOnPath()
|
D | DisplayListCanvas.cpp | 424 void DisplayListCanvas::drawGlyphsOnPath(const uint16_t* glyphs, int count, in drawGlyphsOnPath() argument 426 if (!glyphs || count <= 0) return; in drawGlyphsOnPath() 429 DrawOp* op = new (alloc()) DrawTextOnPathOp(refBuffer<glyph_t>(glyphs, count), in drawGlyphsOnPath() 435 void DisplayListCanvas::drawGlyphs(const uint16_t* glyphs, const float* positions, in drawGlyphs() argument 440 if (!glyphs || count <= 0 || PaintUtils::paintWillNotDrawText(paint)) return; in drawGlyphs() 446 DrawOp* op = new (alloc()) DrawTextOp(refBuffer<glyph_t>(glyphs, count), bytesCount, count, in drawGlyphs()
|
D | OpenGLRenderer.h | 194 void drawTextOnPath(const glyph_t* glyphs, int bytesCount, int count, const SkPath* path, 196 void drawText(const glyph_t* glyphs, int bytesCount, int count, float x, float y, 650 void drawTextShadow(const SkPaint* paint, const glyph_t* glyphs, int count,
|
D | DisplayListCanvas.h | 213 virtual void drawGlyphs(const uint16_t* glyphs, const float* positions, int count, 216 virtual void drawGlyphsOnPath(const uint16_t* glyphs, int count, const SkPath& path,
|
D | OpenGLRenderer.cpp | 1960 void OpenGLRenderer::drawTextShadow(const SkPaint* paint, const glyph_t* glyphs, 1974 paint, glyphs, count, textShadow.radius, positions); 2095 void OpenGLRenderer::drawText(const glyph_t* glyphs, int bytesCount, int count, float x, float y, 2102 if (glyphs == nullptr || count == 0 || mState.currentlyIgnored() || canSkipText(paint) || 2126 drawTextShadow(paint, glyphs, count, positions, fontRenderer, 2167 status = fontRenderer.renderPosText(&paintCopy, clip, glyphs, count, x, y, 2170 status = fontRenderer.renderPosText(paint, clip, glyphs, count, x, y, 2184 void OpenGLRenderer::drawTextOnPath(const glyph_t* glyphs, int bytesCount, int count, 2186 if (glyphs == nullptr || count == 0 || mState.currentlyIgnored() || canSkipText(paint)) { 2209 if (fontRenderer.renderTextOnPath(paint, clip, glyphs, count, path,
|
D | SkiaCanvas.cpp | 171 virtual void drawGlyphsOnPath(const uint16_t* glyphs, int count, const SkPath& path, 767 void SkiaCanvas::drawGlyphsOnPath(const uint16_t* glyphs, int count, const SkPath& path, in drawGlyphsOnPath() argument 769 mCanvas->drawTextOnPathHV(glyphs, count << 1, path, hOffset, vOffset, paint); in drawGlyphsOnPath()
|
D | FrameBuilder.cpp | 766 fontRenderer.precache(op.paint, op.glyphs, op.glyphCount, SkMatrix::I()); in deferTextOp() 771 fontRenderer.precache(op.paint, op.glyphs, op.glyphCount, SkMatrix::MakeScale( in deferTextOp() 783 op.paint, op.glyphs, op.glyphCount, SkMatrix::I()); in deferTextOnPathOp()
|
D | BakedOpDispatcher.cpp | 212 op.paint, op.glyphs, op.glyphCount, textShadow.radius, op.positions); in renderTextShadow() 309 fontRenderer.renderPosText(op.paint, localOpClip, op.glyphs, op.glyphCount, x, y, in renderText() 769 if (fontRenderer.renderTextOnPath(op.paint, &localSpaceClip, op.glyphs, op.glyphCount, in onTextOnPathOp()
|
D | RecordingCanvas.h | 199 virtual void drawGlyphsOnPath(const uint16_t* glyphs, int count, const SkPath& path,
|
/frameworks/base/libs/hwui/tests/microbench/ |
D | FontBench.cpp | 36 std::vector<glyph_t> glyphs; in BM_FontRenderer_precache_cachehits() local 41 &glyphs, &positions, &totalAdvance, &bounds); in BM_FontRenderer_precache_cachehits() 43 fontRenderer.precache(&paint, glyphs.data(), glyphs.size(), SkMatrix::I()); in BM_FontRenderer_precache_cachehits() 46 fontRenderer.precache(&paint, glyphs.data(), glyphs.size(), SkMatrix::I()); in BM_FontRenderer_precache_cachehits()
|
/frameworks/base/libs/hwui/hwui/ |
D | Canvas.cpp | 82 DrawTextFunctor(const Layout& layout, Canvas* canvas, uint16_t* glyphs, float* pos, in DrawTextFunctor() argument 86 , glyphs(glyphs) in DrawTextFunctor() 98 glyphs[i] = layout.getGlyphId(i); in operator ()() 104 glyphs[i] = layout.getGlyphId(i); in operator ()() 122 canvas->drawGlyphs(glyphs + start, pos + (2 * start), glyphCount, outlinePaint, x, y, in operator ()() 129 canvas->drawGlyphs(glyphs + start, pos + (2 * start), glyphCount, innerPaint, x, y, in operator ()() 133 canvas->drawGlyphs(glyphs + start, pos + (2 * start), glyphCount, paint, x, y, in operator ()() 140 uint16_t* glyphs; member in android::DrawTextFunctor 158 std::unique_ptr<uint16_t[]> glyphs(new uint16_t[nGlyphs]); in drawText() local 174 DrawTextFunctor f(layout, this, glyphs.get(), pos.get(), in drawText() [all …]
|
D | Canvas.h | 242 virtual void drawGlyphs(const uint16_t* glyphs, const float* positions, int count, 247 virtual void drawGlyphsOnPath(const uint16_t* glyphs, int count, const SkPath& path,
|
/frameworks/base/libs/hwui/tests/unit/ |
D | TextDropShadowCacheTests.cpp | 39 std::vector<glyph_t> glyphs; in RENDERTHREAD_TEST() local 44 &glyphs, &positions, &totalAdvance, &bounds); in RENDERTHREAD_TEST() 47 ShadowTexture* texture = cache.get(&paint, glyphs.data(), glyphs.size(), 10, positions.data()); in RENDERTHREAD_TEST()
|
D | FontRendererTests.cpp | 39 std::vector<glyph_t> glyphs; in RENDERTHREAD_TEST() local 44 &glyphs, &positions, &totalAdvance, &bounds); in RENDERTHREAD_TEST() 47 auto result = fontRenderer.renderDropShadow(&paint, glyphs.data(), glyphs.size(), in RENDERTHREAD_TEST()
|
/frameworks/minikin/sample/ |
D | example_skia.cpp | 82 uint16_t *glyphs = new uint16_t[nGlyphs]; in drawToSkia() local 92 glyphs[i] = layout->getGlyphId(i); in drawToSkia() 97 canvas->drawPosText(glyphs + start, (i - start) << 1, pos + start, *paint); in drawToSkia() 103 canvas->drawPosText(glyphs + start, (nGlyphs - start) << 1, pos + start, *paint); in drawToSkia() 104 delete[] glyphs; in drawToSkia()
|
/frameworks/base/libs/hwui/font/ |
D | Font.cpp | 294 void Font::render(const SkPaint* paint, const glyph_t* glyphs, in render() argument 296 render(paint, glyphs, numGlyphs, x, y, FRAMEBUFFER, nullptr, in render() 300 void Font::render(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, in render() argument 302 if (numGlyphs == 0 || glyphs == nullptr) { in render() 318 float textWidth = SkScalarToFloat(paint->measureText(glyphs, numGlyphs * 2)); in render() 328 glyph_t glyph = *(glyphs++); in render() 348 void Font::measure(const SkPaint* paint, const glyph_t* glyphs, in measure() argument 355 render(paint, glyphs, numGlyphs, 0, 0, MEASURE, nullptr, 0, 0, bounds, positions); in measure() 358 void Font::precache(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs) { in precache() argument 359 if (numGlyphs == 0 || glyphs == nullptr) { in precache() [all …]
|
D | Font.h | 84 void render(const SkPaint* paint, const glyph_t* glyphs, 87 void render(const SkPaint* paint, const glyph_t* glyphs, 113 void precache(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs); 115 void render(const SkPaint* paint, const glyph_t* glyphs, 119 void measure(const SkPaint* paint, const glyph_t* glyphs,
|
/frameworks/base/core/jni/android/graphics/ |
D | Paint.cpp | 565 uint16_t* glyphs, SkPoint* pos) in GetTextFunctor() argument 566 : layout(layout), path(path), x(x), y(y), paint(paint), glyphs(glyphs), pos(pos) { in GetTextFunctor() 571 glyphs[i] = layout.getGlyphId(i); in operator ()() 576 paint->getPosTextPath(glyphs + start, (end - start) << 1, pos + start, path); in operator ()() 578 paint->getPosTextPath(glyphs + start, (end - start) << 1, pos + start, &tmpPath); in operator ()() 588 uint16_t* glyphs; member in android::PaintGlue::GetTextFunctor 598 uint16_t* glyphs = new uint16_t[nGlyphs]; in getTextPath() local 605 GetTextFunctor f(layout, path, x, y, paint, glyphs, pos); in getTextPath() 608 delete[] glyphs; in getTextPath()
|
/frameworks/base/docs/html/design/patterns/ |
D | actionbar.jd | 183 Pre-defined glyphs should be used for certain common actions such as "refresh" and "share." The
|