/external/skia/include/effects/ |
D | SkImageFilters.h | 71 const CropRect& cropRect = {}); 86 const CropRect& cropRect = {}); 97 const CropRect& cropRect = {}); 110 sk_sp<SkImageFilter> input, const CropRect& cropRect = {}); 113 const CropRect& cropRect = {}) { 114 return Blur(sigmaX, sigmaY, SkTileMode::kDecal, std::move(input), cropRect); 124 const CropRect& cropRect = {}); 150 const CropRect& cropRect = {}); 166 const CropRect& cropRect = {}); 182 const CropRect& cropRect = {}); [all …]
|
/external/skia/gm/ |
D | imagemakewithfilter.cpp | 60 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 …]
|
D | imagefilterscropped.cpp | 124 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 …]
|
D | displacement.cpp | 99 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 …]
|
D | animated_image_orientation.cpp | 68 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()
|
D | offsetimagefilter.cpp | 58 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()
|
/external/skqp/src/effects/imagefilters/ |
D | SkPictureImageFilter.cpp | 26 const SkRect& cropRect) { in Make() argument 27 return sk_sp<SkImageFilter>(new SkPictureImageFilter(std::move(picture), cropRect, nullptr)); in Make() 36 SkPictureImageFilter::SkPictureImageFilter(sk_sp<SkPicture> picture, const SkRect& cropRect, in SkPictureImageFilter() argument 40 , fCropRect(cropRect) in SkPictureImageFilter() 48 static sk_sp<SkImageFilter> make_localspace_filter(sk_sp<SkPicture> pic, const SkRect& cropRect, in make_localspace_filter() argument 50 SkISize dim = { SkScalarRoundToInt(cropRect.width()), SkScalarRoundToInt(cropRect.height()) }; in make_localspace_filter() 53 return SkImageSource::Make(img, cropRect, cropRect, fq); in make_localspace_filter() 58 SkRect cropRect; in CreateProc() local 63 buffer.readRect(&cropRect); in CreateProc() 69 return make_localspace_filter(std::move(picture), cropRect, in CreateProc() [all …]
|
D | SkPaintImageFilter.cpp | 18 const CropRect* cropRect) { in Make() argument 19 return sk_sp<SkImageFilter>(new SkPaintImageFilter(paint, cropRect)); in Make() 22 SkPaintImageFilter::SkPaintImageFilter(const SkPaint& paint, const CropRect* cropRect) in SkPaintImageFilter() argument 23 : INHERITED(nullptr, 0, cropRect) in SkPaintImageFilter() 31 return SkPaintImageFilter::Make(paint, &common.cropRect()); in CreateProc()
|
D | SkColorFilterImageFilter.cpp | 21 const CropRect* cropRect) { in Make() argument 34 cropRect)); in Make() 40 cropRect)); in Make() 45 const CropRect* cropRect) in SkColorFilterImageFilter() argument 46 : INHERITED(&input, 1, cropRect) in SkColorFilterImageFilter() 53 return Make(std::move(cf), common.getInput(0), &common.cropRect()); in CreateProc()
|
D | SkMergeImageFilter.cpp | 19 const CropRect* cropRect) { in Make() argument 20 return sk_sp<SkImageFilter>(new SkMergeImageFilter(filters, count, cropRect)); in Make() 26 const CropRect* cropRect) in SkMergeImageFilter() argument 27 : INHERITED(filters, count, cropRect) { in SkMergeImageFilter() 117 return Make(common.inputs(), common.inputCount(), &common.cropRect()); in CreateProc()
|
/external/skqp/gm/ |
D | imagefilterscropped.cpp | 119 SkImageFilter::CropRect cropRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 44, 44)), in onDraw() local 130 sk_sp<SkImageFilter> erodeX(SkErodeImageFilter::Make(8, 0, nullptr, &cropRect)); in onDraw() 131 sk_sp<SkImageFilter> erodeY(SkErodeImageFilter::Make(0, 8, nullptr, &cropRect)); in onDraw() 135 SkColorFilterImageFilter::Make(cf, nullptr, &cropRect), in onDraw() 136 SkBlurImageFilter::Make(0.0f, 0.0f, nullptr, &cropRect), in onDraw() 137 SkBlurImageFilter::Make(1.0f, 1.0f, nullptr, &cropRect), in onDraw() 138 SkBlurImageFilter::Make(8.0f, 0.0f, nullptr, &cropRect), in onDraw() 139 SkBlurImageFilter::Make(0.0f, 8.0f, nullptr, &cropRect), in onDraw() 140 SkBlurImageFilter::Make(8.0f, 8.0f, nullptr, &cropRect), in onDraw() 141 SkErodeImageFilter::Make(1, 1, nullptr, &cropRect), in onDraw() [all …]
|
D | displacement.cpp | 103 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(30, 30, 40, 40)); in onDraw() local 107 0.0f, displ, nullptr, &cropRect)); in onDraw() 112 16.0f, displ, nullptr, &cropRect)); in onDraw() 117 32.0f, displ, nullptr, &cropRect)); in onDraw() 122 48.0f, displ, nullptr, &cropRect)); in onDraw() 127 64.0f, displ, nullptr, &cropRect)); in onDraw() 133 40.0f, displ, nullptr, &cropRect)); in onDraw() 138 40.0f, displ, nullptr, &cropRect)); in onDraw() 143 40.0f, displ, nullptr, &cropRect)); in onDraw() 148 40.0f, displ, nullptr, &cropRect)); in onDraw() [all …]
|
D | offsetimagefilter.cpp | 51 SkIRect cropRect = SkIRect::MakeXYWH(i * 12, in onDraw() local 55 SkImageFilter::CropRect rect(SkRect::Make(cropRect)); in onDraw() 60 DrawClippedImage(canvas, image.get(), paint, 1, cropRect); in onDraw() 64 SkIRect cropRect = SkIRect::MakeXYWH(0, 0, 100, 100); in onDraw() local 65 SkImageFilter::CropRect rect(SkRect::Make(cropRect)); in onDraw() 67 DrawClippedImage(canvas, fBitmap.get(), paint, 2, cropRect); in onDraw() 71 SkScalar scale, const SkIRect& cropRect) { in DrawClippedImage() argument 82 SkMatrix::MakeScale(scale, scale).mapRect(&cropRectFloat, SkRect::Make(cropRect)); in DrawClippedImage()
|
/external/skqp/include/effects/ |
D | SkMorphologyImageFilter.h | 43 const CropRect* cropRect); 63 const CropRect* cropRect = nullptr); 73 const CropRect* cropRect) in SK_FLATTENABLE_HOOKS() 74 : INHERITED(radiusX, radiusY, input, cropRect) {} in SK_FLATTENABLE_HOOKS() 84 const CropRect* cropRect = nullptr); 93 sk_sp<SkImageFilter> input, const CropRect* cropRect) in SK_FLATTENABLE_HOOKS() 94 : INHERITED(radiusX, radiusY, input, cropRect) {} in SK_FLATTENABLE_HOOKS()
|
D | SkLightingImageFilter.h | 22 sk_sp<SkImageFilter> input, const CropRect* cropRect = nullptr); 25 sk_sp<SkImageFilter> input, const CropRect* cropRect = nullptr); 29 sk_sp<SkImageFilter> input, const CropRect* cropRect = nullptr); 32 SkScalar shininess, sk_sp<SkImageFilter> input, const CropRect* cropRect = nullptr); 35 SkScalar shininess, sk_sp<SkImageFilter> input, const CropRect* cropRect = nullptr); 39 SkScalar shininess, sk_sp<SkImageFilter> input, const CropRect* cropRect = nullptr); 48 const CropRect* cropRect);
|
D | SkMergeImageFilter.h | 17 const CropRect* cropRect = nullptr); 20 const CropRect* cropRect = nullptr) { 25 return Make(array, 2, cropRect); 38 SkMergeImageFilter(sk_sp<SkImageFilter>* const filters, int count, const CropRect* cropRect);
|
/external/skia/fuzz/ |
D | FuzzCanvas.cpp | 463 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() 529 SkIRect cropRect; in make_fuzz_imageFilter() local 531 fuzz->next(&cropRect); in make_fuzz_imageFilter() [all …]
|
/external/skqp/fuzz/ |
D | FuzzCanvas.cpp | 490 SkImageFilter::CropRect cropRect; in make_fuzz_lighting_imagefilter() local 494 fuzz->next(&cropRect); in make_fuzz_lighting_imagefilter() 502 useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter() 508 useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter() 514 std::move(input), useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter() 520 useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter() 526 useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter() 533 std::move(input), useCropRect ? &cropRect : nullptr); in make_fuzz_lighting_imagefilter() 556 SkImageFilter::CropRect cropRect; in make_fuzz_imageFilter() local 558 fuzz->next(&cropRect); in make_fuzz_imageFilter() [all …]
|
/external/skia/src/effects/imagefilters/ |
D | SkDropShadowImageFilter.cpp | 22 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()
|
D | SkColorFilterImageFilter.cpp | 23 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()
|
D | SkMergeImageFilter.cpp | 22 const SkRect* cropRect) in SkMergeImageFilter() argument 23 : INHERITED(filters, count, cropRect) { in SkMergeImageFilter() 40 const CropRect& cropRect) { in Merge() argument 41 return sk_sp<SkImageFilter>(new SkMergeImageFilter(filters, count, cropRect)); in Merge() 55 return SkImageFilters::Merge(common.inputs(), common.inputCount(), common.cropRect()); in CreateProc()
|
D | SkShaderImageFilter.cpp | 48 sk_sp<SkImageFilter> SkImageFilters::Paint(const SkPaint& paint, const CropRect& cropRect) { in Paint() argument 49 return SkShaderImageFilter::Make(paint, cropRect); in Paint() 53 const CropRect& cropRect) { in Shader() argument 57 return SkShaderImageFilter::Make(paint, cropRect); in Shader() 71 return SkShaderImageFilter::Make(paint, common.cropRect()); in CreateProc()
|
D | SkPictureImageFilter.cpp | 23 SkPictureImageFilter(sk_sp<SkPicture> picture, const SkRect& cropRect) in SkPictureImageFilter() argument 26 , fCropRect(cropRect) {} in SkPictureImageFilter() 66 SkRect cropRect; in CreateProc() local 71 buffer.readRect(&cropRect); in CreateProc() 73 return SkImageFilters::Picture(std::move(picture), cropRect); in CreateProc()
|
/external/angle/src/tests/gl_tests/gles1/ |
D | TextureParameterTest.cpp | 100 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/ |
D | ImageFilterTest.cpp | 116 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 …]
|