Home
last modified time | relevance | path

Searched refs:effectiveRadius (Results 1 – 4 of 4) sorted by relevance

/external/skia/src/gpu/effects/
DGrCircleEffect.fp34 SkScalar effectiveRadius = radius;
36 effectiveRadius -= 0.5f;
37 // When the radius is 0.5 effectiveRadius is 0 which causes an inf * 0 in the shader.
38 effectiveRadius = SkTMax(0.001f, effectiveRadius);
40 effectiveRadius += 0.5f;
42 pdman.set4f(circle, center.fX, center.fY, effectiveRadius,
43 SkScalarInvert(effectiveRadius));
DGrCircleEffect.cpp66 SkScalar effectiveRadius = radius; in onSetData() local
68 effectiveRadius -= 0.5f; in onSetData()
71 effectiveRadius = SkTMax(0.001f, effectiveRadius); in onSetData()
73 effectiveRadius += 0.5f; in onSetData()
75 pdman.set4f(circle, center.fX, center.fY, effectiveRadius, in onSetData()
76 SkScalarInvert(effectiveRadius)); in onSetData()
/external/skqp/src/gpu/effects/
DGrCircleEffect.fp34 SkScalar effectiveRadius = radius;
36 effectiveRadius -= 0.5f;
37 // When the radius is 0.5 effectiveRadius is 0 which causes an inf * 0 in the shader.
38 effectiveRadius = SkTMax(0.001f, effectiveRadius);
40 effectiveRadius += 0.5f;
42 pdman.set4f(circle, center.fX, center.fY, effectiveRadius,
43 SkScalarInvert(effectiveRadius));
DGrCircleEffect.cpp66 SkScalar effectiveRadius = radius; in onSetData() local
68 effectiveRadius -= 0.5f; in onSetData()
71 effectiveRadius = SkTMax(0.001f, effectiveRadius); in onSetData()
73 effectiveRadius += 0.5f; in onSetData()
75 pdman.set4f(circle, center.fX, center.fY, effectiveRadius, in onSetData()
76 SkScalarInvert(effectiveRadius)); in onSetData()