Home
last modified time | relevance | path

Searched refs:fRadius (Results 1 – 25 of 35) sorted by relevance

12

/external/skia/legacy/src/effects/
DSkBlurMaskFilter.cpp34 SkScalar fRadius; member in SkBlurMaskFilterImpl
60 : fRadius(radius), fBlurStyle(style), fBlurFlags(flags) { in SkBlurMaskFilterImpl()
84 radius = fRadius; in filterMask()
86 radius = matrix.mapRadius(fRadius); in filterMask()
103 dst->set(src.fLeft - fRadius, src.fTop - fRadius, in computeFastBounds()
104 src.fRight + fRadius, src.fBottom + fRadius); in computeFastBounds()
117 fRadius = buffer.readScalar(); in SkBlurMaskFilterImpl()
120 SkASSERT(fRadius >= 0); in SkBlurMaskFilterImpl()
126 buffer.writeScalar(fRadius); in flatten()
140 info->fRadius = fRadius; in asABlur()
DSkCornerPathEffect.cpp15 SkCornerPathEffect::SkCornerPathEffect(SkScalar radius) : fRadius(radius) in SkCornerPathEffect()
40 if (fRadius == 0) { in filterPath()
75 bool drawSegment = ComputeStep(pts[0], pts[1], fRadius, &step); in filterPath()
137 buffer.writeScalar(fRadius); in flatten()
145 fRadius = buffer.readScalar(); in SkCornerPathEffect()
DSkMorphologyImageFilter.cpp13 fRadius.fWidth = buffer.readScalar(); in SkMorphologyImageFilter()
14 fRadius.fHeight = buffer.readScalar(); in SkMorphologyImageFilter()
18 : fRadius(SkISize::Make(radiusX, radiusY)) { in SkMorphologyImageFilter()
24 buffer.writeScalar(fRadius.fWidth); in flatten()
25 buffer.writeScalar(fRadius.fHeight); in flatten()
/external/skia/bench/
DMorphologyBench.cpp34 SkScalar fRadius; member in MorphologyBench
41 fRadius = rad; in MorphologyBench()
66 r.offset(fRadius, fRadius); in onDraw()
68 if (fRadius > 0) { in onDraw()
72 mf = new SkDilateImageFilter(SkScalarFloorToInt(fRadius), in onDraw()
73 SkScalarFloorToInt(fRadius)); in onDraw()
76 mf = new SkErodeImageFilter(SkScalarFloorToInt(fRadius), in onDraw()
77 SkScalarFloorToInt(fRadius)); in onDraw()
DBlurRectBench.cpp22 SkScalar fRadius; member in BlurRectBench
27 fRadius = rad; in BlurRectBench()
36 return fRadius; in radius()
49 SkScalar pad = fRadius*3/2 + SK_Scalar1; in onDraw()
54 if (fRadius > SkIntToScalar(25)) { in onDraw()
56 } else if (fRadius > SkIntToScalar(5)) { in onDraw()
DBlurBench.cpp29 SkScalar fRadius; member in BlurBench
36 fRadius = rad; in BlurBench()
63 r.offset(fRadius, fRadius); in onDraw()
65 if (fRadius > 0) { in onDraw()
66 SkMaskFilter* mf = SkBlurMaskFilter::Create(fRadius, fStyle, fFlags); in onDraw()
/external/skia/tests/
DGradientTest.cpp21 const SkScalar* fRadius; // 2 member
74 rec.fRadius[0], in radial_gradproc()
83 REPORTER_ASSERT(reporter, info.fRadius[0] == rec.fRadius[0]); in radial_gradproc()
88 rec.fRadius[0], in radial2_gradproc()
90 rec.fRadius[1], in radial2_gradproc()
99 REPORTER_ASSERT(reporter, !memcmp(info.fRadius, rec.fRadius, 2 * sizeof(SkScalar))); in radial2_gradproc()
116 rec.fRadius[0], in conical_gradproc()
118 rec.fRadius[1], in conical_gradproc()
127 REPORTER_ASSERT(reporter, !memcmp(info.fRadius, rec.fRadius, 2 * sizeof(SkScalar))); in conical_gradproc()
176 rec.fRadius = gRad; in TestGradientShaders()
/external/skia/src/effects/
DSkBlurMaskFilter.cpp34 SkScalar fRadius; member in SkBlurMaskFilterImpl
61 : fRadius(radius), fBlurStyle(style), fBlurFlags(flags) { in SkBlurMaskFilterImpl()
86 radius = fRadius; in filterMask()
88 radius = matrix.mapRadius(fRadius); in filterMask()
255 dst->set(src.fLeft - fRadius, src.fTop - fRadius, in computeFastBounds()
256 src.fRight + fRadius, src.fBottom + fRadius); in computeFastBounds()
261 fRadius = buffer.readScalar(); in SkBlurMaskFilterImpl()
264 SkASSERT(fRadius >= 0); in SkBlurMaskFilterImpl()
270 buffer.writeScalar(fRadius); in flatten()
284 info->fRadius = fRadius; in asABlur()
DSkCornerPathEffect.cpp15 SkCornerPathEffect::SkCornerPathEffect(SkScalar radius) : fRadius(radius) {} in SkCornerPathEffect()
35 if (0 == fRadius) { in filterPath()
70 bool drawSegment = ComputeStep(pts[0], pts[1], fRadius, &step); in filterPath()
129 buffer.writeScalar(fRadius); in flatten()
133 fRadius = buffer.readScalar(); in SkCornerPathEffect()
DSkMorphologyImageFilter.cpp25 fRadius.fWidth = buffer.readInt(); in SkMorphologyImageFilter()
26 fRadius.fHeight = buffer.readInt(); in SkMorphologyImageFilter()
30 : INHERITED(input), fRadius(SkISize::Make(radiusX, radiusY)) { in SkMorphologyImageFilter()
36 buffer.writeInt(fRadius.fWidth); in flatten()
37 buffer.writeInt(fRadius.fHeight); in flatten()
296 int width() const { return GrMorphologyEffect::WidthFromRadius(fRadius); } in width()
298 int fRadius; member in GrGLMorphologyEffect
311 fRadius = m.radius(); in GrGLMorphologyEffect()
346 code->appendf("\t\tvec2 coord = %s - %d.0 * %s;\n", coords, fRadius, imgInc); in emitCode()
371 GrAssert(kern.radius() == fRadius); in setData()
/external/skia/src/gpu/effects/
DGr1DKernelEffect.h36 , fRadius(radius) {} in Gr1DKernelEffect()
42 int radius() const { return fRadius; } in radius()
43 int width() const { return WidthFromRadius(fRadius); } in width()
49 int fRadius; variable
DGrConvolutionEffect.cpp36 int width() const { return Gr1DKernelEffect::WidthFromRadius(fRadius); } in width()
38 int fRadius; member in GrGLConvolutionEffect
52 fRadius = c.radius(); in GrGLConvolutionEffect()
76 code->appendf("\t\tvec2 coord = %s - %d.0 * %s;\n", coords, fRadius, imgInc); in emitCode()
96 GrAssert(conv.radius() == fRadius); in setData()
/external/skia/src/pdf/
DSkPDFShader.cpp237 SkScalar sr = info.fRadius[0]; in twoPointRadialCode()
239 bool posRoot = info.fRadius[1] > info.fRadius[0]; in twoPointRadialCode()
284 SkScalar r0 = info.fRadius[0]; in twoPointConicalCode()
285 SkScalar dr = info.fRadius[1] - info.fRadius[0]; in twoPointConicalCode()
568 transformPoints[1].fX += info->fRadius[0]; in SkPDFFunctionShader()
574 if (info->fRadius[0] == info->fRadius[1]) { in SkPDFFunctionShader()
578 SkScalar dr = info->fRadius[1] - info->fRadius[0]; in SkPDFFunctionShader()
633 twoPointRadialInfo.fRadius[0] = in SkPDFFunctionShader()
634 inverseMapperMatrix.mapRadius(info->fRadius[0]); in SkPDFFunctionShader()
635 twoPointRadialInfo.fRadius[1] = in SkPDFFunctionShader()
[all …]
/external/skia/legacy/src/core/
DSkStroke.cpp82 SkScalar fRadius; member in SkPathStroker
123 SkAssertResult(set_normal_unitnormal(fPrevPt, currPt, fRadius, normal, in preJoinTo()
135 fRadius, fInvMiterLimit, fPrevIsLine, currIsLine); in preJoinTo()
154 fFirstUnitNormal, fRadius, fInvMiterLimit, in finishContour()
182 : fRadius(radius) { in SkPathStroker()
230 if (!set_normal_unitnormal(pts[1], pts[2], fRadius, in quad_to()
248 SkAssertResult(set_normal_unitnormal(pts[0], pts[2], fRadius, in quad_to()
288 SkAssertResult(set_normal_unitnormal(cd, fRadius, normalCD, unitNormalCD)); in cubic_to()
289 bool degenerateBC = !set_normal_unitnormal(pts[1], pts[2], fRadius, in cubic_to()
315 SkAssertResult(normalB.setLength(fRadius)); in cubic_to()
[all …]
/external/skia/src/core/
DSkStroke.cpp81 SkScalar fRadius; member in SkPathStroker
122 SkAssertResult(set_normal_unitnormal(fPrevPt, currPt, fRadius, normal, in preJoinTo()
134 fRadius, fInvMiterLimit, fPrevIsLine, currIsLine); in preJoinTo()
153 fFirstUnitNormal, fRadius, fInvMiterLimit, in finishContour()
184 : fRadius(radius) { in SkPathStroker()
241 if (!set_normal_unitnormal(pts[1], pts[2], fRadius, in quad_to()
262 SkAssertResult(set_normal_unitnormal(pts[0], pts[2], fRadius, in quad_to()
268 SkAssertResult(normalB.setLength(SkScalarDiv(fRadius, in quad_to()
309 SkAssertResult(set_normal_unitnormal(cd, fRadius, normalCD, unitNormalCD)); in cubic_to()
310 bool degenerateBC = !set_normal_unitnormal(pts[1], pts[2], fRadius, in cubic_to()
[all …]
/external/skia/legacy/include/effects/
DSkMorphologyImageFilter.h21 SkISize radius() const { return fRadius; } in radius()
24 SkISize fRadius;
DSkCornerPathEffect.h46 SkScalar fRadius;
/external/skia/include/effects/
DSkMorphologyImageFilter.h26 SkISize radius() const { return fRadius; } in radius()
29 SkISize fRadius;
DSkCornerPathEffect.h36 SkScalar fRadius;
/external/skia/src/effects/gradients/
DSkTwoPointConicalGradient.cpp71 fRadius = SkScalarToFloat(rad0); in init()
72 fDRadius = SkScalarToFloat(rad1) - fRadius; in init()
75 fRadius2 = sqr(fRadius); in init()
76 fRDR = fRadius * fDRadius; in init()
105 float r = lerp(fRadius, fDRadius, t); in nextT()
108 r = lerp(fRadius, fDRadius, t); in nextT()
289 info->fRadius[0] = fRadius1; in asAGradient()
290 info->fRadius[1] = fRadius2; in asAGradient()
DSkRadialGradient.cpp160 fRadius(radius) in SkRadialGradient()
245 info->fRadius[0] = fRadius; in asAGradient()
253 fRadius(buffer.readScalar()) { in SkRadialGradient()
259 buffer.writeScalar(fRadius); in flatten()
608 str->appendScalar(fRadius); in toString()
DSkRadialGradient.h39 const SkScalar fRadius; variable
/external/skia/gm/
Dblurrect.cpp141 SkScalar fRadius; member in BlurRectCompareGM
147 , fRadius(radius) in BlurRectCompareGM()
152 SkScalar radius() const { return fRadius; } in radius()
/external/skia/legacy/include/core/
DSkMaskFilter.h69 SkScalar fRadius; member
/external/skia/include/core/
DSkMaskFilter.h70 SkScalar fRadius; member

12