/third_party/skia/modules/skplaintexteditor/src/ |
H A D | editor.cpp | 57 for (auto& l : fLines) { this->markDirty(&l); } in setFont() 65 for (auto& l : fLines) { this->markDirty(&l); } in setWidth() 73 for (size_t j = 0; j < fLines.size(); ++j) { in getPosition() 74 const TextLine& line = fLines[j]; in getPosition() 78 j + 1 < fLines.size() ? fLines[j + 1].fOrigin.y() : INT_MAX}; in getPosition() 127 if (fLines.size() > 0) { in getLocation() 128 const TextLine& cLine = fLines[cursor.fParagraphIndex]; in getLocation() 152 if (pos.fParagraphIndex < fLines.size()) { in insert() 153 fLines[po in insert() [all...] |
/third_party/skia/modules/skplaintexteditor/include/ |
H A D | editor.h | 38 const std::vector<TextLine>& fLines; member 45 Iterator begin() const { return Iterator{fLines.begin()}; } in begin() 46 Iterator end() const { return Iterator{fLines.end()}; } in end() 53 Text text() const { return Text{fLines}; } in text() 56 int lineHeight(size_t index) const { return fLines[index].fHeight; } in lineHeight() 84 size_t lineCount() const { return fLines.size(); } in lineCount() 86 return i < fLines.size() ? fLines[i].fText.view() : StringView{nullptr, 0}; in line() 102 // TODO: rename this to TextParagraph. fLines to fParas. 116 std::vector<TextLine> fLines; member in SkPlainTextEditor::Editor [all...] |
/third_party/icu/icu4c/source/samples/layout/ |
H A D | pflow.c | 56 pl_line **fLines; member 137 flow->fLines = NULL; in pf_create() 151 flow->fLines = NEW_ARRAY(pl_line *, flow->fLinesMax); in pf_create() 233 DELETE_ARRAY(obj->fLines[i]); in pf_close() 236 DELETE_ARRAY(obj->fLines); in pf_close() 274 obj->fLines = (pl_line **) GROW_ARRAY(obj->fLines, obj->fLinesMax + obj->fLinesGrow); in addLine() 278 obj->fLines[obj->fLineCount++] = line; in addLine() 301 pl_closeLine(obj->fLines[li]); in pf_breakLines() 329 const pl_line *line = obj->fLines[l in pf_draw() [all...] |
H A D | paragraph.cpp | 84 fLineCount(0), fLinesMax(LINE_GROW), fLinesGrow(LINE_GROW), fLines(NULL), fChars(NULL), in Paragraph() 100 fLines = LE_NEW_ARRAY(const ParagraphLayout::Line *, fLinesMax); in Paragraph() 170 delete /*(LineInfo *)*/ fLines[line]; in ~Paragraph() 177 LE_DELETE_ARRAY(fLines); in ~Paragraph() 185 fLines = (const ParagraphLayout::Line **) LE_GROW_ARRAY(fLines, fLinesMax + fLinesGrow); in addLine() 189 fLines[fLineCount++] = line; in addLine() 208 delete fLines[li]; in breakLines() 235 const ParagraphLayout::Line *line = fLines[li]; in draw()
|
H A D | paragraph.h | 67 const ParagraphLayout::Line **fLines; member in Paragraph
|
/third_party/skia/third_party/externals/icu/source/samples/layout/ |
H A D | pflow.c | 54 pl_line **fLines; member 135 flow->fLines = NULL; in pf_create() 149 flow->fLines = NEW_ARRAY(pl_line *, flow->fLinesMax); in pf_create() 231 DELETE_ARRAY(obj->fLines[i]); in pf_close() 234 DELETE_ARRAY(obj->fLines); in pf_close() 272 obj->fLines = (pl_line **) GROW_ARRAY(obj->fLines, obj->fLinesMax + obj->fLinesGrow); in addLine() 276 obj->fLines[obj->fLineCount++] = line; in addLine() 299 pl_closeLine(obj->fLines[li]); in pf_breakLines() 327 const pl_line *line = obj->fLines[l in pf_draw() [all...] |
H A D | paragraph.cpp | 84 fLineCount(0), fLinesMax(LINE_GROW), fLinesGrow(LINE_GROW), fLines(NULL), fChars(NULL), in Paragraph() 100 fLines = LE_NEW_ARRAY(const ParagraphLayout::Line *, fLinesMax); in Paragraph() 170 delete /*(LineInfo *)*/ fLines[line]; in ~Paragraph() 177 LE_DELETE_ARRAY(fLines); in ~Paragraph() 185 fLines = (const ParagraphLayout::Line **) LE_GROW_ARRAY(fLines, fLinesMax + fLinesGrow); in addLine() 189 fLines[fLineCount++] = line; in addLine() 208 delete fLines[li]; in breakLines() 235 const ParagraphLayout::Line *line = fLines[li]; in draw()
|
H A D | paragraph.h | 67 const ParagraphLayout::Line **fLines; member in Paragraph
|
/third_party/skia/modules/skparagraph/src/ |
H A D | ParagraphImpl.cpp | 169 if (lineNumber > fLines.size() || !lineNumber || in GetLineFontMetrics() 170 !fLines[lineNumber - 1].getLineAllRuns().size()) { in GetLineFontMetrics() 175 size_t lineCharCount = fLines[lineNumber - 1].clusters().end - in GetLineFontMetrics() 176 fLines[lineNumber - 1].clusters().start; in GetLineFontMetrics() 178 for (auto& runIndex : fLines[lineNumber - 1].getLineAllRuns()) { in GetLineFontMetrics() 522 fLines.size() == 1 && fLines.front().ellipsis() == nullptr) { in GetLineFontMetrics() 563 this->fLines.reset(); in GetLineFontMetrics() 597 this->fLines.reset(); in GetLineFontMetrics() 650 fLineNumber = std::max(size_t(1), fLines in GetLineFontMetrics() [all...] |
H A D | ParagraphCache.cpp | 103 SkTArray<TextLine, false> fLines; member in skia::textlayout::ParagraphCacheValue 372 value->fLines.reset(); in SetStoredLayoutImpl() 375 for (auto& line : paragraph.fLines) { in SetStoredLayoutImpl() 376 value->fLines.emplace_back(line.CloneSelf()); in SetStoredLayoutImpl() 415 if (value->fLines.empty()) { in GetStoredLayout() 429 paragraph.fLines.reset(); in GetStoredLayout() 430 for (auto& line : value->fLines) { in GetStoredLayout() 431 paragraph.fLines.emplace_back(line.CloneSelf()); in GetStoredLayout() 432 paragraph.fLines.back().setParagraphImpl(¶graph); in GetStoredLayout()
|
H A D | ParagraphImpl.h | 174 SkSpan<TextLine> lines() { return SkSpan<TextLine>(fLines.data(), fLines.size()); } in lines() 421 SkTArray<TextLine, false> fLines; // kFormatted (cached: width, max lines, ellipsis, text align) member in skia::textlayout::final
|
/third_party/skia/bench/ |
H A D | TypefaceBench.cpp | 232 fLines.emplace_back(this->convertLine(i)); 233 maxGlyphs = std::max(maxGlyphs, fLines.back()->glyphCount); 243 for (auto& line : fLines) { 293 std::vector<std::unique_ptr<Line>> fLines; member in UtfToGlyph
|
/third_party/skia/src/gpu/ops/ |
H A D | DashOp.cpp | 243 fLines.push_back(geometry); in DashOpImpl() 253 SkMatrix& combinedMatrix = fLines[0].fSrcRotInv; in DashOpImpl() 331 int instanceCount = fLines.count(); 357 const LineData& args = fLines[i]; 573 const LineData& geom = fLines[i]; 656 fLines.push_back_n(that->fLines.count(), that->fLines.begin()); 663 for (const auto& geo : fLines) { 679 const SkMatrix& viewMatrix() const { return fLines[ in color() 684 SkSTArray<1, LineData, true> fLines; global() member in skgpu::v1::DashOp::__anon18834::final [all...] |