Home
last modified time | relevance | path

Searched refs:innerThreshold (Results 1 – 8 of 8) sorted by relevance

/external/skqp/src/effects/imagefilters/
DSkAlphaThresholdFilter.cpp30 SkAlphaThresholdFilterImpl(const SkRegion& region, SkScalar innerThreshold,
68 SkScalar innerThreshold, in Make() argument
72 innerThreshold = pin_0_1(innerThreshold); in Make()
74 if (!SkScalarIsFinite(innerThreshold) || !SkScalarIsFinite(outerThreshold)) { in Make()
77 return sk_sp<SkImageFilter>(new SkAlphaThresholdFilterImpl(region, innerThreshold, in Make()
94 SkScalar innerThreshold, in SkAlphaThresholdFilterImpl() argument
100 , fInnerThreshold(innerThreshold) in SkAlphaThresholdFilterImpl()
234 U8CPU innerThreshold = (U8CPU)(fInnerThreshold * 0xFF); in onFilterImage() local
248 if (SkColorGetA(source) < innerThreshold) { in onFilterImage()
253 float scale = (float)innerThreshold / alpha; in onFilterImage()
[all …]
/external/skia/src/effects/imagefilters/
DSkAlphaThresholdFilter.cpp33 SkAlphaThresholdFilterImpl(const SkRegion& region, SkScalar innerThreshold,
71 SkScalar innerThreshold, in Make() argument
75 innerThreshold = pin_0_1(innerThreshold); in Make()
77 if (!SkScalarIsFinite(innerThreshold) || !SkScalarIsFinite(outerThreshold)) { in Make()
80 return sk_sp<SkImageFilter>(new SkAlphaThresholdFilterImpl(region, innerThreshold, in Make()
97 SkScalar innerThreshold, in SkAlphaThresholdFilterImpl() argument
103 , fInnerThreshold(innerThreshold) in SkAlphaThresholdFilterImpl()
237 U8CPU innerThreshold = (U8CPU)(fInnerThreshold * 0xFF); in onFilterImage() local
251 if (SkColorGetA(source) < innerThreshold) { in onFilterImage()
256 float scale = (float)innerThreshold / alpha; in onFilterImage()
[all …]
/external/skia/src/gpu/effects/
DGrAlphaThresholdFragmentProcessor.h19 float innerThreshold() const { return fInnerThreshold; } in innerThreshold() function
23 float innerThreshold, in Make() argument
27 mask, innerThreshold, outerThreshold, bounds)); in Make()
34 GrAlphaThresholdFragmentProcessor(sk_sp<GrTextureProxy> mask, float innerThreshold, in GrAlphaThresholdFragmentProcessor() argument
38 , fInnerThreshold(innerThreshold) in GrAlphaThresholdFragmentProcessor()
DGrAlphaThresholdFragmentProcessor.fp9 in uniform half innerThreshold;
22 float innerThreshold,
26 mask, innerThreshold, outerThreshold, bounds));
55 } else if (color.a < innerThreshold) {
56 half scale = innerThreshold / max(0.001, color.a);
58 color.a = innerThreshold;
DGrAlphaThresholdFragmentProcessor.cpp36 auto innerThreshold = _outer.innerThreshold(); in emitCode() local
37 (void)innerThreshold; in emitCode()
69 pdman.set1f(fInnerThresholdVar, (_outer.innerThreshold())); in onSetData()
/external/skqp/src/gpu/effects/
DGrAlphaThresholdFragmentProcessor.h19 float innerThreshold() const { return fInnerThreshold; } in innerThreshold() function
23 float innerThreshold, in Make() argument
27 mask, innerThreshold, outerThreshold, bounds)); in Make()
34 GrAlphaThresholdFragmentProcessor(sk_sp<GrTextureProxy> mask, float innerThreshold, in GrAlphaThresholdFragmentProcessor() argument
38 , fInnerThreshold(innerThreshold) in GrAlphaThresholdFragmentProcessor()
DGrAlphaThresholdFragmentProcessor.fp9 in uniform half innerThreshold;
22 float innerThreshold,
26 mask, innerThreshold, outerThreshold, bounds));
55 } else if (color.a < innerThreshold) {
56 half scale = innerThreshold / max(0.001, color.a);
58 color.a = innerThreshold;
DGrAlphaThresholdFragmentProcessor.cpp36 auto innerThreshold = _outer.innerThreshold(); in emitCode() local
37 (void)innerThreshold; in emitCode()
69 pdman.set1f(fInnerThresholdVar, (_outer.innerThreshold())); in onSetData()