Home
last modified time | relevance | path

Searched refs:cropRect (Results 1 – 25 of 49) sorted by relevance

12

/external/skia/gm/
Dimagefilterscropped.cpp120 SkImageFilter::CropRect cropRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 44, 44)), in onDraw() local
131 sk_sp<SkImageFilter> erodeX(SkErodeImageFilter::Make(8, 0, nullptr, &cropRect)); in onDraw()
132 sk_sp<SkImageFilter> erodeY(SkErodeImageFilter::Make(0, 8, nullptr, &cropRect)); in onDraw()
136 SkColorFilterImageFilter::Make(cf, nullptr, &cropRect), in onDraw()
137 SkBlurImageFilter::Make(0.0f, 0.0f, nullptr, &cropRect), in onDraw()
138 SkBlurImageFilter::Make(1.0f, 1.0f, nullptr, &cropRect), in onDraw()
139 SkBlurImageFilter::Make(8.0f, 0.0f, nullptr, &cropRect), in onDraw()
140 SkBlurImageFilter::Make(0.0f, 8.0f, nullptr, &cropRect), in onDraw()
141 SkBlurImageFilter::Make(8.0f, 8.0f, nullptr, &cropRect), in onDraw()
142 SkErodeImageFilter::Make(1, 1, nullptr, &cropRect), in onDraw()
[all …]
Ddisplacement.cpp103 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(30, 30, 40, 40)); in onDraw() local
107 0.0f, displ, nullptr, &cropRect)); in onDraw()
112 16.0f, displ, nullptr, &cropRect)); in onDraw()
117 32.0f, displ, nullptr, &cropRect)); in onDraw()
122 48.0f, displ, nullptr, &cropRect)); in onDraw()
127 64.0f, displ, nullptr, &cropRect)); in onDraw()
133 40.0f, displ, nullptr, &cropRect)); in onDraw()
138 40.0f, displ, nullptr, &cropRect)); in onDraw()
143 40.0f, displ, nullptr, &cropRect)); in onDraw()
148 40.0f, displ, nullptr, &cropRect)); in onDraw()
[all …]
Doffsetimagefilter.cpp51 SkIRect cropRect = SkIRect::MakeXYWH(i * 12, in onDraw() local
55 SkImageFilter::CropRect rect(SkRect::Make(cropRect)); in onDraw()
60 DrawClippedImage(canvas, image.get(), paint, 1, cropRect); in onDraw()
64 SkIRect cropRect = SkIRect::MakeXYWH(0, 0, 100, 100); in onDraw() local
65 SkImageFilter::CropRect rect(SkRect::Make(cropRect)); in onDraw()
67 DrawClippedImage(canvas, fBitmap.get(), paint, 2, cropRect); in onDraw()
71 SkScalar scale, const SkIRect& cropRect) { in DrawClippedImage() argument
82 SkMatrix::MakeScale(scale, scale).mapRect(&cropRectFloat, SkRect::Make(cropRect)); in DrawClippedImage()
Dimagealphathreshold.cpp29 static SkPaint create_filter_paint(SkImageFilter::CropRect* cropRect = nullptr) { in create_filter_paint() argument
38 …aint.setImageFilter(SkAlphaThresholdFilter::Make(region, 0.2f, 0.7f, std::move(offset), cropRect)); in create_filter_paint()
71 SkImageFilter::CropRect cropRect(r); in onDraw() local
73 SkPaint paint = create_filter_paint(fUseCropRect ? &cropRect : nullptr); in onDraw()
/external/skia/include/effects/
DSkMorphologyImageFilter.h41 const CropRect* cropRect);
61 const CropRect* cropRect = nullptr);
72 const CropRect* cropRect) in SkDilateImageFilter() argument
73 : INHERITED(radiusX, radiusY, input, cropRect) {} in SkDilateImageFilter()
83 const CropRect* cropRect = nullptr);
93 sk_sp<SkImageFilter> input, const CropRect* cropRect) in SkErodeImageFilter() argument
94 : INHERITED(radiusX, radiusY, input, cropRect) {} in SkErodeImageFilter()
DSkLightingImageFilter.h22 sk_sp<SkImageFilter> input, const CropRect* cropRect = nullptr);
25 sk_sp<SkImageFilter> input, const CropRect* cropRect = nullptr);
29 sk_sp<SkImageFilter> input, const CropRect* cropRect = nullptr);
32 SkScalar shininess, sk_sp<SkImageFilter> input, const CropRect* cropRect = nullptr);
35 SkScalar shininess, sk_sp<SkImageFilter> input, const CropRect* cropRect = nullptr);
39 SkScalar shininess, sk_sp<SkImageFilter> input, const CropRect* cropRect = nullptr);
48 const CropRect* cropRect);
DSkMergeImageFilter.h16 const CropRect* cropRect = nullptr);
19 const CropRect* cropRect = nullptr) {
24 return Make(array, 2, cropRect);
38 SkMergeImageFilter(sk_sp<SkImageFilter>* const filters, int count, const CropRect* cropRect);
DSkPictureImageFilter.h25 static sk_sp<SkImageFilter> Make(sk_sp<SkPicture> picture, const SkRect& cropRect);
35 const SkRect& cropRect,
60 SkPictureImageFilter(sk_sp<SkPicture> picture, const SkRect& cropRect,
DSkMagnifierImageFilter.h19 const CropRect* cropRect = nullptr);
28 const CropRect* cropRect);
DSkColorFilterImageFilter.h19 const CropRect* cropRect = NULL);
36 const CropRect* cropRect);
DSkDropShadowImageFilter.h29 const CropRect* cropRect = nullptr);
45 const CropRect* cropRect);
DSkDisplacementMapEffect.h30 const CropRect* cropRect = nullptr);
50 const CropRect* cropRect);
/external/skia/src/effects/
DSkPictureImageFilter.cpp24 const SkRect& cropRect) { in Make() argument
26 cropRect, in Make()
33 const SkRect& cropRect, in MakeForLocalSpace() argument
36 cropRect, in MakeForLocalSpace()
50 SkPictureImageFilter::SkPictureImageFilter(sk_sp<SkPicture> picture, const SkRect& cropRect, in SkPictureImageFilter() argument
56 , fCropRect(cropRect) in SkPictureImageFilter()
64 SkRect cropRect; in CreateProc() local
73 buffer.readRect(&cropRect); in CreateProc()
79 return MakeForLocalSpace(picture, cropRect, filterQuality); in CreateProc()
81 return Make(picture, cropRect); in CreateProc()
DSkPaintImageFilter.cpp17 const CropRect* cropRect) { in Make() argument
18 return sk_sp<SkImageFilter>(new SkPaintImageFilter(paint, cropRect)); in Make()
21 SkPaintImageFilter::SkPaintImageFilter(const SkPaint& paint, const CropRect* cropRect) in SkPaintImageFilter() argument
22 : INHERITED(nullptr, 0, cropRect) in SkPaintImageFilter()
30 return SkPaintImageFilter::Make(paint, &common.cropRect()); in CreateProc()
DSkColorFilterImageFilter.cpp20 const CropRect* cropRect) { in Make() argument
34 cropRect)); in Make()
40 cropRect)); in Make()
45 const CropRect* cropRect) in SkColorFilterImageFilter() argument
46 : INHERITED(&input, 1, cropRect) in SkColorFilterImageFilter()
53 return Make(std::move(cf), common.getInput(0), &common.cropRect()); in CreateProc()
DSkMergeImageFilter.cpp19 const CropRect* cropRect) { in Make() argument
20 return sk_sp<SkImageFilter>(new SkMergeImageFilter(filters, count, cropRect)); in Make()
26 const CropRect* cropRect) in SkMergeImageFilter() argument
27 : INHERITED(filters, count, cropRect) { in SkMergeImageFilter()
133 return Make(common.inputs(), count, &common.cropRect()); in CreateProc()
DSkOffsetImageFilter.cpp20 const CropRect* cropRect) { in Make() argument
25 return sk_sp<SkImageFilter>(new SkOffsetImageFilter(dx, dy, std::move(input), cropRect)); in Make()
108 return Make(offset.x(), offset.y(), common.getInput(0), &common.cropRect()); in CreateProc()
118 const CropRect* cropRect) in SkOffsetImageFilter() argument
119 : INHERITED(&input, 1, cropRect) { in SkOffsetImageFilter()
DSkXfermodeImageFilter.cpp33 const CropRect* cropRect);
75 const SkImageFilter::CropRect* cropRect) { in Make() argument
77 return sk_sp<SkImageFilter>(new SkXfermodeImageFilter_Base(mode, inputs, cropRect)); in Make()
82 const CropRect* cropRect) in SkXfermodeImageFilter_Base() argument
83 : INHERITED(inputs, 2, cropRect) in SkXfermodeImageFilter_Base()
100 common.getInput(1), &common.cropRect()); in CreateProc()
332 common.getInput(1), &common.cropRect()); in LegacyArithmeticCreateProc()
DSkAlphaThresholdFilter.cpp29 const CropRect* cropRect = nullptr);
68 const SkImageFilter::CropRect* cropRect) { in Make() argument
77 cropRect)); in Make()
87 &common.cropRect()); in CreateProc()
94 const CropRect* cropRect) in SkAlphaThresholdFilterImpl() argument
95 : INHERITED(&input, 1, cropRect) in SkAlphaThresholdFilterImpl()
DSkDropShadowImageFilter.cpp22 const CropRect* cropRect) { in Make() argument
26 cropRect)); in Make()
32 const CropRect* cropRect) in SkDropShadowImageFilter() argument
33 : INHERITED(&input, 1, cropRect) in SkDropShadowImageFilter()
50 return Make(dx, dy, sigmaX, sigmaY, color, shadowMode, common.getInput(0), &common.cropRect()); in CreateProc()
DSkLightingImageFilter.cpp405 const CropRect* cropRect) in SkLightingImageFilterInternal() argument
406 : INHERITED(std::move(light), surfaceScale, std::move(input), cropRect) { in SkLightingImageFilterInternal()
537 sk_sp<SkImageFilter> input, const CropRect* cropRect);
1135 sk_sp<SkImageFilter> input, const CropRect* cropRect) in SkLightingImageFilter() argument
1136 : INHERITED(&input, 1, cropRect) in SkLightingImageFilter()
1148 const CropRect* cropRect) { in MakeDistantLitDiffuse() argument
1151 std::move(input), cropRect); in MakeDistantLitDiffuse()
1159 const CropRect* cropRect) { in MakePointLitDiffuse() argument
1162 std::move(input), cropRect); in MakePointLitDiffuse()
1173 const CropRect* cropRect) { in MakeSpotLitDiffuse() argument
[all …]
/external/skia/fuzz/
DFuzzCanvas.cpp613 inline void Fuzz::next(SkImageFilter::CropRect* cropRect) { in next() argument
618 *cropRect = SkImageFilter::CropRect(rect, flags); in next()
633 SkImageFilter::CropRect cropRect; in make_fuzz_lighting_imagefilter() local
637 fuzz->next(&cropRect); in make_fuzz_lighting_imagefilter()
645 useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter()
651 useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter()
657 std::move(input), useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter()
663 useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter()
669 useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter()
676 std::move(input), useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter()
[all …]
/external/skia/tests/
DImageFilterTest.cpp147 FilterList(sk_sp<SkImageFilter> input, const SkImageFilter::CropRect* cropRect = nullptr) { in FilterList() argument
156 SkColorFilterImageFilter::Make(std::move(cf), input, cropRect)); in FilterList()
167 std::move(gradientSource), input, cropRect)); in FilterList()
173 cropRect)); in FilterList()
177 input, cropRect)); in FilterList()
180 input, cropRect)); in FilterList()
183 input, cropRect)); in FilterList()
197 input, cropRect)); in FilterList()
200 this->addFilter("merge", SkMergeImageFilter::Make(input, input, cropRect)); in FilterList()
215 std::move(paintFilterLeft), std::move(paintFilterRight), cropRect)); in FilterList()
[all …]
/external/skia/src/core/
DSkBlurImageFilter.cpp30 const CropRect* cropRect,
61 const SkImageFilter::CropRect* cropRect, in SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY()
63 if (0 == sigmaX && 0 == sigmaY && !cropRect) { in SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY()
67 new SkBlurImageFilterImpl(sigmaX, sigmaY, input, cropRect, tileMode)); in SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY()
88 const CropRect* cropRect, in SkBlurImageFilterImpl() argument
90 : INHERITED(&input, 1, cropRect), fSigma{sigmaX, sigmaY}, fTileMode(tileMode) {} in SkBlurImageFilterImpl()
104 sigmaX, sigmaY, common.getInput(0), &common.cropRect(), tileMode); in CreateProc()
/external/skia/bench/
DBlurImageFilterBench.cpp98 const SkImageFilter::CropRect cropRect(bmpRect.makeInset(10.f, 10.f)); in onDraw() local
102 ? SkOffsetImageFilter::Make(0, 0, nullptr, &cropRect) in onDraw()
106 fIsExpanded ? &cropRectLarge : fIsCropped ? &cropRect : nullptr; in onDraw()

12