Home
last modified time | relevance | path

Searched refs:blur (Results 1 – 25 of 184) sorted by relevance

12345678

/third_party/flutter/engine/flutter/lib/web_ui/lib/src/engine/
Dshadow.dart117 /// Computed from shadow elevation offset + spread, blur
120 // by summing the computed shadow offset and the blur for the given
121 // elevation. We are assuming that a blur of '1' corresponds to 1 pixel,
161 blur: 1.0,
169 blur: 0.5,
177 blur: 2.5,
185 blur: 4.0,
193 blur: 1.5,
201 blur: 4.0,
209 blur: 2.5,
[all …]
/third_party/flutter/skia/bench/
DImageFilterDAGBench.cpp30 sk_sp<SkImageFilter> blur(SkImageFilters::Blur(20.0f, 20.0f, nullptr)); in onDraw() local
33 inputs[i] = blur; in onDraw()
80 sk_sp<SkImageFilter> blur(SkImageFilters::Blur(20.0f, 20.0f, nullptr)); in onDraw() local
83 inputs[i] = blur; in onDraw()
115 sk_sp<SkImageFilter> blur(SkImageFilters::Blur(4.0f, 4.0f, nullptr)); in onDraw() local
120 scale, blur, blur)); in onDraw()
144 auto blur = SkImageFilters::Blur(20.0f, 20.0f, nullptr); in onDraw() local
145 auto offset1 = SkImageFilters::Offset(100.0f, 100.0f, blur); in onDraw()
146 auto offset2 = SkImageFilters::Offset(-100.0f, -100.0f, blur); in onDraw()
/third_party/skia/bench/
DImageFilterDAGBench.cpp32 sk_sp<SkImageFilter> blur(SkImageFilters::Blur(20.0f, 20.0f, nullptr)); in onDraw() local
35 inputs[i] = blur; in onDraw()
84 sk_sp<SkImageFilter> blur(SkImageFilters::Blur(20.0f, 20.0f, nullptr)); in onDraw() local
87 inputs[i] = blur; in onDraw()
119 sk_sp<SkImageFilter> blur(SkImageFilters::Blur(4.0f, 4.0f, nullptr)); in onDraw() local
124 scale, blur, blur)); in onDraw()
148 auto blur = SkImageFilters::Blur(20.0f, 20.0f, nullptr); in onDraw() local
149 auto offset1 = SkImageFilters::Offset(100.0f, 100.0f, blur); in onDraw()
150 auto offset2 = SkImageFilters::Offset(-100.0f, -100.0f, blur); in onDraw()
/third_party/skia/docs/examples/
Dskpaint_blur_mask_filter_2.cpp21 SkPaint blur(paint); in draw() local
22 blur.setColor(blurColor); in draw()
23 blur.setAlpha(blurAlpha); in draw()
24 blur.setMaskFilter(SkMaskFilter::MakeBlur(kNormal_SkBlurStyle, blurSigma, false)); in draw()
29 canvas->drawString(text, x + xDrop, y + yDrop, font, blur); in draw()
Dtext_shadow.cpp16 SkPaint blur(paint); in draw() local
17 blur.setAlpha(blurAlpha); in draw()
18 blur.setMaskFilter(SkMaskFilter::MakeBlur(kNormal_SkBlurStyle, sigma, 0)); in draw()
20 canvas->drawTextBlob(blob.get(), x + xDrop, y + yDrop, blur); in draw()
DCanvas_saveLayer.cpp9 SkPaint paint, blur; in draw() local
10 blur.setImageFilter(SkImageFilters::Blur(3, 3, nullptr)); in draw()
11 canvas->saveLayer(nullptr, &blur); in draw()
DCanvas_saveLayer_2.cpp9 SkPaint paint, blur; in draw() local
10 blur.setImageFilter(SkImageFilters::Blur(3, 3, nullptr)); in draw()
11 canvas->saveLayer(SkRect::MakeWH(90, 90), &blur); in draw()
/third_party/flutter/flutter/dev/benchmarks/macrobenchmarks/lib/src/
Dcubic_bezier.dart27 const Bezier(this.color, this.scale, {this.blur = 0.0, this.delay = 0.0});
31 final double blur;
82 AnimatedBezier(color, scale, blur: blur, delay: delay),
96 const AnimatedBezier(this.color, this.scale, {this.blur = 0.0, this.delay});
100 final double blur;
340 curve.value * widget.blur, _getLogoPath(), isPlaying),
346 BezierPainter(this.color, this.blur, this.path, this.isPlaying);
349 final double blur;
371 if (blur > 0) {
372 final MaskFilter blur = MaskFilter.blur(BlurStyle.normal, this.blur);
[all …]
/third_party/flutter/skia/docs/examples/
DCanvas_saveLayer.cpp9 SkPaint paint, blur; in draw() local
10 blur.setImageFilter(SkImageFilters::Blur(3, 3, nullptr)); in draw()
11 canvas->saveLayer(nullptr, &blur); in draw()
DCanvas_saveLayer_2.cpp9 SkPaint paint, blur; in draw() local
10 blur.setImageFilter(SkImageFilters::Blur(3, 3, nullptr)); in draw()
11 canvas->saveLayer(SkRect::MakeWH(90, 90), &blur); in draw()
/third_party/flutter/skia/src/core/
DSkBlurMask.cpp39 const uint8_t blur[], int blurRB, in merge_src_with_blur() argument
46 *dst = SkToU8(SkAlphaMul(*blur, SkAlpha255To256(*rowSrc))); in merge_src_with_blur()
49 ++blur; in merge_src_with_blur()
53 blur += blurRB; in merge_src_with_blur()
133 const SkIPoint border = blurFilter.blur(src, dst); in BoxBlur()
222 SkMask blur = *dst; in BoxBlur() local
223 SkAutoMaskFreeImage autoFreeBlurMask(blur.fImage); in BoxBlur()
231 auto blurStart = &blur.fImage[border.x() + border.y() * blur.fRowBytes]; in BoxBlur()
237 blurStart, blur.fRowBytes, in BoxBlur()
244 blurStart, blur.fRowBytes, in BoxBlur()
[all …]
DSkMaskBlurFilter.cpp109 template <typename AlphaIter> void blur(const AlphaIter srcBegin, const AlphaIter srcEnd, in blur() function in __anon99a3f2f80111::PlanGauss::Scan
548 BlurX blur, in blur_row() argument
558 blur(load(src, 8, nullptr), g0, g1, g2, g3, g4, &d0, &d8); in blur_row()
573 blur(load(src, srcTail, nullptr), g0, g1, g2, g3, g4, &d0, &d8); in blur_row()
591 static void blur_x_rect(BlurX blur, in blur_x_rect() argument
604 blur_row(blur, g0, g1, g2, g3, g4, src, srcW, dst, dstW); in blur_x_rect()
765 BlurY blur, int radius, int width, in blur_column() argument
781 auto b = blur(s, in blur_column()
805 BlurY blur, int radius, uint16_t *gauss, in blur_y_rect() argument
817 blur_column(toA8, blur, radius, 8, in blur_y_rect()
[all …]
/third_party/skia/src/core/
DSkBlurMask.cpp40 const uint8_t blur[], int blurRB, in merge_src_with_blur() argument
47 *dst = SkToU8(SkAlphaMul(*blur, SkAlpha255To256(*rowSrc))); in merge_src_with_blur()
50 ++blur; in merge_src_with_blur()
54 blur += blurRB; in merge_src_with_blur()
134 const SkIPoint border = blurFilter.blur(src, dst); in BoxBlur()
223 SkMask blur = *dst; in BoxBlur() local
224 SkAutoMaskFreeImage autoFreeBlurMask(blur.fImage); in BoxBlur()
232 auto blurStart = &blur.fImage[border.x() + border.y() * blur.fRowBytes]; in BoxBlur()
238 blurStart, blur.fRowBytes, in BoxBlur()
245 blurStart, blur.fRowBytes, in BoxBlur()
[all …]
DSkMaskBlurFilter.cpp110 template <typename AlphaIter> void blur(const AlphaIter srcBegin, const AlphaIter srcEnd, in blur() function in __anon1fb5b7230111::PlanGauss::Scan
551 BlurX blur, in blur_row() argument
561 blur(load(src, 8, nullptr), g0, g1, g2, g3, g4, &d0, &d8); in blur_row()
576 blur(load(src, srcTail, nullptr), g0, g1, g2, g3, g4, &d0, &d8); in blur_row()
594 static void blur_x_rect(BlurX blur, in blur_x_rect() argument
607 blur_row(blur, g0, g1, g2, g3, g4, src, srcW, dst, dstW); in blur_x_rect()
768 BlurY blur, int radius, int width, in blur_column() argument
784 auto b = blur(s, in blur_column()
808 BlurY blur, int radius, uint16_t *gauss, in blur_y_rect() argument
820 blur_column(toA8, blur, radius, 8, in blur_y_rect()
[all …]
/third_party/skia/gm/
Dimagefiltersgraph.cpp50 sk_sp<SkImageFilter> blur(SkImageFilters::Blur(4.0f, 4.0f, std::move(bitmapSource))); in onDraw() local
51 sk_sp<SkImageFilter> erode(SkImageFilters::Erode(4, 4, blur)); in onDraw()
54 sk_sp<SkImageFilter> merge(SkImageFilters::Merge(blur, color)); in onDraw()
97 sk_sp<SkImageFilter> blur(SkImageFilters::Blur(10, 10, nullptr)); in onDraw() local
102 SkImageFilters::Blend(SkBlendMode::kSrcIn, std::move(blur), nullptr, &cropRect)); in onDraw()
Dcrbug_1174354.cpp39 auto blur = SkImageFilters::Blur(sigma, sigma, SkTileMode::kClamp, nullptr, rect); in draw_bg_blur() local
41 rec.fBackdrop = blur.get(); in draw_bg_blur()
Dbackdrop.cpp60 auto blur = SkImageFilters::Blur(sigma, sigma, SkTileMode::kClamp, nullptr); in do_draw() local
61 auto rec = SkCanvasPriv::ScaledBackdropLayer(drawrptr, nullptr, blur.get(), scaleFactor, 0); in do_draw()
/third_party/flutter/skia/gm/
Dimagefiltersgraph.cpp51 sk_sp<SkImageFilter> blur(SkImageFilters::Blur(4.0f, 4.0f, std::move(bitmapSource))); in onDraw() local
52 sk_sp<SkImageFilter> erode(SkImageFilters::Erode(4, 4, blur)); in onDraw()
55 sk_sp<SkImageFilter> merge(SkImageFilters::Merge(blur, color)); in onDraw()
98 sk_sp<SkImageFilter> blur(SkImageFilters::Blur(10, 10, nullptr)); in onDraw() local
103 SkImageFilters::Xfermode(SkBlendMode::kSrcIn, std::move(blur), nullptr, &cropRect)); in onDraw()
Dbackdrop.cpp57 auto blur = SkImageFilters::Blur(sigma, sigma, nullptr); in do_draw() local
58 auto rec = SkCanvas::SaveLayerRec(drawrptr, nullptr, blur.get(), 0); in do_draw()
/third_party/flutter/engine/flutter/lib/web_ui/lib/src/engine/surface/
Dbackdrop_filter.dart86 // CSS uses pixel radius for blur. Flutter & SVG use sigma parameters. For
87 // Gaussian blur with standard deviation (normal distribution),
88 // the blur will fall within 2 * sigma pixels.
90 'blur(${math.max(filter.sigmaX, filter.sigmaY) * 2}px)');
/third_party/skia/modules/skottie/src/text/
DTextAnimator.h41 Vec2Value blur = { 0, 0 }, member
57 SkV2 blur = { 0, 0 }, member
DTextAnimator.cpp127 modulated_props.blur += fTextProps.blur * amount; in modulateProps()
200 fHasBlur = acontainer->bind(*abuilder, jprops["bl"], fTextProps.blur ); in TextAnimator()
/third_party/flutter/skia/modules/skottie/src/effects/
DGaussianBlurEffect.cpp22 explicit GaussianBlurEffectAdapter(sk_sp<sksg::BlurImageFilter> blur) in GaussianBlurEffectAdapter() argument
23 : fBlur(std::move(blur)) { in GaussianBlurEffectAdapter()
/third_party/skia/tests/
DRepeatedClippedBlurTest.cpp93 sk_sp<SkImageFilter> blur = SkImageFilters::Blur(20, 20, nullptr); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
97 sk_sp<SkImage> filteredImg = smImg->makeWithFilter(dContext, blur.get(), subset, clip, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/third_party/flutter/skia/tests/
DRepeatedClippedBlurTest.cpp89 sk_sp<SkImageFilter> blur = SkImageFilters::Blur(20, 20, nullptr); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
93 sk_sp<SkImage> filteredImg = smImg->makeWithFilter(context, blur.get(), subset, clip, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()

12345678