Lines Matching refs:paintInfo

210 void getStrokeVerticesFromPerimeter(const PaintInfo& paintInfo,  in getStrokeVerticesFromPerimeter()  argument
226 paintInfo.scaleOffsetForStrokeWidth(totalOffset); in getStrokeVerticesFromPerimeter()
245 static inline void storeBeginEnd(const PaintInfo& paintInfo, const Vertex& center, in storeBeginEnd() argument
249 paintInfo.scaleOffsetForStrokeWidth(strokeOffset); in storeBeginEnd()
252 if (paintInfo.cap == SkPaint::kSquare_Cap) { in storeBeginEnd()
268 void getStrokeVerticesFromUnclosedVertices(const PaintInfo& paintInfo, in getStrokeVerticesFromUnclosedVertices() argument
271 const int extra = paintInfo.capExtraDivisions(); in getStrokeVerticesFromUnclosedVertices()
293 paintInfo.scaleOffsetForStrokeWidth(beginRadialOffset); in getStrokeVerticesFromUnclosedVertices()
299 paintInfo.scaleOffsetForStrokeWidth(endRadialOffset); in getStrokeVerticesFromUnclosedVertices()
312 storeBeginEnd(paintInfo, vertices[0], lastNormal, buffer, currentIndex, true); in getStrokeVerticesFromUnclosedVertices()
320 paintInfo.scaleOffsetForStrokeWidth(strokeOffset); in getStrokeVerticesFromUnclosedVertices()
330 storeBeginEnd(paintInfo, vertices[lastIndex], lastNormal, buffer, currentIndex, false); in getStrokeVerticesFromUnclosedVertices()
345 void getFillVerticesFromPerimeterAA(const PaintInfo& paintInfo, in getFillVerticesFromPerimeterAA() argument
365 paintInfo.deriveAAOffset(totalOffsetFromNormals(lastNormal, nextNormal)); in getFillVerticesFromPerimeterAA()
402 inline static void storeCapAA(const PaintInfo& paintInfo, const std::vector<Vertex>& vertices, in storeCapAA() argument
404 const int extra = paintInfo.capExtraDivisions(); in storeCapAA()
411 Vector2 AAOffset = paintInfo.deriveAAOffset(normal); in storeCapAA()
414 paintInfo.scaleOffsetForStrokeWidth(strokeOffset); in storeCapAA()
419 if (paintInfo.cap != SkPaint::kRound_Cap) { in storeCapAA()
428 if (paintInfo.cap == SkPaint::kSquare_Cap) { in storeCapAA()
438 referencePoint.y + innerOffset.y - capAAOffset.y, paintInfo.maxAlpha); in storeCapAA()
440 bool isRound = paintInfo.cap == SkPaint::kRound_Cap; in storeCapAA()
446 referencePoint.y - innerOffset.y - capAAOffset.y, paintInfo.maxAlpha); in storeCapAA()
462 AAOffset = paintInfo.deriveAAOffset(radialOffset); in storeCapAA()
463 paintInfo.scaleOffsetForStrokeWidth(radialOffset); in storeCapAA()
469 referencePoint.y + radialOffset.y - AAOffset.y, paintInfo.maxAlpha); in storeCapAA()
561 void getStrokeVerticesFromUnclosedVerticesAA(const PaintInfo& paintInfo, in getStrokeVerticesFromUnclosedVerticesAA() argument
564 const int extra = paintInfo.capExtraDivisions(); in getStrokeVerticesFromUnclosedVerticesAA()
582 storeCapAA(paintInfo, vertices, buffer, true, lastNormal, offset); in getStrokeVerticesFromUnclosedVerticesAA()
590 Vector2 AAOffset = paintInfo.deriveAAOffset(totalOffset); in getStrokeVerticesFromUnclosedVerticesAA()
593 paintInfo.scaleOffsetForStrokeWidth(innerOffset); in getStrokeVerticesFromUnclosedVerticesAA()
600 current->y + innerOffset.y, paintInfo.maxAlpha); in getStrokeVerticesFromUnclosedVerticesAA()
603 current->y + innerOffset.y, paintInfo.maxAlpha); in getStrokeVerticesFromUnclosedVerticesAA()
605 current->y - innerOffset.y, paintInfo.maxAlpha); in getStrokeVerticesFromUnclosedVerticesAA()
608 current->y - innerOffset.y, paintInfo.maxAlpha); in getStrokeVerticesFromUnclosedVerticesAA()
617 storeCapAA(paintInfo, vertices, buffer, false, lastNormal, offset); in getStrokeVerticesFromUnclosedVerticesAA()
622 void getStrokeVerticesFromPerimeterAA(const PaintInfo& paintInfo, in getStrokeVerticesFromPerimeterAA() argument
642 Vector2 AAOffset = paintInfo.deriveAAOffset(totalOffset); in getStrokeVerticesFromPerimeterAA()
645 paintInfo.scaleOffsetForStrokeWidth(innerOffset); in getStrokeVerticesFromPerimeterAA()
652 current->y + innerOffset.y, paintInfo.maxAlpha); in getStrokeVerticesFromPerimeterAA()
655 current->y + innerOffset.y, paintInfo.maxAlpha); in getStrokeVerticesFromPerimeterAA()
657 current->y - innerOffset.y, paintInfo.maxAlpha); in getStrokeVerticesFromPerimeterAA()
660 current->y - innerOffset.y, paintInfo.maxAlpha); in getStrokeVerticesFromPerimeterAA()
688 const PaintInfo paintInfo(paint, transform); in tessellatePath() local
691 float threshInvScaleX = paintInfo.inverseScaleX; in tessellatePath()
692 float threshInvScaleY = paintInfo.inverseScaleY; in tessellatePath()
693 if (paintInfo.style == SkPaint::kStroke_Style) { in tessellatePath()
704 bool forceClose = paintInfo.style != SkPaint::kStroke_Style; in tessellatePath()
721 if (paintInfo.style == SkPaint::kStroke_Style) { in tessellatePath()
722 if (!paintInfo.isAA) { in tessellatePath()
724 getStrokeVerticesFromPerimeter(paintInfo, tempVertices, vertexBuffer); in tessellatePath()
726 getStrokeVerticesFromUnclosedVertices(paintInfo, tempVertices, vertexBuffer); in tessellatePath()
731 getStrokeVerticesFromPerimeterAA(paintInfo, tempVertices, vertexBuffer); in tessellatePath()
733 getStrokeVerticesFromUnclosedVerticesAA(paintInfo, tempVertices, vertexBuffer); in tessellatePath()
739 if (!paintInfo.isAA) { in tessellatePath()
742 getFillVerticesFromPerimeterAA(paintInfo, tempVertices, vertexBuffer); in tessellatePath()
747 paintInfo.expandBoundsForStroke(&bounds); in tessellatePath()
749 vertexBuffer.setMeshFeatureFlags(paintInfo.isAA ? VertexBuffer::kAlpha : VertexBuffer::kNone); in tessellatePath()
770 const PaintInfo paintInfo(paint, transform); in tessellatePoints() local
774 float radius = paintInfo.halfStrokeWidth; in tessellatePoints()
777 if (paintInfo.cap == SkPaint::kRound_Cap) { in tessellatePoints()
785 PathApproximationInfo approximationInfo(paintInfo.inverseScaleX, paintInfo.inverseScaleY, in tessellatePoints()
794 if (!paintInfo.isAA) { in tessellatePoints()
799 getFillVerticesFromPerimeterAA(paintInfo, outlineVertices, tempBuffer, paintInfo.maxAlpha); in tessellatePoints()
804 paintInfo.expandBoundsForStroke(&bounds); in tessellatePoints()
806 vertexBuffer.setMeshFeatureFlags(paintInfo.isAA ? VertexBuffer::kAlpha : VertexBuffer::kNone); in tessellatePoints()
812 const PaintInfo paintInfo(paint, transform); in tessellateLines() local
814 const int extra = paintInfo.capExtraDivisions(); in tessellateLines()
818 if (paintInfo.isAA) { in tessellateLines()
834 if (paintInfo.isAA) { in tessellateLines()
835 getStrokeVerticesFromUnclosedVerticesAA(paintInfo, tempVertices, vertexBuffer); in tessellateLines()
837 getStrokeVerticesFromUnclosedVertices(paintInfo, tempVertices, vertexBuffer); in tessellateLines()
846 if (paintInfo.isAA) { in tessellateLines()
853 paintInfo.expandBoundsForStroke(&bounds); in tessellateLines()
855 vertexBuffer.setMeshFeatureFlags(paintInfo.isAA ? VertexBuffer::kAlpha : VertexBuffer::kNone); in tessellateLines()