Home
last modified time | relevance | path

Searched refs:halfStrokeWidth (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/libs/hwui/
DPathTessellator.cpp103 halfStrokeWidth(paint->getStrokeWidth() * 0.5f), maxAlpha(1.0f) { in PaintInfo()
115 if (isAA && halfStrokeWidth != 0 && inverseScaleX == inverseScaleY && in PaintInfo()
116 2 * halfStrokeWidth < inverseScaleX) { in PaintInfo()
118 maxAlpha *= (2 * halfStrokeWidth) / inverseScaleX; in PaintInfo()
119 halfStrokeWidth = 0.0f; in PaintInfo()
128 float halfStrokeWidth; member
132 if (halfStrokeWidth == 0.0f) { in scaleOffsetForStrokeWidth()
137 offset *= halfStrokeWidth; in scaleOffsetForStrokeWidth()
156 if (halfStrokeWidth == 0.0f) return 2; in capExtraDivisions()
159 return MathUtils::divisionsNeededToApproximateArc(halfStrokeWidth, PI, threshold); in capExtraDivisions()
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DGradientDrawable.java1706 final float halfStrokeWidth = mStrokePaint == null ?
1709 final int top = (int) Math.floor(centerY - halfStrokeWidth);
1710 final int bottom = (int) Math.ceil(centerY + halfStrokeWidth);