Searched defs:cropRect (Results 1 - 20 of 20) sorted by relevance

/external/skia/include/effects/
H A 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) argument
75 : INHERITED(radiusX, radiusY, input, cropRect) {}
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) argument
103 : INHERITED(radiusX, radiusY, input, cropRect) {}
H A DSkPictureImageFilter.h24 * Refs the passed-in picture. cropRect can be used to crop or expand the destination rect when
27 static SkPictureImageFilter* Create(const SkPicture* picture, const SkRect& cropRect) { argument
28 return SkNEW_ARGS(SkPictureImageFilter, (picture, cropRect,
36 * destination canvas, bilinear filtering will be used. cropRect can be used to crop or
41 const SkRect& cropRect,
43 return SkNEW_ARGS(SkPictureImageFilter, (picture, cropRect,
48 const SkRect& cropRect,
50 return CreateForLocalSpace(picture, cropRect, (SkFilterQuality)filterLevel);
63 SkPictureImageFilter(const SkPicture* picture, const SkRect& cropRect,
40 CreateForLocalSpace(const SkPicture* picture, const SkRect& cropRect, SkFilterQuality filterQuality) argument
47 CreateForLocalSpace(const SkPicture* picture, const SkRect& cropRect, SkPaint::FilterLevel filterLevel) argument
/external/skia/src/effects/
H A DSkRectShaderImageFilter.cpp22 CropRect cropRect(rect, flags);
23 return s ? SkNEW_ARGS(SkRectShaderImageFilter, (s, &cropRect)) : NULL;
26 SkRectShaderImageFilter* SkRectShaderImageFilter::Create(SkShader* s, const CropRect* cropRect) { argument
28 return s ? SkNEW_ARGS(SkRectShaderImageFilter, (s, cropRect)) : NULL;
31 SkRectShaderImageFilter::SkRectShaderImageFilter(SkShader* s, const CropRect* cropRect) argument
32 : INHERITED(0, NULL, cropRect)
39 return Create(shader.get(), &common.cropRect());
H A DSkColorFilterImageFilter.cpp19 SkImageFilter* input, const CropRect* cropRect) {
31 return SkNEW_ARGS(SkColorFilterImageFilter, (newCF, input->getInput(0), cropRect));
35 return SkNEW_ARGS(SkColorFilterImageFilter, (cf, input, cropRect));
39 SkImageFilter* input, const CropRect* cropRect)
40 : INHERITED(1, &input, cropRect), fColorFilter(SkRef(cf)) {
46 return Create(cf, common.getInput(0), &common.cropRect());
18 Create(SkColorFilter* cf, SkImageFilter* input, const CropRect* cropRect) argument
38 SkColorFilterImageFilter(SkColorFilter* cf, SkImageFilter* input, const CropRect* cropRect) argument
H A DSkOffsetImageFilter.cpp98 return Create(offset.x(), offset.y(), common.getInput(0), &common.cropRect());
107 const CropRect* cropRect)
108 : INHERITED(1, &input, cropRect) {
106 SkOffsetImageFilter(SkScalar dx, SkScalar dy, SkImageFilter* input, const CropRect* cropRect) argument
H A DSkPictureImageFilter.cpp24 SkPictureImageFilter::SkPictureImageFilter(const SkPicture* picture, const SkRect& cropRect, argument
29 , fCropRect(cropRect)
40 SkRect cropRect; local
52 buffer.readRect(&cropRect);
68 return CreateForLocalSpace(picture, cropRect, filterQuality);
70 return Create(picture, cropRect);
H A DSkDropShadowImageFilter.cpp21 const CropRect* cropRect)
22 : INHERITED(1, &input, cropRect)
43 &common.cropRect());
18 SkDropShadowImageFilter(SkScalar dx, SkScalar dy, SkScalar sigmaX, SkScalar sigmaY, SkColor color, ShadowMode shadowMode, SkImageFilter* input, const CropRect* cropRect) argument
H A DSkMergeImageFilter.cpp45 const CropRect* cropRect)
46 : INHERITED(count, filters, cropRect) {
130 return Create(common.inputs(), count, modes.get(), &common.cropRect());
132 return Create(common.inputs(), count, NULL, &common.cropRect());
43 SkMergeImageFilter(SkImageFilter* filters[], int count, const SkXfermode::Mode modes[], const CropRect* cropRect) argument
H A DSkXfermodeImageFilter.cpp25 const CropRect* cropRect)
26 : INHERITED(2, inputs, cropRect), fMode(mode) {
37 return Create(mode, common.getInput(0), common.getInput(1), &common.cropRect());
23 SkXfermodeImageFilter(SkXfermode* mode, SkImageFilter* inputs[2], const CropRect* cropRect) argument
H A DSkBlurImageFilter.cpp37 const CropRect* cropRect)
38 : INHERITED(1, &input, cropRect), fSigma(SkSize::Make(sigmaX, sigmaY)) {
45 return Create(sigmaX, sigmaY, common.getInput(0), &common.cropRect());
34 SkBlurImageFilter(SkScalar sigmaX, SkScalar sigmaY, SkImageFilter* input, const CropRect* cropRect) argument
H A DSkMatrixConvolutionImageFilter.cpp33 const CropRect* cropRect)
34 : INHERITED(1, &input, cropRect),
58 const CropRect* cropRect) {
74 input, cropRect));
100 common.getInput(0), &common.cropRect());
24 SkMatrixConvolutionImageFilter( const SkISize& kernelSize, const SkScalar* kernel, SkScalar gain, SkScalar bias, const SkIPoint& kernelOffset, TileMode tileMode, bool convolveAlpha, SkImageFilter* input, const CropRect* cropRect) argument
49 Create( const SkISize& kernelSize, const SkScalar* kernel, SkScalar gain, SkScalar bias, const SkIPoint& kernelOffset, TileMode tileMode, bool convolveAlpha, SkImageFilter* input, const CropRect* cropRect) argument
H A DSkDisplacementMapEffect.cpp168 const CropRect* cropRect) {
176 inputs, cropRect));
183 const CropRect* cropRect)
184 : INHERITED(2, inputs, cropRect)
199 return Create(xsel, ysel, scale, common.getInput(0), common.getInput(1), &common.cropRect());
163 Create(ChannelSelectorType xChannelSelector, ChannelSelectorType yChannelSelector, SkScalar scale, SkImageFilter* displacement, SkImageFilter* color, const CropRect* cropRect) argument
179 SkDisplacementMapEffect(ChannelSelectorType xChannelSelector, ChannelSelectorType yChannelSelector, SkScalar scale, SkImageFilter* inputs[2], const CropRect* cropRect) argument
H A DSkMorphologyImageFilter.cpp27 const CropRect* cropRect)
28 : INHERITED(1, &input, cropRect), fRadius(SkISize::Make(radiusX, radiusY)) {
256 return Create(width, height, common.getInput(0), &common.cropRect());
263 return Create(width, height, common.getInput(0), &common.cropRect());
24 SkMorphologyImageFilter(int radiusX, int radiusY, SkImageFilter* input, const CropRect* cropRect) argument
H A DSkLightingImageFilter.cpp299 const CropRect* cropRect)
300 : INHERITED(light, surfaceScale, input, cropRect) {}
420 SkScalar kd, SkImageFilter* input, const CropRect* cropRect);
1013 SkImageFilter* input, const CropRect* cropRect)
1014 : INHERITED(1, &input, cropRect)
1024 const CropRect* cropRect) {
1026 return SkDiffuseLightingImageFilter::Create(light, surfaceScale, kd, input, cropRect);
1034 const CropRect* cropRect) {
1036 return SkDiffuseLightingImageFilter::Create(light, surfaceScale, kd, input, cropRect);
1047 const CropRect* cropRect) {
296 SkLightingImageFilterInternal(SkLight* light, SkScalar surfaceScale, SkImageFilter* input, const CropRect* cropRect) argument
1012 SkLightingImageFilter(SkLight* light, SkScalar surfaceScale, SkImageFilter* input, const CropRect* cropRect) argument
1019 CreateDistantLitDiffuse(const SkPoint3& direction, SkColor lightColor, SkScalar surfaceScale, SkScalar kd, SkImageFilter* input, const CropRect* cropRect) argument
1029 CreatePointLitDiffuse(const SkPoint3& location, SkColor lightColor, SkScalar surfaceScale, SkScalar kd, SkImageFilter* input, const CropRect* cropRect) argument
1039 CreateSpotLitDiffuse(const SkPoint3& location, const SkPoint3& target, SkScalar specularExponent, SkScalar cutoffAngle, SkColor lightColor, SkScalar surfaceScale, SkScalar kd, SkImageFilter* input, const CropRect* cropRect) argument
1053 CreateDistantLitSpecular(const SkPoint3& direction, SkColor lightColor, SkScalar surfaceScale, SkScalar ks, SkScalar shine, SkImageFilter* input, const CropRect* cropRect) argument
1064 CreatePointLitSpecular(const SkPoint3& location, SkColor lightColor, SkScalar surfaceScale, SkScalar ks, SkScalar shine, SkImageFilter* input, const CropRect* cropRect) argument
1075 CreateSpotLitSpecular(const SkPoint3& location, const SkPoint3& target, SkScalar specularExponent, SkScalar cutoffAngle, SkColor lightColor, SkScalar surfaceScale, SkScalar ks, SkScalar shine, SkImageFilter* input, const CropRect* cropRect) argument
1100 Create(SkLight* light, SkScalar surfaceScale, SkScalar kd, SkImageFilter* input, const CropRect* cropRect) argument
1116 SkDiffuseLightingImageFilter(SkLight* light, SkScalar surfaceScale, SkScalar kd, SkImageFilter* input, const CropRect* cropRect) argument
1230 Create(SkLight* light, SkScalar surfaceScale, SkScalar ks, SkScalar shininess, SkImageFilter* input, const CropRect* cropRect) argument
1247 SkSpecularLightingImageFilter(SkLight* light, SkScalar surfaceScale, SkScalar ks, SkScalar shininess, SkImageFilter* input, const CropRect* cropRect) argument
[all...]
/external/skia/gm/
H A Ddropshadowimagefilter.cpp81 SkIRect cropRect = SkIRect::MakeXYWH(10, 10, 44, 44); local
83 c.drawRect(SkRect::Make(cropRect), paint);
122 SkImageFilter::CropRect cropRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 44, 44)),
138 SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode, NULL, &cropRect),
H A Dimagefilterscropped.cpp80 SkIRect cropRect = SkIRect::MakeXYWH(10, 10, 44, 44); local
82 c.drawRect(SkRect::Make(cropRect), paint);
144 SkImageFilter::CropRect cropRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 44, 44)), SkImageFilter::CropRect::kHasAll_CropEdge);
152 SkAutoTUnref<SkImageFilter> erodeX(SkErodeImageFilter::Create(8, 0, NULL, &cropRect));
153 SkAutoTUnref<SkImageFilter> erodeY(SkErodeImageFilter::Create(0, 8, NULL, &cropRect));
157 SkColorFilterImageFilter::Create(cf.get(), NULL, &cropRect),
158 SkBlurImageFilter::Create(1.0f, 1.0f, NULL, &cropRect),
159 SkBlurImageFilter::Create(8.0f, 0.0f, NULL, &cropRect),
160 SkBlurImageFilter::Create(0.0f, 8.0f, NULL, &cropRect),
161 SkBlurImageFilter::Create(8.0f, 8.0f, NULL, &cropRect),
[all...]
H A Doffsetimagefilter.cpp47 void drawClippedBitmap(SkCanvas* canvas, const SkBitmap& bitmap, const SkPaint& paint, SkScalar scale, const SkIRect& cropRect) { argument
64 scaleMatrix.mapRect(&cropRectFloat, SkRect::Make(cropRect));
85 SkIRect cropRect = SkIRect::MakeXYWH(i * 12, local
89 SkImageFilter::CropRect rect(SkRect::Make(cropRect));
96 drawClippedBitmap(canvas, *bitmap, paint, SK_Scalar1, cropRect);
100 SkIRect cropRect = SkIRect::MakeXYWH(0, 0, 100, 100); local
101 SkImageFilter::CropRect rect(SkRect::Make(cropRect));
105 drawClippedBitmap(canvas, fBitmap, paint, SkIntToScalar(2), cropRect);
H A Dxfermodeimagefilter.cpp184 SkIRect cropRect = SkIRect::MakeXYWH(offsets[i][0], variable
188 SkImageFilter::CropRect rect(SkRect::Make(cropRect));
/external/skia/src/core/
H A DSkImageFilter.cpp117 SkImageFilter::SkImageFilter(int inputCount, SkImageFilter** inputs, const CropRect* cropRect) argument
121 fCropRect(cropRect ? *cropRect : CropRect(SkRect(), 0x0)),
144 fCropRect = common.cropRect();
294 SkRect cropRect; local
295 ctx.ctm().mapRect(&cropRect, fCropRect.rect());
296 const SkIRect cropRectI = cropRect.roundOut();
314 SkRect cropRect; local
315 ctx.ctm().mapRect(&cropRect, fCropRect.rect());
316 const SkIRect cropRectI = cropRect
[all...]
/external/skia/tests/
H A DImageFilterTest.cpp135 static SkImageFilter* make_grayscale(SkImageFilter* input, const SkImageFilter::CropRect* cropRect) { argument
143 return SkColorFilterImageFilter::Create(filter, input, cropRect);
146 static SkImageFilter* make_blue(SkImageFilter* input, const SkImageFilter::CropRect* cropRect) { argument
149 return SkColorFilterImageFilter::Create(filter, input, cropRect);
207 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(0, 0, 100, 100));
208 SkAutoTUnref<SkImageFilter> grayWithCrop(make_grayscale(NULL, &cropRect));
278 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(20, 30, 60, 60));
293 SkColorFilterImageFilter::Create(cf.get(), input.get(), &cropRect),
296 40.0f, input.get(), input.get(), &cropRect),
297 SkBlurImageFilter::Create(SK_Scalar1, SK_Scalar1, input.get(), &cropRect),
[all...]

Completed in 5151 milliseconds