Home
last modified time | relevance | path

Searched refs:fPositions (Results 1 – 25 of 38) sorted by relevance

12

/external/skia/src/utils/
DSkShadowTessellator.cpp37 fPositions.begin(), nullptr, fColors.begin(), in releaseVertices()
46 int vertexCount() const { return fPositions.count(); } in vertexCount()
95 SkTDArray<SkPoint> fPositions; member in SkBaseShadowTessellator
301 fPositions.push_back(fCentroid); in computeConvexShadow()
316 fFirstVertexIndex = fPositions.count(); in computeConvexShadow()
325 bool isOutside = this->clipUmbraPoint(fPositions[fFirstVertexIndex], in computeConvexShadow()
328 fPositions.push_back(clipPoint); in computeConvexShadow()
336 fPositions.push_back(newPoint); in computeConvexShadow()
353 SkASSERT(fPositions.count() >= 3); in computeConvexShadow()
356 this->appendTriangle(fFirstVertexIndex, fPositions.count() - 1, in computeConvexShadow()
[all …]
DSkShaperJSONWriter.cpp30 fPositions.resize(info.glyphCount); in runBuffer()
32 return {fGlyphs.data(), fPositions.data(), nullptr, fClusters.data(), {0, 0}}; in runBuffer()
113 for (auto position : fPositions) { in commitRunBuffer()
121 fJSONWriter->appendFloat(fPositions[i].fX - fPositions[i-1].fX); in commitRunBuffer()
123 SkPoint lastAdvance = info.fAdvance - (fPositions.back() - fPositions.front()); in commitRunBuffer()
/external/skqp/src/utils/
DSkShadowTessellator.cpp36 fPositions.begin(), nullptr, fColors.begin(), in releaseVertices()
45 int vertexCount() const { return fPositions.count(); } in vertexCount()
94 SkTDArray<SkPoint> fPositions; member in SkBaseShadowTessellator
297 fPositions.push_back(fCentroid); in computeConvexShadow()
312 fFirstVertexIndex = fPositions.count(); in computeConvexShadow()
321 bool isOutside = this->clipUmbraPoint(fPositions[fFirstVertexIndex], in computeConvexShadow()
324 fPositions.push_back(clipPoint); in computeConvexShadow()
332 fPositions.push_back(newPoint); in computeConvexShadow()
349 SkASSERT(fPositions.count() >= 3); in computeConvexShadow()
352 this->appendTriangle(fFirstVertexIndex, fPositions.count() - 1, in computeConvexShadow()
[all …]
/external/skia/experimental/sktext/src/
DTextRun.cpp17 fPositions.push_back_n(info.glyphCount + 1); in TextRun()
21 fPositions[info.glyphCount] = fAdvance; in TextRun()
29 fPositions[fGlyphs.size()] = fAdvance; in commit()
34 return {fGlyphs.data(), fPositions.data(), nullptr, fClusters.data(), {0.0f, 0.0f} }; in newRunBuffer()
38 SkASSERT(glyphRange.fStart <= glyphRange.fEnd && glyphRange.fEnd < fPositions.size()); in calculateWidth()
39 return fPositions[glyphRange.fEnd].fX - fPositions[glyphRange.fStart].fX; in calculateWidth()
DWrapper.h25 return run->fPositions[glyphRange.fEnd].fX - run->fPositions[glyphRange.fStart].fX; in glyphRangeWidth()
DWrapper.cpp60 for (size_t glyphIndex = 0; glyphIndex < run.fPositions.size(); ++glyphIndex) { in breakTextIntoLines()
71 … auto clusterWidth = run.fPositions[glyphIndex].fX - run.fPositions[cluster.glyphStartIndex()].fX; in breakTextIntoLines()
/external/skia/gm/
Ddrawglyphs.cpp33 fPositions.append(fGlyphCount); in onOnceBeforeDraw()
34 fFont.getPos(fGlyphs.begin(), fGlyphCount, fPositions.begin()); in onOnceBeforeDraw()
35 auto positions = SkMakeSpan(fPositions.begin(), fGlyphCount); in onOnceBeforeDraw()
59 canvas->drawGlyphs(fGlyphCount, fGlyphs.begin(), fPositions.begin(), {50, 100}, fFont, in onDraw()
62 canvas->drawGlyphs(fGlyphCount, fGlyphs.begin(), fPositions.begin(), {50, 120}, fFont, in onDraw()
66 for (auto& pos : fPositions) { in onDraw()
69 canvas->drawGlyphs(fGlyphCount, fGlyphs.begin(), fPositions.begin(), {50, 640}, fFont, in onDraw()
82 SkTDArray<SkPoint> fPositions; member in DrawGlyphsGM
/external/skia/src/core/
DSkGlyphBuffer.cpp20 fPositions.reset(size); in ensureSize()
33 memcpy(fPositions, positions.data(), positions.size() * sizeof(SkPoint)); in startSource()
56 matrix.mapPoints(fPositions, positions.data(), positions.size()); in startBitmapDevice()
63 SkMakeZip(source.get<0>(), fPositions.get()); in startBitmapDevice()
85 device.mapPoints(fPositions, positions.data(), positions.size()); in startGPUDevice()
92 : SkMakeZip(fMultiBuffer.get(), source.get<0>(), fPositions.get())) { in startGPUDevice()
106 : SkZip<SkGlyphVariant, SkPoint>{fInputSize, fMultiBuffer.get(), fPositions.get()}) { in dumpInput()
116 fPositions.reset(); in reset()
DSkGlyphBuffer.h181 return SkZip<SkGlyphVariant, SkPoint>{fInputSize, fMultiBuffer.get(), fPositions}; in input()
189 fPositions[fDrawableSize] = fPositions[from]; in push_back()
199 fPositions[fDrawableSize] = fPositions[from]; in push_back()
208 return SkZip<SkGlyphVariant, SkPoint>{fDrawableSize, fMultiBuffer.get(), fPositions}; in drawable()
230 SkAutoTMalloc<SkPoint> fPositions; variable
DSkVertices.cpp133 fVertices->fPositions = (SkPoint*) advance(sizes.fVSize); in init()
147 fVertices->fBounds.setBounds(fVertices->fPositions, fVertices->fVertexCount); in detach()
176 return fVertices ? const_cast<SkPoint*>(fVertices->fPositions) : nullptr; in positions()
259 buffer.writeByteArray(fVertices->fPositions, sizes.fVSize); in encode()
DSkGlyphRun.cpp198 SkSpan<const SkPoint> positions = draw_text_positions(font, glyphIDs, {0, 0}, fPositions); in textToGlyphRunList()
216 SkPoint* positionCursor = fPositions; in blobToGlyphRunList()
274 auto positions = SkMakeSpan(fPositions.get(), count); in convertRSXForm()
302 fPositions.reset(fMaxTotalRunSize); in prepareBuffers()
/external/skqp/gm/
Dvariedtext.cpp95 fPositions[i].fX = random.nextRangeScalar(safeRect.fLeft, safeRect.fRight); in onOnceBeforeDraw()
96 fPositions[i].fY = random.nextRangeScalar(safeRect.fTop, safeRect.fBottom); in onOnceBeforeDraw()
99 fClipRects[i].offset(fPositions[i].fX, fPositions[i].fY); in onOnceBeforeDraw()
116 canvas->translate(fPositions[i].fX, fPositions[i].fY); in onDraw()
152 SkPoint fPositions[kCnt]; member in VariedTextGM
/external/skqp/src/core/
DSkFindAndPlaceGlyph.h123 : fPositions(positions) { } in HorizontalPositions()
126 SkScalar x = *fPositions++; in nextPoint()
131 const SkScalar* fPositions;
137 : fPositions(positions) { } in ArbitraryPositions()
140 SkPoint to_return{fPositions[0], fPositions[1]}; in nextPoint()
141 fPositions += 2; in nextPoint()
146 const SkScalar* fPositions;
DSkGlyphRun.cpp27 : fPositions{positions} in SkGlyphRun()
34 : fPositions{that.fPositions} in SkGlyphRun()
42 memcpy(positions, fPositions.data(), fPositions.size_bytes()); in filloutGlyphsAndPositions()
168 this->simplifyDrawText(font, glyphIDs, origin, fPositions); in drawTextUTF8()
185 SkPoint* positions = fPositions; in drawTextBlob()
253 fPositions.reset(fMaxTotalRunSize); in initialize()
DSkGlyphRun.h38 SkSpan<const SkPoint> positions() const { return fPositions.toConst(); } in positions()
46 const SkSpan<const SkPoint> fPositions;
161 SkAutoTMalloc<SkPoint> fPositions; variable
DSkVertices.cpp125 fVertices->fPositions = (SkPoint*)ptr; ptr += sizes.fVSize; in init()
141 fVertices->fBounds.set(fVertices->fPositions, fVertices->fVertexCnt); in detach()
240 SkPoint& position = copy->fPositions[i]; in applyBones()
269 copy->fBounds.set(copy->fPositions, copy->fVertexCnt); in applyBones()
366 writer.write(fPositions, sizes.fVSize); in encode()
DSkGlyphRunPainter.cpp171 fPositions, glyphRun.positions().data(), runSize); in drawForBitmapDevice()
183 SkPoint* positionCursor = fPositions; in drawForBitmapDevice()
215 matrix.mapPoints(fPositions, glyphRun.positions().data(), runSize); in drawForBitmapDevice()
219 const SkPoint* positionCursor = fPositions; in drawForBitmapDevice()
386 mapping.mapPoints(fPositions, glyphRun.positions().data(), glyphRun.runSize()); in drawGlyphRunAsBMPWithPathFallback()
388 const SkPoint* posCursor = fPositions; in drawGlyphRunAsBMPWithPathFallback()
424 mapping.mapPoints(fPositions, glyphCount); in drawGlyphRunAsBMPWithPathFallback()
1106 fPainter->fPositions.reset(size);
1118 fPainter->fPositions.reset(); in ~ScopedBuffers()
/external/icu/icu4c/source/common/
Drbbitblb.cpp579 failState->fPositions = new UVector(*fStatus); in buildStateTable()
580 if (failState->fPositions == NULL) { in buildStateTable()
583 if (failState->fPositions == NULL || U_FAILURE(*fStatus)) { in buildStateTable()
600 initialState->fPositions = new UVector(*fStatus); in buildStateTable()
601 if (initialState->fPositions == NULL) { in buildStateTable()
607 setAdd(initialState->fPositions, fTree->fFirstPosSet); in buildStateTable()
641 for (px=0; px<T->fPositions->size(); px++) { in buildStateTable()
642 p = (RBBINode *)T->fPositions->elementAt(px); in buildStateTable()
664 if (setEquals(U, temp2->fPositions)) { in buildStateTable()
666 U = temp2->fPositions; in buildStateTable()
[all …]
/external/icu/icu4c/source/layoutex/layout/
DParagraphLayout.h338 const float *fPositions; variable
702 return fPositions; in getPositions()
726 …: UObject(), fFont(NULL), fDirection(UBIDI_LTR), fGlyphCount(0), fGlyphs(NULL), fPositions(NULL), … in VisualRun()
732 …: UObject(), fFont(NULL), fDirection(UBIDI_LTR), fGlyphCount(0), fGlyphs(NULL), fPositions(NULL), … in VisualRun()
740 fGlyphs(glyphs), fPositions(positions), fGlyphToCharMap(glyphToCharMap) in VisualRun()
/external/skqp/experimental/nima/
DNimaActor.cpp124 , fPositions() in NimaActorImage()
203 fPositions.clear(); in updateVertices()
212 fPositions.resize(vertexCount); in updateVertices()
234 fPositions[i].set(attrPosition[0], attrPosition[1]); in updateVertices()
248 fPositions.data(), in updateVertices()
/external/skia/modules/skparagraph/src/
DRun.cpp39 fPositions.push_back_n(info.glyphCount + 1); in Run()
48 fPositions[info.glyphCount] = fOffset + fAdvance; in Run()
75 return {fGlyphs.data(), fPositions.data(), nullptr, fClusterIndexes.data(), fOffset}; in newRunBuffer()
88 sk_careful_memcpy(blobBuffer.points(), fPositions.data() + pos, size * sizeof(SkPoint)); in copyTo()
91 auto point = fPositions[i + pos]; in copyTo()
DRun.h74 SkScalar posX(size_t index) const { return fPositions[index].fX; } in posX()
75 void addX(size_t index, SkScalar shift) { fPositions[index].fX += shift; } in addX()
76 SkScalar posY(size_t index) const { return fPositions[index].fY; } in posY()
148 return SkSpan<const SkPoint>(fPositions.begin(), fPositions.size()); in positions()
186 SkSTArray<128, SkPoint, true> fPositions; variable
/external/skia/tests/
DShaperTest.cpp26 std::unique_ptr<SkPoint[]> fPositions; member
41 fPositions = std::make_unique<SkPoint[]>(info.glyphCount); in runBuffer()
44 fPositions.get(), in runBuffer()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DRBBITableBuilder.java46 Set<RBBINode> fPositions; // Set of parse tree positions associated field in RBBITableBuilder.RBBIStateDescriptor
57 fPositions = new HashSet<>(); in RBBIStateDescriptor()
549 initialState.fPositions.addAll(fRB.fTreeRoots[fRootIx].fFirstPosSet); in buildStateTable()
577 for (RBBINode p : T.fPositions) { in buildStateTable()
595 if (U.equals(temp2.fPositions)) { in buildStateTable()
596 U = temp2.fPositions; in buildStateTable()
607 newState.fPositions = U; in buildStateTable()
636 for (RBBINode node: sd.fPositions) { in mapLookAheadRules()
666 for (RBBINode node: sd.fPositions) { in mapLookAheadRules()
700 if (sd.fPositions.contains(endMarker)) { in flagAcceptingStates()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DRBBITableBuilder.java47 Set<RBBINode> fPositions; // Set of parse tree positions associated field in RBBITableBuilder.RBBIStateDescriptor
58 fPositions = new HashSet<>(); in RBBIStateDescriptor()
550 initialState.fPositions.addAll(fRB.fTreeRoots[fRootIx].fFirstPosSet); in buildStateTable()
578 for (RBBINode p : T.fPositions) { in buildStateTable()
596 if (U.equals(temp2.fPositions)) { in buildStateTable()
597 U = temp2.fPositions; in buildStateTable()
608 newState.fPositions = U; in buildStateTable()
637 for (RBBINode node: sd.fPositions) { in mapLookAheadRules()
667 for (RBBINode node: sd.fPositions) { in mapLookAheadRules()
701 if (sd.fPositions.contains(endMarker)) { in flagAcceptingStates()
[all …]

12