Home
last modified time | relevance | path

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

12

/external/skia/gm/
Dimagefilterscropped.cpp80 SkIRect cropRect = SkIRect::MakeXYWH(10, 10, 44, 44); in draw_sprite() local
82 c.drawRect(SkRect::Make(cropRect), paint); in draw_sprite()
144 …SkImageFilter::CropRect cropRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 44, 44)), SkImageFilter::C… in onDraw() local
152 SkAutoTUnref<SkImageFilter> erodeX(SkErodeImageFilter::Create(8, 0, NULL, &cropRect)); in onDraw()
153 SkAutoTUnref<SkImageFilter> erodeY(SkErodeImageFilter::Create(0, 8, NULL, &cropRect)); in onDraw()
157 SkColorFilterImageFilter::Create(cf.get(), NULL, &cropRect), in onDraw()
158 SkBlurImageFilter::Create(1.0f, 1.0f, NULL, &cropRect), in onDraw()
159 SkBlurImageFilter::Create(8.0f, 0.0f, NULL, &cropRect), in onDraw()
160 SkBlurImageFilter::Create(0.0f, 8.0f, NULL, &cropRect), in onDraw()
161 SkBlurImageFilter::Create(8.0f, 8.0f, NULL, &cropRect), in onDraw()
[all …]
Doffsetimagefilter.cpp47 …s* canvas, const SkBitmap& bitmap, const SkPaint& paint, SkScalar scale, const SkIRect& cropRect) { in drawClippedBitmap() argument
64 scaleMatrix.mapRect(&cropRectFloat, SkRect::Make(cropRect)); in drawClippedBitmap()
85 SkIRect cropRect = SkIRect::MakeXYWH(i * 12, in onDraw() local
89 SkImageFilter::CropRect rect(SkRect::Make(cropRect)); in onDraw()
96 drawClippedBitmap(canvas, *bitmap, paint, SK_Scalar1, cropRect); in onDraw()
100 SkIRect cropRect = SkIRect::MakeXYWH(0, 0, 100, 100); in onDraw() local
101 SkImageFilter::CropRect rect(SkRect::Make(cropRect)); in onDraw()
105 drawClippedBitmap(canvas, fBitmap, paint, SkIntToScalar(2), cropRect); in onDraw()
Ddisplacement.cpp116 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(30, 30, 40, 40)); in onDraw() local
120 0.0f, displ, NULL, &cropRect))->unref(); in onDraw()
125 16.0f, displ, NULL, &cropRect))->unref(); in onDraw()
130 32.0f, displ, NULL, &cropRect))->unref(); in onDraw()
135 48.0f, displ, NULL, &cropRect))->unref(); in onDraw()
140 64.0f, displ, NULL, &cropRect))->unref(); in onDraw()
146 40.0f, displ, NULL, &cropRect))->unref(); in onDraw()
151 40.0f, displ, NULL, &cropRect))->unref(); in onDraw()
156 40.0f, displ, NULL, &cropRect))->unref(); in onDraw()
161 40.0f, displ, NULL, &cropRect))->unref(); in onDraw()
[all …]
Ddropshadowimagefilter.cpp81 SkIRect cropRect = SkIRect::MakeXYWH(10, 10, 44, 44); in draw_sprite() local
83 c.drawRect(SkRect::Make(cropRect), paint); in draw_sprite()
122 SkImageFilter::CropRect cropRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 44, 44)), in onDraw() local
138 SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode, NULL, &cropRect), in onDraw()
Dlighting.cpp89 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(20, 10, 60, 65)); in onDraw() local
91 SkAutoTUnref<SkImageFilter> noopCropped(SkOffsetImageFilter::Create(0, 0, NULL, &cropRect)); in onDraw()
95 … const SkImageFilter::CropRect* cr = (i == 1) ? &cropRect : (i == 2) ? &fullSizeCropRect : NULL; in onDraw()
Dmorphology.cpp72 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(25, 20, 100, 80)); in onDraw() local
76 const SkImageFilter::CropRect* cr = j & 0x02 ? &cropRect : NULL; in onDraw()
/external/skia/include/effects/
DSkMorphologyImageFilter.h33 const CropRect* cropRect);
56 const CropRect* cropRect = NULL) {
60 return SkNEW_ARGS(SkDilateImageFilter, (radiusX, radiusY, input, cropRect));
74 SkDilateImageFilter(int radiusX, int radiusY, SkImageFilter* input, const CropRect* cropRect) in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS()
75 : INHERITED(radiusX, radiusY, input, cropRect) {} in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS()
84 const CropRect* cropRect = NULL) {
88 return SkNEW_ARGS(SkErodeImageFilter, (radiusX, radiusY, input, cropRect));
102 SkErodeImageFilter(int radiusX, int radiusY, SkImageFilter* input, const CropRect* cropRect) in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS()
103 : INHERITED(radiusX, radiusY, input, cropRect) {} in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS()
DSkPictureImageFilter.h27 static SkPictureImageFilter* Create(const SkPicture* picture, const SkRect& cropRect) { in Create() argument
28 return SkNEW_ARGS(SkPictureImageFilter, (picture, cropRect, in Create()
41 const SkRect& cropRect, in CreateForLocalSpace() argument
43 return SkNEW_ARGS(SkPictureImageFilter, (picture, cropRect, in CreateForLocalSpace()
48 const SkRect& cropRect, in CreateForLocalSpace() argument
50 return CreateForLocalSpace(picture, cropRect, (SkFilterQuality)filterLevel); in CreateForLocalSpace()
63 SkPictureImageFilter(const SkPicture* picture, const SkRect& cropRect,
DSkMergeImageFilter.h21 const CropRect* cropRect = NULL) {
24 return SkNEW_ARGS(SkMergeImageFilter, (inputs, 2, modes, cropRect));
28 const CropRect* cropRect = NULL) {
29 return SkNEW_ARGS(SkMergeImageFilter, (filters, count, modes, cropRect));
38 const CropRect* cropRect);
DSkLightingImageFilter.h50 SkImageFilter* input = NULL, const CropRect* cropRect = NULL);
53 SkImageFilter* input = NULL, const CropRect* cropRect = NULL);
57 SkImageFilter* input = NULL, const CropRect* cropRect = NULL);
60 SkScalar shininess, SkImageFilter* input = NULL, const CropRect* cropRect = NULL);
63 SkScalar shininess, SkImageFilter* input = NULL, const CropRect* cropRect = NULL);
67 SkScalar shininess, SkImageFilter* input = NULL, const CropRect* cropRect = NULL);
76 const CropRect* cropRect);
DSkOffsetImageFilter.h19 const CropRect* cropRect = NULL) {
23 return SkNEW_ARGS(SkOffsetImageFilter, (dx, dy, input, cropRect));
30 SkOffsetImageFilter(SkScalar dx, SkScalar dy, SkImageFilter* input, const CropRect* cropRect);
DSkXfermodeImageFilter.h28 const CropRect* cropRect = NULL) {
30 return SkNEW_ARGS(SkXfermodeImageFilter, (mode, inputs, cropRect));
49 const CropRect* cropRect);
DSkBlurImageFilter.h19 const CropRect* cropRect = NULL) {
20 return SkNEW_ARGS(SkBlurImageFilter, (sigmaX, sigmaY, input, cropRect));
32 const CropRect* cropRect);
DSkDropShadowImageFilter.h27 const CropRect* cropRect = NULL) {
29 shadowMode, input, cropRect));
38 ShadowMode shadowMode, SkImageFilter* input, const CropRect* cropRect);
DSkColorFilterImageFilter.h19 const CropRect* cropRect = NULL);
36 const CropRect* cropRect);
DSkDisplacementMapEffect.h30 const CropRect* cropRect = NULL);
56 const CropRect* cropRect);
DSkMatrixConvolutionImageFilter.h63 const CropRect* cropRect = NULL);
77 const CropRect* cropRect);
/external/skia/src/effects/
DSkRectShaderImageFilter.cpp22 CropRect cropRect(rect, flags); in Create() local
23 return s ? SkNEW_ARGS(SkRectShaderImageFilter, (s, &cropRect)) : NULL; in Create()
26 SkRectShaderImageFilter* SkRectShaderImageFilter::Create(SkShader* s, const CropRect* cropRect) { in Create() argument
28 return s ? SkNEW_ARGS(SkRectShaderImageFilter, (s, cropRect)) : NULL; in Create()
31 SkRectShaderImageFilter::SkRectShaderImageFilter(SkShader* s, const CropRect* cropRect) in SkRectShaderImageFilter() argument
32 : INHERITED(0, NULL, cropRect) in SkRectShaderImageFilter()
39 return Create(shader.get(), &common.cropRect()); in CreateProc()
DSkColorFilterImageFilter.cpp19 SkImageFilter* input, const CropRect* cropRect) { in Create() argument
31 return SkNEW_ARGS(SkColorFilterImageFilter, (newCF, input->getInput(0), cropRect)); in Create()
35 return SkNEW_ARGS(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()
DSkPictureImageFilter.cpp24 SkPictureImageFilter::SkPictureImageFilter(const SkPicture* picture, const SkRect& cropRect, in SkPictureImageFilter() argument
29 , fCropRect(cropRect) in SkPictureImageFilter()
40 SkRect cropRect; in CreateProc() local
52 buffer.readRect(&cropRect); in CreateProc()
68 return CreateForLocalSpace(picture, cropRect, filterQuality); in CreateProc()
70 return Create(picture, cropRect); in CreateProc()
DSkMergeImageFilter.cpp45 const CropRect* cropRect) in SkMergeImageFilter() argument
46 : INHERITED(count, filters, cropRect) { in SkMergeImageFilter()
130 return Create(common.inputs(), count, modes.get(), &common.cropRect()); in CreateProc()
132 return Create(common.inputs(), count, NULL, &common.cropRect()); in CreateProc()
DSkOffsetImageFilter.cpp98 return Create(offset.x(), offset.y(), common.getInput(0), &common.cropRect());
107 const CropRect* cropRect) argument
108 : INHERITED(1, &input, cropRect) {
DSkLightingImageFilter.cpp299 const CropRect* cropRect) in SkLightingImageFilterInternal() argument
300 : INHERITED(light, surfaceScale, input, cropRect) {} in SkLightingImageFilterInternal()
420 SkScalar kd, SkImageFilter* input, const CropRect* cropRect);
1013 SkImageFilter* input, const CropRect* cropRect) in SkLightingImageFilter() argument
1014 : INHERITED(1, &input, cropRect) in SkLightingImageFilter()
1024 const CropRect* cropRect) { in CreateDistantLitDiffuse() argument
1026 return SkDiffuseLightingImageFilter::Create(light, surfaceScale, kd, input, cropRect); in CreateDistantLitDiffuse()
1034 const CropRect* cropRect) { in CreatePointLitDiffuse() argument
1036 return SkDiffuseLightingImageFilter::Create(light, surfaceScale, kd, input, cropRect); in CreatePointLitDiffuse()
1047 const CropRect* cropRect) { in CreateSpotLitDiffuse() argument
[all …]
/external/skia/tests/
DImageFilterTest.cpp135 static SkImageFilter* make_grayscale(SkImageFilter* input, const SkImageFilter::CropRect* cropRect)… in make_grayscale() argument
143 return SkColorFilterImageFilter::Create(filter, input, cropRect); in make_grayscale()
146 static SkImageFilter* make_blue(SkImageFilter* input, const SkImageFilter::CropRect* cropRect) { in make_blue() argument
149 return SkColorFilterImageFilter::Create(filter, input, cropRect); in make_blue()
207 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(0, 0, 100, 100)); in DEF_TEST() local
208 SkAutoTUnref<SkImageFilter> grayWithCrop(make_grayscale(NULL, &cropRect)); in DEF_TEST()
278 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(20, 30, 60, 60)); in test_crop_rects() local
293 SkColorFilterImageFilter::Create(cf.get(), input.get(), &cropRect), in test_crop_rects()
296 40.0f, input.get(), input.get(), &cropRect), in test_crop_rects()
297 SkBlurImageFilter::Create(SK_Scalar1, SK_Scalar1, input.get(), &cropRect), in test_crop_rects()
[all …]
/external/skia/src/core/
DSkImageFilter.cpp117 SkImageFilter::SkImageFilter(int inputCount, SkImageFilter** inputs, const CropRect* cropRect) in SkImageFilter() argument
121 fCropRect(cropRect ? *cropRect : CropRect(SkRect(), 0x0)), in SkImageFilter()
144 fCropRect = common.cropRect(); in SkImageFilter()
294 SkRect cropRect; in applyCropRect() local
295 ctx.ctm().mapRect(&cropRect, fCropRect.rect()); in applyCropRect()
296 const SkIRect cropRectI = cropRect.roundOut(); in applyCropRect()
314 SkRect cropRect; in applyCropRect() local
315 ctx.ctm().mapRect(&cropRect, fCropRect.rect()); in applyCropRect()
316 const SkIRect cropRectI = cropRect.roundOut(); in applyCropRect()

12