Home
last modified time | relevance | path

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

12

/external/skia/gm/
Dimagefilterscropped.cpp120 …SkImageFilter::CropRect cropRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 44, 44)), SkImageFilter::C… in onDraw() local
128 SkAutoTUnref<SkImageFilter> erodeX(SkErodeImageFilter::Create(8, 0, nullptr, &cropRect)); in onDraw()
129 SkAutoTUnref<SkImageFilter> erodeY(SkErodeImageFilter::Create(0, 8, nullptr, &cropRect)); in onDraw()
133 SkColorFilterImageFilter::Create(cf.get(), nullptr, &cropRect), in onDraw()
134 SkBlurImageFilter::Create(0.0f, 0.0f, nullptr, &cropRect), in onDraw()
135 SkBlurImageFilter::Create(1.0f, 1.0f, nullptr, &cropRect), in onDraw()
136 SkBlurImageFilter::Create(8.0f, 0.0f, nullptr, &cropRect), in onDraw()
137 SkBlurImageFilter::Create(0.0f, 8.0f, nullptr, &cropRect), in onDraw()
138 SkBlurImageFilter::Create(8.0f, 8.0f, nullptr, &cropRect), in onDraw()
139 SkErodeImageFilter::Create(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))->unref(); in onDraw()
112 16.0f, displ, nullptr, &cropRect))->unref(); in onDraw()
117 32.0f, displ, nullptr, &cropRect))->unref(); in onDraw()
122 48.0f, displ, nullptr, &cropRect))->unref(); in onDraw()
127 64.0f, displ, nullptr, &cropRect))->unref(); in onDraw()
133 40.0f, displ, nullptr, &cropRect))->unref(); in onDraw()
138 40.0f, displ, nullptr, &cropRect))->unref(); in onDraw()
143 40.0f, displ, nullptr, &cropRect))->unref(); in onDraw()
148 40.0f, displ, nullptr, &cropRect))->unref(); in onDraw()
[all …]
Doffsetimagefilter.cpp51 SkIRect cropRect = SkIRect::MakeXYWH(i * 12, in onDraw() local
55 SkImageFilter::CropRect rect(SkRect::Make(cropRect)); in onDraw()
62 DrawClippedImage(canvas, image, paint, 1, cropRect); in onDraw()
66 SkIRect cropRect = SkIRect::MakeXYWH(0, 0, 100, 100); in onDraw() local
67 SkImageFilter::CropRect rect(SkRect::Make(cropRect)); in onDraw()
70 DrawClippedImage(canvas, fBitmap, paint, 2, cropRect); in onDraw()
74 SkScalar scale, const SkIRect& cropRect) { in DrawClippedImage() argument
85 SkMatrix::MakeScale(scale, scale).mapRect(&cropRectFloat, SkRect::Make(cropRect)); in DrawClippedImage()
Dlighting.cpp81 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(20, 10, 60, 65)); in onDraw() local
83 … SkAutoTUnref<SkImageFilter> noopCropped(SkOffsetImageFilter::Create(0, 0, nullptr, &cropRect)); in onDraw()
87 … const SkImageFilter::CropRect* cr = (i == 1) ? &cropRect : (i == 2) ? &fullSizeCropRect : nullptr; in onDraw()
Dxfermodeimagefilter.cpp156 SkIRect cropRect = SkIRect::MakeXYWH(offsets[i][0], in onDraw() local
160 SkImageFilter::CropRect rect(SkRect::Make(cropRect)); in onDraw()
174 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(10, 10, 60, 60)); in onDraw() local
176 SkOffsetImageFilter::Create(0, 0, foreground, &cropRect)); in onDraw()
Dmorphology.cpp72 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(25, 20, 100, 80)); in onDraw() local
76 const SkImageFilter::CropRect* cr = j & 0x02 ? &cropRect : nullptr; in onDraw()
/external/skia/include/effects/
DSkMorphologyImageFilter.h34 const CropRect* cropRect);
56 const CropRect* cropRect = NULL) {
60 return new SkDilateImageFilter(radiusX, radiusY, input, cropRect);
75 SkDilateImageFilter(int radiusX, int radiusY, SkImageFilter* input, const CropRect* cropRect) in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS()
76 : INHERITED(radiusX, radiusY, input, cropRect) {} in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS()
85 const CropRect* cropRect = NULL) {
89 return new SkErodeImageFilter(radiusX, radiusY, input, cropRect);
104 SkErodeImageFilter(int radiusX, int radiusY, SkImageFilter* input, const CropRect* cropRect) in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS()
105 : INHERITED(radiusX, radiusY, input, cropRect) {} in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS()
DSkLightingImageFilter.h22 SkImageFilter* input = NULL, const CropRect* cropRect = NULL);
25 SkImageFilter* input = NULL, const CropRect* cropRect = NULL);
29 SkImageFilter* input = NULL, const CropRect* cropRect = NULL);
32 SkScalar shininess, SkImageFilter* input = NULL, const CropRect* cropRect = NULL);
35 SkScalar shininess, SkImageFilter* input = NULL, const CropRect* cropRect = NULL);
39 SkScalar shininess, SkImageFilter* input = NULL, const CropRect* cropRect = NULL);
48 const CropRect* cropRect);
DSkMergeImageFilter.h21 const CropRect* cropRect = NULL) {
24 return new SkMergeImageFilter(inputs, 2, modes, cropRect);
29 const CropRect* cropRect = NULL) {
30 return new SkMergeImageFilter(filters, count, modes, cropRect);
43 const CropRect* cropRect);
DSkPictureImageFilter.h27 static SkImageFilter* Create(const SkPicture* picture, const SkRect& cropRect) { in Create() argument
28 return new SkPictureImageFilter(picture, cropRect, kDeviceSpace_PictureResolution, in Create()
40 const SkRect& cropRect, in CreateForLocalSpace() argument
42 return new SkPictureImageFilter(picture, cropRect, kLocalSpace_PictureResolution, in CreateForLocalSpace()
69 SkPictureImageFilter(const SkPicture* picture, const SkRect& cropRect,
DSkBlurImageFilter.h17 const CropRect* cropRect = NULL) {
18 if (0 == sigmaX && 0 == sigmaY && nullptr == cropRect) {
21 return new SkBlurImageFilter(sigmaX, sigmaY, input, cropRect);
43 const CropRect* cropRect);
DSkXfermodeImageFilter.h26 const CropRect* cropRect = NULL) {
28 return new SkXfermodeImageFilter(mode, inputs, cropRect);
47 const CropRect* cropRect);
DSkDropShadowImageFilter.h25 const CropRect* cropRect = NULL) {
27 cropRect);
43 ShadowMode shadowMode, SkImageFilter* input, const CropRect* cropRect);
DSkColorFilterImageFilter.h18 const CropRect* cropRect = NULL);
33 const CropRect* cropRect);
DSkOffsetImageFilter.h17 const CropRect* cropRect = NULL) {
21 return new SkOffsetImageFilter(dx, dy, input, cropRect);
DSkDisplacementMapEffect.h30 const CropRect* cropRect = NULL);
57 const CropRect* cropRect);
DSkMatrixConvolutionImageFilter.h63 const CropRect* cropRect = NULL);
77 const CropRect* cropRect);
/external/skia/src/effects/
DSkColorFilterImageFilter.cpp19 const CropRect* cropRect) { in Create() argument
31 return new SkColorFilterImageFilter(newCF, input->getInput(0), cropRect); in Create()
35 return new SkColorFilterImageFilter(cf, input, cropRect); in Create()
39 SkImageFilter* input, const CropRect* cropRect) in SkColorFilterImageFilter() argument
40 : INHERITED(1, &input, cropRect), fColorFilter(SkRef(cf)) { in SkColorFilterImageFilter()
46 return Create(cf, common.getInput(0), &common.cropRect()); in CreateProc()
DSkPaintImageFilter.cpp15 SkImageFilter* SkPaintImageFilter::Create(const SkPaint& paint, const CropRect* cropRect) { in Create() argument
16 return new SkPaintImageFilter(paint, cropRect); in Create()
19 SkPaintImageFilter::SkPaintImageFilter(const SkPaint& paint, const CropRect* cropRect) in SkPaintImageFilter() argument
20 : INHERITED(0, nullptr, cropRect) in SkPaintImageFilter()
28 return Create(paint, &common.cropRect()); in CreateProc()
DSkPictureImageFilter.cpp24 SkPictureImageFilter::SkPictureImageFilter(const SkPicture* picture, const SkRect& cropRect, in SkPictureImageFilter() argument
29 , fCropRect(cropRect) in SkPictureImageFilter()
40 SkRect cropRect; in CreateProc() local
49 buffer.readRect(&cropRect); in CreateProc()
65 return CreateForLocalSpace(picture, cropRect, filterQuality); in CreateProc()
67 return Create(picture, cropRect); in CreateProc()
DSkMergeImageFilter.cpp45 const CropRect* cropRect) in SkMergeImageFilter() argument
46 : INHERITED(count, filters, cropRect) { in SkMergeImageFilter()
147 return Create(common.inputs(), count, modes.get(), &common.cropRect()); in CreateProc()
149 return Create(common.inputs(), count, nullptr, &common.cropRect()); in CreateProc()
DSkOffsetImageFilter.cpp90 return Create(offset.x(), offset.y(), common.getInput(0), &common.cropRect()); in CreateProc()
99 const CropRect* cropRect) in SkOffsetImageFilter() argument
100 : INHERITED(1, &input, cropRect) { in SkOffsetImageFilter()
DSkLightingImageFilter.cpp353 const CropRect* cropRect) in SkLightingImageFilterInternal() argument
354 : INHERITED(light, surfaceScale, input, cropRect) {} in SkLightingImageFilterInternal()
488 SkScalar kd, SkImageFilter* input, const CropRect* cropRect);
1097 SkImageFilter* input, const CropRect* cropRect) in SkLightingImageFilter() argument
1098 : INHERITED(1, &input, cropRect) in SkLightingImageFilter()
1108 const CropRect* cropRect) { in CreateDistantLitDiffuse() argument
1110 return SkDiffuseLightingImageFilter::Create(light, surfaceScale, kd, input, cropRect); in CreateDistantLitDiffuse()
1118 const CropRect* cropRect) { in CreatePointLitDiffuse() argument
1120 return SkDiffuseLightingImageFilter::Create(light, surfaceScale, kd, input, cropRect); in CreatePointLitDiffuse()
1131 const CropRect* cropRect) { in CreateSpotLitDiffuse() argument
[all …]
/external/skia/tests/
DImageFilterTest.cpp141 static SkImageFilter* make_grayscale(SkImageFilter* input, const SkImageFilter::CropRect* cropRect)… in make_grayscale() argument
149 return SkColorFilterImageFilter::Create(filter, input, cropRect); in make_grayscale()
152 static SkImageFilter* make_blue(SkImageFilter* input, const SkImageFilter::CropRect* cropRect) { in make_blue() argument
155 return SkColorFilterImageFilter::Create(filter, input, cropRect); in make_blue()
213 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(0, 0, 100, 100)); in DEF_TEST() local
214 SkAutoTUnref<SkImageFilter> grayWithCrop(make_grayscale(nullptr, &cropRect)); in DEF_TEST()
283 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(20, 30, 60, 60)); in test_crop_rects() local
297 SkColorFilterImageFilter::Create(cf.get(), input.get(), &cropRect), in test_crop_rects()
300 40.0f, input.get(), input.get(), &cropRect), in test_crop_rects()
301 SkBlurImageFilter::Create(SK_Scalar1, SK_Scalar1, input.get(), &cropRect), in test_crop_rects()
[all …]
/external/skia/bench/
DBlurImageFilterBench.cpp74 const SkImageFilter::CropRect cropRect(bmpRect.makeInset(10.f, 10.f)); in onDraw() local
77 &cropRect)); in onDraw()
82 fIsExpanded ? &cropRectLarge : fIsCropped ? &cropRect : nullptr; in onDraw()

12