Home
last modified time | relevance | path

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

123

/external/skia/include/effects/
DSkImageFilters.h74 const CropRect& cropRect = {});
89 const CropRect& cropRect = {});
100 const CropRect& cropRect = {});
111 const CropRect& cropRect = {});
124 sk_sp<SkImageFilter> input, const CropRect& cropRect = {});
127 const CropRect& cropRect = {}) {
128 return Blur(sigmaX, sigmaY, SkTileMode::kDecal, std::move(input), cropRect);
138 const CropRect& cropRect = {});
165 const CropRect& cropRect = {});
181 const CropRect& cropRect = {});
[all …]
/external/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.cpp67 SkRect* outputBounds, SkRect* cropRect, SkRect* contentBounds) { in get_example_rects() argument
71 *cropRect = make_overlap(*outputBounds, -0.15f, 0.15f); in get_example_rects()
72 SkASSERT(cropRect->intersects(*outputBounds) && in get_example_rects()
73 !cropRect->contains(*outputBounds) && in get_example_rects()
74 !outputBounds->contains(*cropRect)); in get_example_rects()
77 *cropRect = make_outset(*outputBounds, 0.15f, 0.15f); in get_example_rects()
78 SkASSERT(cropRect->contains(*outputBounds)); in get_example_rects()
81 *cropRect = make_inset(*outputBounds, 0.15f, 0.15f); in get_example_rects()
82 SkASSERT(outputBounds->contains(*cropRect)); in get_example_rects()
85 *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()
Dmatrixconvolution.cpp73 bool convolveAlpha, const SkIRect *cropRect = nullptr) { in makeFilter() argument
79 … */ 0.3f, /* bias */ SkIntToScalar(100), kernelOffset, tileMode, convolveAlpha, nullptr, cropRect); in makeFilter()
86 … */ 0.3f, /* bias */ SkIntToScalar(100), kernelOffset, tileMode, convolveAlpha, nullptr, cropRect); in makeFilter()
95 const SkIRect* cropRect = nullptr) { in draw() argument
97 paint.setImageFilter(this->makeFilter(kernelOffset, tileMode, convolveAlpha, cropRect)); in draw()
Dimagealphathreshold.cpp45 static SkPaint create_filter_paint(SkIRect* cropRect = nullptr) { in create_filter_paint() argument
55 SkImageFilters::AlphaThreshold(region, 0.2f, 0.7f, std::move(offset), cropRect)); in create_filter_paint()
87 SkIRect cropRect = SkIRect::MakeLTRB(100, 100, WIDTH - 100, HEIGHT - 100); in onDraw() local
89 SkPaint paint = create_filter_paint(fUseCropRect ? &cropRect : nullptr); in onDraw()
/external/skia/src/effects/imagefilters/
DSkCropImageFilter.cpp25 SkCropImageFilter(const SkRect& cropRect, sk_sp<SkImageFilter> input) in SkCropImageFilter() argument
27 , fCropRect(cropRect) { in SkCropImageFilter()
28 SkASSERT(cropRect.isFinite()); in SkCropImageFilter()
29 SkASSERT(cropRect.isSorted()); in SkCropImageFilter()
56 skif::LayerSpace<SkIRect> cropRect(const skif::Mapping& mapping) const { in cropRect() function in __anon94c8040a0111::SkCropImageFilter
78 SkRect cropRect = buffer.readRect(); in CreateProc() local
79 if (!buffer.isValid() || !buffer.validate(SkIsValidRect(cropRect))) { in CreateProc()
82 return SkMakeCropImageFilter(cropRect, common.getInput(0)); in CreateProc()
93 skif::LayerSpace<SkIRect> cropBounds = this->cropRect(context.mapping()); in onFilterImage()
119 skif::LayerSpace<SkIRect> requiredInput = this->cropRect(mapping); in onGetInputLayerBounds()
[all …]
DSkColorFilterImageFilter.cpp36 const SkRect* cropRect) in SkColorFilterImageFilter() argument
37 : INHERITED(&input, 1, cropRect) in SkColorFilterImageFilter()
59 sk_sp<SkColorFilter> cf, sk_sp<SkImageFilter> input, const CropRect& cropRect) { in ColorFilter() argument
63 const SkRect* crop = cropRect; in ColorFilter()
67 return SkImageFilters::Offset(0.f, 0.f, std::move(input), cropRect); in ColorFilter()
81 std::move(newCF), sk_ref_sp(input->getInput(0)), cropRect)); in ColorFilter()
86 std::move(cf), std::move(input), cropRect)); in ColorFilter()
99 return SkImageFilters::ColorFilter(std::move(cf), common.getInput(0), common.cropRect()); in CreateProc()
DSkDropShadowImageFilter.cpp38 const SkRect* cropRect) in SkDropShadowImageFilter() argument
39 : INHERITED(&input, 1, cropRect) in SkDropShadowImageFilter()
49 const SkRect* cropRect) { in Make() argument
51 dx, dy, sigmaX, sigmaY, color, shadowOnly, std::move(input), cropRect)); in Make()
77 sk_sp<SkImageFilter> input, const CropRect& cropRect) { in DropShadow() argument
79 std::move(input), cropRect); in DropShadow()
84 sk_sp<SkImageFilter> input, const CropRect& cropRect) { in DropShadowOnly() argument
86 std::move(input), cropRect); in DropShadowOnly()
108 common.getInput(0), common.cropRect()); in CreateProc()
DSkMergeImageFilter.cpp29 const SkRect* cropRect) in SkMergeImageFilter() argument
30 : INHERITED(filters, count, cropRect) { in SkMergeImageFilter()
47 const CropRect& cropRect) { in Merge() argument
48 return sk_sp<SkImageFilter>(new SkMergeImageFilter(filters, count, cropRect)); in Merge()
62 return SkImageFilters::Merge(common.inputs(), common.inputCount(), common.cropRect()); in CreateProc()
DSkPictureImageFilter.cpp33 SkPictureImageFilter(sk_sp<SkPicture> picture, const SkRect& cropRect) in SkPictureImageFilter() argument
36 , fCropRect(cropRect) {} in SkPictureImageFilter()
76 SkRect cropRect; in CreateProc() local
81 buffer.readRect(&cropRect); in CreateProc()
83 return SkImageFilters::Picture(std::move(picture), cropRect); in CreateProc()
DSkBlendImageFilter.cpp58 const SkRect* cropRect) in SkBlendImageFilter() argument
59 : INHERITED(inputs, 2, cropRect) in SkBlendImageFilter()
98 const CropRect& cropRect) { in Blend() argument
100 return sk_sp<SkImageFilter>(new SkBlendImageFilter(SkBlender::Mode(mode), inputs, cropRect)); in Blend()
106 const CropRect& cropRect) { in Blend() argument
111 return sk_sp<SkImageFilter>(new SkBlendImageFilter(blender, inputs, cropRect)); in Blend()
136 common.cropRect()); in CreateProc()
DSkMatrixTransformImageFilter.cpp85 const CropRect& cropRect) { in Offset() argument
93 if (cropRect) { in Offset()
94 offset = SkMakeCropImageFilter(*cropRect, std::move(offset)); in Offset()
114 return SkImageFilters::Offset(offset.x(), offset.y(), common.getInput(0), common.cropRect()); in LegacyOffsetCreateProc()
DSkMagnifierImageFilter.cpp49 const SkRect* cropRect) in SkMagnifierImageFilter() argument
50 : INHERITED(&input, 1, cropRect) in SkMagnifierImageFilter()
75 const CropRect& cropRect) { in Magnifier() argument
87 cropRect)); in Magnifier()
101 common.cropRect()); in CreateProc()
DSkShaderImageFilter.cpp59 const CropRect& cropRect) { in Shader() argument
60 return sk_sp<SkImageFilter>(new SkShaderImageFilter(std::move(shader), dither, cropRect)); in Shader()
87 common.cropRect()); in CreateProc()
/external/skia/fuzz/
DFuzzCanvas.cpp462 SkIRect cropRect; in make_fuzz_lighting_imagefilter() local
466 fuzz->next(&cropRect); in make_fuzz_lighting_imagefilter()
474 useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter()
480 useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter()
486 std::move(input), useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter()
492 useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter()
498 useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter()
505 std::move(input), useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter()
542 SkIRect cropRect; in make_fuzz_imageFilter() local
544 fuzz->next(&cropRect); in make_fuzz_imageFilter()
[all …]
/external/angle/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()
/external/skia/tests/
DImageFilterTest.cpp155 FilterList(sk_sp<SkImageFilter> input, const SkIRect* cropRect = nullptr) { in FilterList() argument
163 SkImageFilters::ColorFilter(std::move(cf), input, cropRect)); in FilterList()
171 std::move(gradientSource), input, cropRect)); in FilterList()
173 this->addFilter("blur", SkImageFilters::Blur(SK_Scalar1, SK_Scalar1, input, cropRect)); in FilterList()
175 SK_Scalar1, SK_Scalar1, SK_Scalar1, SK_Scalar1, SK_ColorGREEN, input, cropRect)); in FilterList()
177 SkImageFilters::PointLitDiffuse(location, SK_ColorGREEN, 0, 0, input, cropRect)); in FilterList()
180 cropRect)); in FilterList()
194 SkTileMode::kRepeat, false, input, cropRect), in FilterList()
197 this->addFilter("merge", SkImageFilters::Merge(input, input, cropRect)); in FilterList()
211 std::move(shaderFilterLeft), std::move(shaderFilterRight), cropRect)); in FilterList()
[all …]
/external/skia/src/android/
DSkAnimatedImage.cpp24 const SkImageInfo& requestedInfo, SkIRect cropRect, sk_sp<SkPicture> postProcess) { in Make() argument
29 if (!requestedInfo.bounds().contains(cropRect)) { in Make()
34 cropRect, std::move(postProcess))); in Make()
53 const auto cropRect = SkIRect::MakeSize(decodeInfo.dimensions()); in Make() local
54 return Make(std::move(codec), decodeInfo, cropRect, nullptr); in Make()
58 const SkImageInfo& requestedInfo, SkIRect cropRect, sk_sp<SkPicture> postProcess) in SkAnimatedImage() argument
61 , fCropRect(cropRect) in SkAnimatedImage()
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowNativeAnimatedImageDrawable.java30 Rect cropRect) in nCreate() argument
33 nativeImageDecoder, decoder, width, height, colorSpaceHandle, extended, cropRect); in nCreate()
38 long nativeImageDecoder, ImageDecoder decoder, int width, int height, Rect cropRect) in nCreate() argument
40 return nCreate(nativeImageDecoder, decoder, width, height, 0, false, cropRect); in nCreate()
/external/skia/modules/svg/src/
DSkSVGFeMorphology.cpp25 const SkRect cropRect = this->resolveFilterSubregion(ctx, fctx); in onMakeImageFilter() local
33 return SkImageFilters::Erode(r.x, r.y, input, cropRect); in onMakeImageFilter()
35 return SkImageFilters::Dilate(r.x, r.y, input, cropRect); in onMakeImageFilter()
DSkSVGFeComposite.cpp49 const SkRect cropRect = this->resolveFilterSubregion(ctx, fctx); in onMakeImageFilter() local
56 fK1, fK2, fK3, fK4, enforcePMColor, background, foreground, cropRect); in onMakeImageFilter()
59 BlendModeForOperator(fOperator), background, foreground, cropRect); in onMakeImageFilter()

123