Home
last modified time | relevance | path

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

12345

/third_party/flutter/skia/src/effects/imagefilters/
DSkImageFilters.cpp43 static SkImageFilter::CropRect make_crop_rect(const SkIRect* cropRect) { in make_crop_rect() argument
44 return cropRect ? SkImageFilter::CropRect(SkRect::Make(*cropRect)) in make_crop_rect()
73 const SkIRect* cropRect) { in AlphaThreshold() argument
74 SkImageFilter::CropRect r = make_crop_rect(cropRect); in AlphaThreshold()
80 sk_sp<SkImageFilter> background, sk_sp<SkImageFilter> foreground, const SkIRect* cropRect) { in Arithmetic() argument
81 SkImageFilter::CropRect r = make_crop_rect(cropRect); in Arithmetic()
88 const SkIRect* cropRect) { in Blur() argument
89 SkImageFilter::CropRect r = make_crop_rect(cropRect); in Blur()
94 sk_sp<SkColorFilter> cf, sk_sp<SkImageFilter> input, const SkIRect* cropRect) { in ColorFilter() argument
95 SkImageFilter::CropRect r = make_crop_rect(cropRect); in ColorFilter()
[all …]
DSkPictureImageFilter.cpp25 SkPictureImageFilterImpl(sk_sp<SkPicture> picture, const SkRect& cropRect) in SkPictureImageFilterImpl() argument
28 , fCropRect(cropRect) {} in SkPictureImageFilterImpl()
53 SkRect cropRect = picture ? picture->cullRect() : SkRect::MakeEmpty(); in Make() local
54 return Make(std::move(picture), cropRect); in Make()
57 sk_sp<SkImageFilter> SkPictureImageFilter::Make(sk_sp<SkPicture> picture, const SkRect& cropRect) { in Make() argument
58 return sk_sp<SkImageFilter>(new SkPictureImageFilterImpl(std::move(picture), cropRect)); in Make()
73 static sk_sp<SkImageFilter> make_localspace_filter(sk_sp<SkPicture> pic, const SkRect& cropRect, in make_localspace_filter() argument
75 SkISize dim = { SkScalarRoundToInt(cropRect.width()), SkScalarRoundToInt(cropRect.height()) }; in make_localspace_filter()
78 return SkImageSource::Make(img, cropRect, cropRect, fq); in make_localspace_filter()
83 SkRect cropRect; in CreateProc() local
[all …]
DSkColorFilterImageFilter.cpp23 const CropRect* cropRect) in SkColorFilterImageFilterImpl() argument
24 : INHERITED(&input, 1, cropRect) in SkColorFilterImageFilterImpl()
47 const SkImageFilter::CropRect* cropRect) { in Make() argument
59 std::move(newCF), sk_ref_sp(input->getInput(0)), cropRect)); in Make()
64 std::move(cf), std::move(input), cropRect)); in Make()
78 return SkColorFilterImageFilter::Make(std::move(cf), common.getInput(0), &common.cropRect()); in CreateProc()
/third_party/skia/include/effects/
DSkImageFilters.h72 const CropRect& cropRect = {});
87 const CropRect& cropRect = {});
98 const CropRect& cropRect = {});
109 const CropRect& cropRect = {});
122 sk_sp<SkImageFilter> input, const CropRect& cropRect = {});
125 const CropRect& cropRect = {}) {
126 return Blur(sigmaX, sigmaY, SkTileMode::kDecal, std::move(input), cropRect);
136 const CropRect& cropRect = {});
162 const CropRect& cropRect = {});
178 const CropRect& cropRect = {});
[all …]
/third_party/flutter/skia/include/effects/
DSkImageFilters.h45 const SkIRect* cropRect = nullptr);
60 const SkIRect* cropRect = nullptr);
73 sk_sp<SkImageFilter> input, const SkIRect* cropRect = nullptr);
76 const SkIRect* cropRect = nullptr) {
77 return Blur(sigmaX, sigmaY, SkTileMode::kDecal, std::move(input), cropRect);
87 const SkIRect* cropRect = nullptr);
113 const SkIRect* cropRect = nullptr);
129 const SkIRect* cropRect = nullptr);
145 const SkIRect* cropRect = nullptr);
178 const SkIRect* cropRect = nullptr);
[all …]
DSkLightingImageFilter.h21 sk_sp<SkImageFilter> input, const SkImageFilter::CropRect* cropRect = nullptr);
24 sk_sp<SkImageFilter> input, const SkImageFilter::CropRect* cropRect = nullptr);
28 sk_sp<SkImageFilter> input, const SkImageFilter::CropRect* cropRect = nullptr);
31 sk_sp<SkImageFilter> input, const SkImageFilter::CropRect* cropRect = nullptr);
34 sk_sp<SkImageFilter> input, const SkImageFilter::CropRect* cropRect = nullptr);
38 sk_sp<SkImageFilter> input, const SkImageFilter::CropRect* cropRect = nullptr);
/third_party/skia/gm/
Dimagemakewithfilter.cpp60 typedef sk_sp<SkImageFilter> (*FilterFactory)(sk_sp<SkImage> auxImage, const SkIRect* cropRect);
62 static sk_sp<SkImageFilter> color_filter_factory(sk_sp<SkImage> auxImage, const SkIRect* cropRect) { in color_filter_factory() argument
66 return SkImageFilters::ColorFilter(std::move(cf), nullptr, cropRect); in color_filter_factory()
69 static sk_sp<SkImageFilter> blur_filter_factory(sk_sp<SkImage> auxImage, const SkIRect* cropRect) { in blur_filter_factory() argument
70 return SkImageFilters::Blur(2.0f, 2.0f, nullptr, cropRect); in blur_filter_factory()
73 static sk_sp<SkImageFilter> drop_shadow_factory(sk_sp<SkImage> auxImage, const SkIRect* cropRect) { in drop_shadow_factory() argument
74 return SkImageFilters::DropShadow(10.0f, 5.0f, 3.0f, 3.0f, SK_ColorBLUE, nullptr, cropRect); in drop_shadow_factory()
77 static sk_sp<SkImageFilter> offset_factory(sk_sp<SkImage> auxImage, const SkIRect* cropRect) { in offset_factory() argument
78 return SkImageFilters::Offset(10.f, 5.f, nullptr, cropRect); in offset_factory()
81 static sk_sp<SkImageFilter> dilate_factory(sk_sp<SkImage> auxImage, const SkIRect* cropRect) { in dilate_factory() argument
[all …]
Dcrop_imagefilter.cpp65 SkRect* outputBounds, SkRect* cropRect, SkRect* contentBounds) { in get_example_rects() argument
69 *cropRect = make_overlap(*outputBounds, -0.15f, 0.15f); in get_example_rects()
70 SkASSERT(cropRect->intersects(*outputBounds) && in get_example_rects()
71 !cropRect->contains(*outputBounds) && in get_example_rects()
72 !outputBounds->contains(*cropRect)); in get_example_rects()
75 *cropRect = make_outset(*outputBounds, 0.15f, 0.15f); in get_example_rects()
76 SkASSERT(cropRect->contains(*outputBounds)); in get_example_rects()
79 *cropRect = make_inset(*outputBounds, 0.15f, 0.15f); in get_example_rects()
80 SkASSERT(outputBounds->contains(*cropRect)); in get_example_rects()
83 *cropRect = make_disjoint(*outputBounds, 0.15f, 0.0f); in get_example_rects()
[all …]
Dimagefilterscropped.cpp124 SkIRect cropRect = SkIRect::MakeXYWH(10, 10, 44, 44); in onDraw() local
131 sk_sp<SkImageFilter> erodeX(SkImageFilters::Erode(8, 0, nullptr, &cropRect)); in onDraw()
132 sk_sp<SkImageFilter> erodeY(SkImageFilters::Erode(0, 8, nullptr, &cropRect)); in onDraw()
136 SkImageFilters::ColorFilter(cf, nullptr, &cropRect), in onDraw()
137 SkImageFilters::Blur(0.0f, 0.0f, nullptr, &cropRect), in onDraw()
138 SkImageFilters::Blur(1.0f, 1.0f, nullptr, &cropRect), in onDraw()
139 SkImageFilters::Blur(8.0f, 0.0f, nullptr, &cropRect), in onDraw()
140 SkImageFilters::Blur(0.0f, 8.0f, nullptr, &cropRect), in onDraw()
141 SkImageFilters::Blur(8.0f, 8.0f, nullptr, &cropRect), in onDraw()
142 SkImageFilters::Erode(1, 1, nullptr, &cropRect), in onDraw()
[all …]
Ddisplacement.cpp99 SkIRect cropRect = SkIRect::MakeXYWH(30, 30, 40, 40); in onDraw() local
101 SkColorChannel::kR, SkColorChannel::kG, 0.0f, displ, nullptr, &cropRect)); in onDraw()
104 SkColorChannel::kB, SkColorChannel::kA, 16.0f, displ, nullptr, &cropRect)); in onDraw()
107 SkColorChannel::kR, SkColorChannel::kB, 32.0f, displ, nullptr, &cropRect)); in onDraw()
110 SkColorChannel::kG, SkColorChannel::kA, 48.0f, displ, nullptr, &cropRect)); in onDraw()
113 SkColorChannel::kR, SkColorChannel::kA, 64.0f, displ, nullptr, &cropRect)); in onDraw()
117 SkColorChannel::kR, SkColorChannel::kG, 40.0f, displ, nullptr, &cropRect)); in onDraw()
120 SkColorChannel::kB, SkColorChannel::kA, 40.0f, displ, nullptr, &cropRect)); in onDraw()
123 SkColorChannel::kR, SkColorChannel::kB, 40.0f, displ, nullptr, &cropRect)); in onDraw()
126 SkColorChannel::kG, SkColorChannel::kA, 40.0f, displ, nullptr, &cropRect)); in onDraw()
[all …]
Danimated_image_orientation.cpp68 AnimatedImageGM(const char* path, const char* name, int step, SkIRect cropRect) in AnimatedImageGM() argument
72 , fCropRect(cropRect) in AnimatedImageGM()
114 auto cropRect = SkIRect::MakeSize(scaledSize); in onDraw() local
122 cropRectFloat.roundOut(&cropRect); in onDraw()
126 ? post_processor(SkRect::Make(cropRect.size())) : nullptr; in onDraw()
128 info, cropRect, std::move(postProcessor)); in onDraw()
135 canvas->translate(cropRect.left(), cropRect.top()); in onDraw()
Doffsetimagefilter.cpp58 SkIRect cropRect = SkIRect::MakeXYWH(i * 12, in onDraw() local
65 paint.setImageFilter(SkImageFilters::Offset(dx, dy, std::move(tileInput), &cropRect)); in onDraw()
66 DrawClippedImage(canvas, image.get(), paint, 1, cropRect); in onDraw()
70 SkIRect cropRect = SkIRect::MakeXYWH(0, 0, 100, 100); in onDraw() local
71 paint.setImageFilter(SkImageFilters::Offset(-5, -10, nullptr, &cropRect)); in onDraw()
72 DrawClippedImage(canvas, fBitmap.get(), paint, 2, cropRect); in onDraw()
76 SkScalar scale, const SkIRect& cropRect) { in DrawClippedImage() argument
87 SkMatrix::Scale(scale, scale).mapRect(&cropRectFloat, SkRect::Make(cropRect)); in DrawClippedImage()
/third_party/flutter/skia/gm/
Dimagemakewithfilter.cpp60 typedef sk_sp<SkImageFilter> (*FilterFactory)(sk_sp<SkImage> auxImage, const SkIRect* cropRect);
62 static sk_sp<SkImageFilter> color_filter_factory(sk_sp<SkImage> auxImage, const SkIRect* cropRect) { in color_filter_factory() argument
66 return SkImageFilters::ColorFilter(std::move(cf), nullptr, cropRect); in color_filter_factory()
69 static sk_sp<SkImageFilter> blur_filter_factory(sk_sp<SkImage> auxImage, const SkIRect* cropRect) { in blur_filter_factory() argument
70 return SkImageFilters::Blur(2.0f, 2.0f, nullptr, cropRect); in blur_filter_factory()
73 static sk_sp<SkImageFilter> drop_shadow_factory(sk_sp<SkImage> auxImage, const SkIRect* cropRect) { in drop_shadow_factory() argument
74 return SkImageFilters::DropShadow(10.0f, 5.0f, 3.0f, 3.0f, SK_ColorBLUE, nullptr, cropRect); in drop_shadow_factory()
77 static sk_sp<SkImageFilter> offset_factory(sk_sp<SkImage> auxImage, const SkIRect* cropRect) { in offset_factory() argument
78 return SkImageFilters::Offset(10.f, 5.f, nullptr, cropRect); in offset_factory()
81 static sk_sp<SkImageFilter> dilate_factory(sk_sp<SkImage> auxImage, const SkIRect* cropRect) { in dilate_factory() argument
[all …]
Dimagefilterscropped.cpp127 SkIRect cropRect = SkIRect::MakeXYWH(10, 10, 44, 44); in onDraw() local
134 sk_sp<SkImageFilter> erodeX(SkImageFilters::Erode(8, 0, nullptr, &cropRect)); in onDraw()
135 sk_sp<SkImageFilter> erodeY(SkImageFilters::Erode(0, 8, nullptr, &cropRect)); in onDraw()
139 SkImageFilters::ColorFilter(cf, nullptr, &cropRect), in onDraw()
140 SkImageFilters::Blur(0.0f, 0.0f, nullptr, &cropRect), in onDraw()
141 SkImageFilters::Blur(1.0f, 1.0f, nullptr, &cropRect), in onDraw()
142 SkImageFilters::Blur(8.0f, 0.0f, nullptr, &cropRect), in onDraw()
143 SkImageFilters::Blur(0.0f, 8.0f, nullptr, &cropRect), in onDraw()
144 SkImageFilters::Blur(8.0f, 8.0f, nullptr, &cropRect), in onDraw()
145 SkImageFilters::Erode(1, 1, nullptr, &cropRect), in onDraw()
[all …]
Ddisplacement.cpp100 SkIRect cropRect = SkIRect::MakeXYWH(30, 30, 40, 40); in onDraw() local
102 SkColorChannel::kR, SkColorChannel::kG, 0.0f, displ, nullptr, &cropRect)); in onDraw()
105 SkColorChannel::kB, SkColorChannel::kA, 16.0f, displ, nullptr, &cropRect)); in onDraw()
108 SkColorChannel::kR, SkColorChannel::kB, 32.0f, displ, nullptr, &cropRect)); in onDraw()
111 SkColorChannel::kG, SkColorChannel::kA, 48.0f, displ, nullptr, &cropRect)); in onDraw()
114 SkColorChannel::kR, SkColorChannel::kA, 64.0f, displ, nullptr, &cropRect)); in onDraw()
118 SkColorChannel::kR, SkColorChannel::kG, 40.0f, displ, nullptr, &cropRect)); in onDraw()
121 SkColorChannel::kB, SkColorChannel::kA, 40.0f, displ, nullptr, &cropRect)); in onDraw()
124 SkColorChannel::kR, SkColorChannel::kB, 40.0f, displ, nullptr, &cropRect)); in onDraw()
127 SkColorChannel::kG, SkColorChannel::kA, 40.0f, displ, nullptr, &cropRect)); in onDraw()
[all …]
Doffsetimagefilter.cpp60 SkIRect cropRect = SkIRect::MakeXYWH(i * 12, in onDraw() local
67 paint.setImageFilter(SkImageFilters::Offset(dx, dy, std::move(tileInput), &cropRect)); in onDraw()
68 DrawClippedImage(canvas, image.get(), paint, 1, cropRect); in onDraw()
72 SkIRect cropRect = SkIRect::MakeXYWH(0, 0, 100, 100); in onDraw() local
73 paint.setImageFilter(SkImageFilters::Offset(-5, -10, nullptr, &cropRect)); in onDraw()
74 DrawClippedImage(canvas, fBitmap.get(), paint, 2, cropRect); in onDraw()
78 SkScalar scale, const SkIRect& cropRect) { in DrawClippedImage() argument
89 SkMatrix::MakeScale(scale, scale).mapRect(&cropRectFloat, SkRect::Make(cropRect)); in DrawClippedImage()
/third_party/skia/src/effects/imagefilters/
DSkCropImageFilter.cpp18 SkCropImageFilter(const SkRect& cropRect, sk_sp<SkImageFilter> input) in SkCropImageFilter() argument
20 , fCropRect(cropRect) { in SkCropImageFilter()
21 SkASSERT(cropRect.isFinite()); in SkCropImageFilter()
22 SkASSERT(cropRect.isSorted()); in SkCropImageFilter()
23 SkASSERT(!cropRect.isEmpty()); in SkCropImageFilter()
50 skif::LayerSpace<SkIRect> cropRect(const skif::Mapping& mapping) const { in cropRect() function in __anond6a6ab560111::SkCropImageFilter
74 SkRect cropRect = buffer.readRect(); in CreateProc() local
75 if (!buffer.isValid() || !buffer.validate(SkIsValidRect(cropRect))) { in CreateProc()
78 return SkMakeCropImageFilter(cropRect, common.getInput(0)); in CreateProc()
89 skif::LayerSpace<SkIRect> cropBounds = this->cropRect(context.mapping()); in onFilterImage()
[all …]
DSkDropShadowImageFilter.cpp22 const SkRect* cropRect) in SkDropShadowImageFilter() argument
23 : INHERITED(&input, 1, cropRect) in SkDropShadowImageFilter()
33 const SkRect* cropRect) { in Make() argument
35 dx, dy, sigmaX, sigmaY, color, shadowOnly, std::move(input), cropRect)); in Make()
61 sk_sp<SkImageFilter> input, const CropRect& cropRect) { in DropShadow() argument
63 std::move(input), cropRect); in DropShadow()
68 sk_sp<SkImageFilter> input, const CropRect& cropRect) { in DropShadowOnly() argument
70 std::move(input), cropRect); in DropShadowOnly()
92 common.getInput(0), common.cropRect()); in CreateProc()
DSkColorFilterImageFilter.cpp23 const SkRect* cropRect) in SkColorFilterImageFilter() argument
24 : INHERITED(&input, 1, cropRect) in SkColorFilterImageFilter()
46 sk_sp<SkColorFilter> cf, sk_sp<SkImageFilter> input, const CropRect& cropRect) { in ColorFilter() argument
58 std::move(newCF), sk_ref_sp(input->getInput(0)), cropRect)); in ColorFilter()
63 std::move(cf), std::move(input), cropRect)); in ColorFilter()
76 return SkImageFilters::ColorFilter(std::move(cf), common.getInput(0), common.cropRect()); in CreateProc()
/third_party/skia/fuzz/
DFuzzCanvas.cpp463 SkIRect cropRect; in make_fuzz_lighting_imagefilter() local
467 fuzz->next(&cropRect); in make_fuzz_lighting_imagefilter()
475 useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter()
481 useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter()
487 std::move(input), useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter()
493 useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter()
499 useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter()
506 std::move(input), useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter()
543 SkIRect cropRect; in make_fuzz_imageFilter() local
545 fuzz->next(&cropRect); in make_fuzz_imageFilter()
[all …]
/third_party/flutter/skia/fuzz/
DFuzzCanvas.cpp471 SkIRect cropRect; in make_fuzz_lighting_imagefilter() local
475 fuzz->next(&cropRect); in make_fuzz_lighting_imagefilter()
483 useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter()
489 useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter()
495 std::move(input), useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter()
501 useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter()
507 useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter()
514 std::move(input), useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter()
537 SkIRect cropRect; in make_fuzz_imageFilter() local
539 fuzz->next(&cropRect); in make_fuzz_imageFilter()
[all …]
/third_party/flutter/skia/src/gpu/geometry/
DGrQuadUtils.cpp250 bool CropToRect(const SkRect& cropRect, GrAA cropAA, GrQuadAAFlags* edgeFlags, GrQuad* quad, in CropToRect() argument
261 clippedEdges = crop_simple_rect(cropRect, quad->xs(), quad->ys(), in CropToRect()
264 clippedEdges = crop_rect(cropRect, quad->xs(), quad->ys(), in CropToRect()
269 clippedEdges = crop_simple_rect(cropRect, quad->xs(), quad->ys(), nullptr, nullptr); in CropToRect()
271 clippedEdges = crop_rect(cropRect, quad->xs(), quad->ys(), in CropToRect()
301 V4f clipX = {cropRect.fLeft, cropRect.fLeft, cropRect.fRight, cropRect.fRight}; in CropToRect()
302 V4f clipY = {cropRect.fTop, cropRect.fBottom, cropRect.fTop, cropRect.fBottom}; in CropToRect()
/third_party/flutter/skia/tests/
DImageFilterTest.cpp116 FilterList(sk_sp<SkImageFilter> input, const SkIRect* cropRect = nullptr) { in FilterList() argument
124 SkImageFilters::ColorFilter(std::move(cf), input, cropRect)); in FilterList()
132 std::move(gradientSource), input, cropRect)); in FilterList()
134 this->addFilter("blur", SkImageFilters::Blur(SK_Scalar1, SK_Scalar1, input, cropRect)); in FilterList()
136 SK_Scalar1, SK_Scalar1, SK_Scalar1, SK_Scalar1, SK_ColorGREEN, input, cropRect)); in FilterList()
138 SkImageFilters::PointLitDiffuse(location, SK_ColorGREEN, 0, 0, input, cropRect)); in FilterList()
141 cropRect)); in FilterList()
155 SkTileMode::kRepeat, false, input, cropRect), in FilterList()
158 this->addFilter("merge", SkImageFilters::Merge(input, input, cropRect)); in FilterList()
173 std::move(paintFilterLeft), std::move(paintFilterRight), cropRect)); in FilterList()
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/gles1/
DTextureParameterTest.cpp100 GLint cropRect[4] = {10, 20, 30, 40}; in TEST_P() local
102 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, cropRect); in TEST_P()
110 EXPECT_EQ(cropRect[i], params[i]); in TEST_P()
142 std::array<GLfixed, 4> cropRect = {0x10000, 0x10000, 0x20000, 0x20000}; in TEST_P() local
144 glTexParameterxv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, cropRect.data()); in TEST_P()
149 EXPECT_EQ(cropRect, params); in TEST_P()
/third_party/skia/tests/
DImageFilterTest.cpp116 FilterList(sk_sp<SkImageFilter> input, const SkIRect* cropRect = nullptr) { in FilterList() argument
124 SkImageFilters::ColorFilter(std::move(cf), input, cropRect)); in FilterList()
132 std::move(gradientSource), input, cropRect)); in FilterList()
134 this->addFilter("blur", SkImageFilters::Blur(SK_Scalar1, SK_Scalar1, input, cropRect)); in FilterList()
136 SK_Scalar1, SK_Scalar1, SK_Scalar1, SK_Scalar1, SK_ColorGREEN, input, cropRect)); in FilterList()
138 SkImageFilters::PointLitDiffuse(location, SK_ColorGREEN, 0, 0, input, cropRect)); in FilterList()
141 cropRect)); in FilterList()
155 SkTileMode::kRepeat, false, input, cropRect), in FilterList()
158 this->addFilter("merge", SkImageFilters::Merge(input, input, cropRect)); in FilterList()
172 std::move(shaderFilterLeft), std::move(shaderFilterRight), cropRect)); in FilterList()
[all …]

12345