Home
last modified time | relevance | path

Searched refs:dashInfo (Results 1 – 3 of 3) sorted by relevance

/aosp_15_r20/external/skia/src/pdf/
H A DSkPDFFont.cpp123 SkPathEffectBase::DashInfo dashInfo(intervals, 4, 0); in scale_paint() local
124 if (peb->asADash(&dashInfo) == SkPathEffectBase::DashType::kDash) { in scale_paint()
125 if (dashInfo.fCount > 4) { in scale_paint()
126 intervals.realloc(dashInfo.fCount); in scale_paint()
127 peb->asADash(&dashInfo); in scale_paint()
129 for (int32_t i = 0; i < dashInfo.fCount; ++i) { in scale_paint()
130 dashInfo.fIntervals[i] *= fontToEMScale; in scale_paint()
132 dashInfo.fPhase *= fontToEMScale; in scale_paint()
134 SkDashPathEffect::Make(dashInfo.fIntervals, dashInfo.fCount, dashInfo.fPhase)); in scale_paint()
/aosp_15_r20/external/skia/tools/debugger/
H A DDrawCommand.cpp878 SkPathEffectBase::DashInfo dashInfo; in apply_paint_patheffect() local
879 SkPathEffectBase::DashType dashType = as_PEB(pathEffect)->asADash(&dashInfo); in apply_paint_patheffect()
881 dashInfo.fIntervals = (SkScalar*)sk_malloc_throw(dashInfo.fCount * sizeof(SkScalar)); in apply_paint_patheffect()
882 as_PEB(pathEffect)->asADash(&dashInfo); in apply_paint_patheffect()
885 for (int32_t i = 0; i < dashInfo.fCount; i++) { in apply_paint_patheffect()
886 writer.appendFloat(dashInfo.fIntervals[i]); in apply_paint_patheffect()
889 sk_free(dashInfo.fIntervals); in apply_paint_patheffect()
890 writer.appendFloat(DEBUGCANVAS_ATTRIBUTE_PHASE, dashInfo.fPhase); in apply_paint_patheffect()
/aosp_15_r20/external/skia/src/text/gpu/
H A DSubRunContainer.cpp1654 SkPathEffectBase::DashInfo dashInfo; in make_sdft_strike_spec() local
1655 if (as_PEB(pathEffect)->asADash(&dashInfo) == SkPathEffectBase::DashType::kDash) { in make_sdft_strike_spec()
1656 if (dashInfo.fCount > 0) { in make_sdft_strike_spec()
1658 std::vector<SkScalar> scaledIntervals(dashInfo.fCount); in make_sdft_strike_spec()
1659 dashInfo.fIntervals = scaledIntervals.data(); in make_sdft_strike_spec()
1661 (void)as_PEB(pathEffect)->asADash(&dashInfo); in make_sdft_strike_spec()
1667 dashInfo.fPhase / strikeToSourceScale); in make_sdft_strike_spec()