Home
last modified time | relevance | path

Searched refs:SkImageFilter (Results 1 – 25 of 290) sorted by relevance

12345678910>>...12

/external/skia/include/effects/
DSkImageFilters.h69 static sk_sp<SkImageFilter> AlphaThreshold(const SkRegion& region, SkScalar innerMin,
70 SkScalar outerMax, sk_sp<SkImageFilter> input,
83 static sk_sp<SkImageFilter> Arithmetic(SkScalar k1, SkScalar k2, SkScalar k3, SkScalar k4,
84 bool enforcePMColor, sk_sp<SkImageFilter> background,
85 sk_sp<SkImageFilter> foreground,
95 static sk_sp<SkImageFilter> Blend(SkBlendMode mode, sk_sp<SkImageFilter> background,
96 sk_sp<SkImageFilter> foreground = nullptr,
109 static sk_sp<SkImageFilter> Blur(SkScalar sigmaX, SkScalar sigmaY, SkTileMode tileMode,
110 sk_sp<SkImageFilter> input, const CropRect& cropRect = {});
112 static sk_sp<SkImageFilter> Blur(SkScalar sigmaX, SkScalar sigmaY, sk_sp<SkImageFilter> input,
[all …]
/external/skqp/src/core/
DSkImageFilter.cpp32 void SkImageFilter::CropRect::applyTo(const SkIRect& imageBounds, in applyTo()
82 bool SkImageFilter::Common::unflatten(SkReadBuffer& buffer, int expectedCount) { in unflatten()
111 void SkImageFilter::init(sk_sp<SkImageFilter> const* inputs, in init()
126 SkImageFilter::SkImageFilter(sk_sp<SkImageFilter> const* inputs, in SkImageFilter() function in SkImageFilter
134 SkImageFilter::~SkImageFilter() { in ~SkImageFilter()
138 SkImageFilter::SkImageFilter(int inputCount, SkReadBuffer& buffer) in SkImageFilter() function in SkImageFilter
148 void SkImageFilter::flatten(SkWriteBuffer& buffer) const { in flatten()
151 SkImageFilter* input = this->getInput(i); in flatten()
161 sk_sp<SkSpecialImage> SkImageFilter::filterImage(SkSpecialImage* src, const Context& context, in filterImage()
196 SkIRect SkImageFilter::filterBounds(const SkIRect& src, const SkMatrix& ctm, in filterBounds()
[all …]
DSkLocalMatrixImageFilter.h18 class SkLocalMatrixImageFilter : public SkImageFilter {
20 static sk_sp<SkImageFilter> Make(const SkMatrix& localM, sk_sp<SkImageFilter> input);
26 sk_sp<SkImageFilter> onMakeColorSpace(SkColorSpaceXformer*) const override;
33 SkLocalMatrixImageFilter(const SkMatrix& localM, sk_sp<SkImageFilter> input);
37 typedef SkImageFilter INHERITED;
/external/skqp/include/effects/
DSkLightingImageFilter.h18 class SK_API SkLightingImageFilter : public SkImageFilter {
20 static sk_sp<SkImageFilter> MakeDistantLitDiffuse(const SkPoint3& direction,
22 sk_sp<SkImageFilter> input, const CropRect* cropRect = nullptr);
23 static sk_sp<SkImageFilter> MakePointLitDiffuse(const SkPoint3& location,
25 sk_sp<SkImageFilter> input, const CropRect* cropRect = nullptr);
26 static sk_sp<SkImageFilter> MakeSpotLitDiffuse(const SkPoint3& location,
29 sk_sp<SkImageFilter> input, const CropRect* cropRect = nullptr);
30 static sk_sp<SkImageFilter> MakeDistantLitSpecular(const SkPoint3& direction,
32 SkScalar shininess, sk_sp<SkImageFilter> input, const CropRect* cropRect = nullptr);
33 static sk_sp<SkImageFilter> MakePointLitSpecular(const SkPoint3& location,
[all …]
DSkMergeImageFilter.h14 class SK_API SkMergeImageFilter : public SkImageFilter {
16 static sk_sp<SkImageFilter> Make(sk_sp<SkImageFilter>* const filters, int count,
19 static sk_sp<SkImageFilter> Make(sk_sp<SkImageFilter> first, sk_sp<SkImageFilter> second,
21 sk_sp<SkImageFilter> array[] = {
32 sk_sp<SkImageFilter> onMakeColorSpace(SkColorSpaceXformer*) const override;
38 SkMergeImageFilter(sk_sp<SkImageFilter>* const filters, int count, const CropRect* cropRect);
40 typedef SkImageFilter INHERITED;
DSkDisplacementMapEffect.h13 class SK_API SkDisplacementMapEffect : public SkImageFilter {
27 static sk_sp<SkImageFilter> Make(ChannelSelectorType xChannelSelector,
30 sk_sp<SkImageFilter> displacement,
31 sk_sp<SkImageFilter> color,
38 sk_sp<SkImageFilter> onMakeColorSpace(SkColorSpaceXformer*) const override;
48 SkScalar scale, sk_sp<SkImageFilter> inputs[2],
58 typedef SkImageFilter INHERITED;
59 const SkImageFilter* getDisplacementInput() const { return getInput(0); } in getDisplacementInput()
60 const SkImageFilter* getColorInput() const { return getInput(1); } in getColorInput()
DSkMorphologyImageFilter.h17 class SK_API SkMorphologyImageFilter : public SkImageFilter {
42 sk_sp<SkImageFilter> input,
47 sk_sp<SkImageFilter> onMakeColorSpace(SkColorSpaceXformer*) const override;
55 typedef SkImageFilter INHERITED;
61 static sk_sp<SkImageFilter> Make(int radiusX, int radiusY,
62 sk_sp<SkImageFilter> input,
72 sk_sp<SkImageFilter> input, in SK_FLATTENABLE_HOOKS()
82 static sk_sp<SkImageFilter> Make(int radiusX, int radiusY,
83 sk_sp<SkImageFilter> input,
93 sk_sp<SkImageFilter> input, const CropRect* cropRect) in SK_FLATTENABLE_HOOKS()
DSkComposeImageFilter.h14 class SK_API SkComposeImageFilter : public SkImageFilter {
16 static sk_sp<SkImageFilter> Make(sk_sp<SkImageFilter> outer, sk_sp<SkImageFilter> inner);
21 explicit SkComposeImageFilter(sk_sp<SkImageFilter> inputs[2]) : INHERITED(inputs, 2, nullptr) { in SkComposeImageFilter()
27 sk_sp<SkImageFilter> onMakeColorSpace(SkColorSpaceXformer*) const override;
35 typedef SkImageFilter INHERITED;
DSkXfermodeImageFilter.h21 static sk_sp<SkImageFilter> Make(SkBlendMode, sk_sp<SkImageFilter> background,
22 sk_sp<SkImageFilter> foreground,
23 const SkImageFilter::CropRect* cropRect);
24 static sk_sp<SkImageFilter> Make(SkBlendMode mode, sk_sp<SkImageFilter> background) { in Make()
/external/skqp/tests/
DImageFilterTest.cpp53 class MatrixTestImageFilter : public SkImageFilter {
55 static sk_sp<SkImageFilter> Make(skiatest::Reporter* reporter, in Make()
57 return sk_sp<SkImageFilter>(new MatrixTestImageFilter(reporter, expectedMatrix)); in Make()
67 sk_sp<SkImageFilter> onMakeColorSpace(SkColorSpaceXformer*) const override { in onMakeColorSpace()
87 typedef SkImageFilter INHERITED;
90 class FailImageFilter : public SkImageFilter {
92 FailImageFilter() : SkImageFilter(nullptr, 0, nullptr) { } in FailImageFilter()
99 sk_sp<SkImageFilter> onMakeColorSpace(SkColorSpaceXformer*) const override { in onMakeColorSpace()
106 typedef SkImageFilter INHERITED;
141 FilterList(sk_sp<SkImageFilter> input, const SkImageFilter::CropRect* cropRect = nullptr) { in FilterList()
[all …]
/external/skqp/include/core/
DSkImageFilter.h37 class SK_API SkImageFilter : public SkFlattenable {
211 SkImageFilter* getInput(int i) const { in getInput()
239 sk_sp<SkImageFilter> makeWithLocalMatrix(const SkMatrix& matrix) const;
251 static sk_sp<SkImageFilter> MakeMatrixFilter(const SkMatrix& matrix,
253 sk_sp<SkImageFilter> input);
265 static sk_sp<SkImageFilter> Deserialize(const void* data, size_t size,
267 return sk_sp<SkImageFilter>(static_cast<SkImageFilter*>(
287 sk_sp<SkImageFilter>* inputs() { return fInputs.begin(); } in inputs()
289 sk_sp<SkImageFilter> getInput(int index) { return fInputs[index]; } in getInput()
294 SkSTArray<2, sk_sp<SkImageFilter>, true> fInputs;
[all …]
/external/skqp/gm/
Dimagefiltersgraph.cpp48 sk_sp<SkImageFilter> bitmapSource(SkImageSource::Make(fImage)); in onDraw()
51 sk_sp<SkImageFilter> blur(SkBlurImageFilter::Make(4.0f, 4.0f, std::move(bitmapSource))); in onDraw()
52 sk_sp<SkImageFilter> erode(SkErodeImageFilter::Make(4, 4, blur)); in onDraw()
53 sk_sp<SkImageFilter> color(SkColorFilterImageFilter::Make(std::move(cf), in onDraw()
55 sk_sp<SkImageFilter> merge(SkMergeImageFilter::Make(blur, color)); in onDraw()
63 sk_sp<SkImageFilter> morph(SkDilateImageFilter::Make(5, 5, nullptr)); in onDraw()
71 sk_sp<SkImageFilter> colorMorph(SkColorFilterImageFilter::Make(std::move(matrixFilter), in onDraw()
86 sk_sp<SkImageFilter> matrixFilter(SkColorFilterImageFilter::Make(std::move(matrixCF), in onDraw()
88 sk_sp<SkImageFilter> offsetFilter(SkOffsetImageFilter::Make(10.0f, 10.f, in onDraw()
99 sk_sp<SkImageFilter> blur(SkBlurImageFilter::Make(SkIntToScalar(10), in onDraw()
[all …]
Dimagefiltersbase.cpp22 class FailImageFilter : public SkImageFilter {
24 static sk_sp<SkImageFilter> Make() { in Make()
25 return sk_sp<SkImageFilter>(new FailImageFilter); in Make()
36 sk_sp<SkImageFilter> onMakeColorSpace(SkColorSpaceXformer*) const override { in onMakeColorSpace()
42 typedef SkImageFilter INHERITED;
50 class IdentityImageFilter : public SkImageFilter {
52 static sk_sp<SkImageFilter> Make(sk_sp<SkImageFilter> input) { in Make()
53 return sk_sp<SkImageFilter>(new IdentityImageFilter(std::move(input))); in Make()
64 sk_sp<SkImageFilter> onMakeColorSpace(SkColorSpaceXformer*) const override { in onMakeColorSpace()
69 IdentityImageFilter(sk_sp<SkImageFilter> input) : INHERITED(&input, 1, nullptr) {} in IdentityImageFilter()
[all …]
Dcolorfilterimagefilter.cpp92 static sk_sp<SkImageFilter> make_blur(float amount, sk_sp<SkImageFilter> input) { in make_blur()
96 static sk_sp<SkImageFilter> make_brightness(float amount, sk_sp<SkImageFilter> input) { in make_brightness()
100 static sk_sp<SkImageFilter> make_grayscale(sk_sp<SkImageFilter> input) { in make_grayscale()
104 static sk_sp<SkImageFilter> make_mode_blue(sk_sp<SkImageFilter> input) { in make_mode_blue()
126 sk_sp<SkImageFilter> dim(make_brightness(-brightness, nullptr));
127 sk_sp<SkImageFilter> bright(make_brightness(brightness, std::move(dim)));
135 sk_sp<SkImageFilter> brightness(make_brightness(0.9f, nullptr));
136 sk_sp<SkImageFilter> grayscale(make_grayscale(std::move(brightness)));
142 sk_sp<SkImageFilter> grayscale(make_grayscale(nullptr));
143 sk_sp<SkImageFilter> brightness(make_brightness(0.9f, std::move(grayscale)));
[all …]
Dimagefilterscropped.cpp24 static void draw_paint(SkCanvas* canvas, const SkRect& r, sk_sp<SkImageFilter> imf) { in draw_paint()
34 static void draw_path(SkCanvas* canvas, const SkRect& r, sk_sp<SkImageFilter> imf) { in draw_path()
42 static void draw_text(SkCanvas* canvas, const SkRect& r, sk_sp<SkImageFilter> imf) { in draw_text()
51 static void draw_bitmap(SkCanvas* canvas, const SkRect& r, sk_sp<SkImageFilter> imf) { in draw_bitmap()
113 void (*drawProc[])(SkCanvas*, const SkRect&, sk_sp<SkImageFilter>) = { in onDraw()
119 SkImageFilter::CropRect cropRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 44, 44)), in onDraw()
120 SkImageFilter::CropRect::kHasAll_CropEdge); in onDraw()
121 SkImageFilter::CropRect bogusRect(SkRect::Make(SkIRect::MakeXYWH(-100, -100, 10, 10)), in onDraw()
122 SkImageFilter::CropRect::kHasAll_CropEdge); in onDraw()
124 sk_sp<SkImageFilter> offset(SkOffsetImageFilter::Make(SkIntToScalar(-10), in onDraw()
[all …]
Ddropshadowimagefilter.cpp17 static void draw_paint(SkCanvas* canvas, const SkRect& r, sk_sp<SkImageFilter> imf) { in draw_paint()
27 static void draw_path(SkCanvas* canvas, const SkRect& r, sk_sp<SkImageFilter> imf) { in draw_path()
38 static void draw_text(SkCanvas* canvas, const SkRect& r, sk_sp<SkImageFilter> imf) { in draw_text()
51 static void draw_bitmap(SkCanvas* canvas, const SkRect& r, sk_sp<SkImageFilter> imf) { in draw_bitmap()
73 void (*drawProc[])(SkCanvas*, const SkRect&, sk_sp<SkImageFilter>) = {
79 sk_sp<SkImageFilter> cfif(SkColorFilterImageFilter::Make(std::move(cf), nullptr));
80 SkImageFilter::CropRect cropRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 44, 44)),
81 SkImageFilter::CropRect::kHasAll_CropEdge);
82 SkImageFilter::CropRect bogusRect(SkRect::Make(SkIRect::MakeXYWH(-100, -100, 10, 10)),
83 SkImageFilter::CropRect::kHasAll_CropEdge);
[all …]
/external/skia/tests/
DImageFilterTest.cpp39 static sk_sp<SkImageFilter> Make(skiatest::Reporter* reporter, in Make()
41 return sk_sp<SkImageFilter>(new MatrixTestImageFilter(reporter, expectedMatrix)); in Make()
116 FilterList(sk_sp<SkImageFilter> input, const SkIRect* cropRect = nullptr) { in FilterList()
128 sk_sp<SkImageFilter> gradientSource(SkImageFilters::Image(std::move(gradientImage))); in FilterList()
164 sk_sp<SkImageFilter> shaderFilterLeft(SkImageFilters::Shader(greenColorShader, in FilterList()
167 sk_sp<SkImageFilter> shaderFilterRight(SkImageFilters::Shader(greenColorShader, in FilterList()
195 sk_sp<SkImageFilter> blur(SkImageFilters::Blur(kBlurSigma, kBlurSigma, input)); in FilterList()
208 sk_sp<SkImageFilter> pictureFilter(SkImageFilters::Picture(std::move(picture))); in FilterList()
214 sk_sp<SkImageFilter> paintFilter(SkImageFilters::Shader( in FilterList()
224 SkImageFilter* getFilter(int index) const { return fFilters[index].fFilter.get(); } in getFilter()
[all …]
/external/skia/gm/
Dcolorfilterimagefilter.cpp101 static sk_sp<SkImageFilter> make_blur(float amount, sk_sp<SkImageFilter> input) { in make_blur()
105 static sk_sp<SkImageFilter> make_brightness(float amount, sk_sp<SkImageFilter> input) { in make_brightness()
109 static sk_sp<SkImageFilter> make_grayscale(sk_sp<SkImageFilter> input) { in make_grayscale()
113 static sk_sp<SkImageFilter> make_mode_blue(sk_sp<SkImageFilter> input) { in make_mode_blue()
135 sk_sp<SkImageFilter> dim(make_brightness(-brightness, nullptr));
136 sk_sp<SkImageFilter> bright(make_brightness(brightness, std::move(dim)));
144 sk_sp<SkImageFilter> brightness(make_brightness(0.9f, nullptr));
145 sk_sp<SkImageFilter> grayscale(make_grayscale(std::move(brightness)));
151 sk_sp<SkImageFilter> grayscale(make_grayscale(nullptr));
152 sk_sp<SkImageFilter> brightness(make_brightness(0.9f, std::move(grayscale)));
[all …]
Dimagefiltersgraph.cpp47 sk_sp<SkImageFilter> bitmapSource(SkImageFilters::Image(fImage)); in onDraw()
50 sk_sp<SkImageFilter> blur(SkImageFilters::Blur(4.0f, 4.0f, std::move(bitmapSource))); in onDraw()
51 sk_sp<SkImageFilter> erode(SkImageFilters::Erode(4, 4, blur)); in onDraw()
52 sk_sp<SkImageFilter> color(SkImageFilters::ColorFilter(std::move(cf), in onDraw()
54 sk_sp<SkImageFilter> merge(SkImageFilters::Merge(blur, color)); in onDraw()
62 sk_sp<SkImageFilter> morph(SkImageFilters::Dilate(5, 5, nullptr)); in onDraw()
70 sk_sp<SkImageFilter> colorMorph(SkImageFilters::ColorFilter(std::move(matrixFilter), in onDraw()
85 sk_sp<SkImageFilter> matrixFilter(SkImageFilters::ColorFilter(std::move(matrixCF), in onDraw()
87 sk_sp<SkImageFilter> offsetFilter(SkImageFilters::Offset(10.0f, 10.f, matrixFilter)); in onDraw()
97 sk_sp<SkImageFilter> blur(SkImageFilters::Blur(10, 10, nullptr)); in onDraw()
[all …]
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()
69 static sk_sp<SkImageFilter> blur_filter_factory(sk_sp<SkImage> auxImage, const SkIRect* cropRect) { in blur_filter_factory()
73 static sk_sp<SkImageFilter> drop_shadow_factory(sk_sp<SkImage> auxImage, const SkIRect* cropRect) { in drop_shadow_factory()
77 static sk_sp<SkImageFilter> offset_factory(sk_sp<SkImage> auxImage, const SkIRect* cropRect) { in offset_factory()
81 static sk_sp<SkImageFilter> dilate_factory(sk_sp<SkImage> auxImage, const SkIRect* cropRect) { in dilate_factory()
85 static sk_sp<SkImageFilter> erode_factory(sk_sp<SkImage> auxImage, const SkIRect* cropRect) { in erode_factory()
89 static sk_sp<SkImageFilter> displacement_factory(sk_sp<SkImage> auxImage, const SkIRect* cropRect) { in displacement_factory()
90 sk_sp<SkImageFilter> displacement = SkImageFilters::Image(std::move(auxImage)); in displacement_factory()
95 static sk_sp<SkImageFilter> arithmetic_factory(sk_sp<SkImage> auxImage, const SkIRect* cropRect) { in arithmetic_factory()
[all …]
/external/skia/include/core/
DSkImageFilter.h30 class SK_API SkImageFilter : public SkFlattenable {
82 const SkImageFilter* getInput(int i) const;
94 sk_sp<SkImageFilter> makeWithLocalMatrix(const SkMatrix& matrix) const;
104 static sk_sp<SkImageFilter> Deserialize(const void* data, size_t size,
106 return sk_sp<SkImageFilter>(static_cast<SkImageFilter*>(
112 sk_sp<SkImageFilter> refMe() const { in refMe()
113 return sk_ref_sp(const_cast<SkImageFilter*>(this)); in refMe()
/external/skia/modules/svg/include/
DSkSVGFeLighting.h35 sk_sp<SkImageFilter> onMakeImageFilter(const SkSVGRenderContext&,
38 virtual sk_sp<SkImageFilter> makeDistantLight(const SkSVGRenderContext&,
42 virtual sk_sp<SkImageFilter> makePointLight(const SkSVGRenderContext&,
46 virtual sk_sp<SkImageFilter> makeSpotLight(const SkSVGRenderContext&,
74 sk_sp<SkImageFilter> makeDistantLight(const SkSVGRenderContext&,
78 sk_sp<SkImageFilter> makePointLight(const SkSVGRenderContext&,
82 sk_sp<SkImageFilter> makeSpotLight(const SkSVGRenderContext&,
103 sk_sp<SkImageFilter> makeDistantLight(const SkSVGRenderContext&,
107 sk_sp<SkImageFilter> makePointLight(const SkSVGRenderContext&,
111 sk_sp<SkImageFilter> makeSpotLight(const SkSVGRenderContext&,
DSkSVGFilterContext.h17 class SkImageFilter; variable
35 …void registerResult(const SkSVGStringType&, const sk_sp<SkImageFilter>&, const SkRect&, SkSVGColor…
37 void setPreviousResult(const sk_sp<SkImageFilter>&, const SkRect&, SkSVGColorspace);
44 sk_sp<SkImageFilter> resolveInput(const SkSVGRenderContext&, const SkSVGFeInputType&) const;
46 …sk_sp<SkImageFilter> resolveInput(const SkSVGRenderContext&, const SkSVGFeInputType&, SkSVGColorsp…
50 sk_sp<SkImageFilter> fImageFilter;
57 std::tuple<sk_sp<SkImageFilter>, SkSVGColorspace> getInput(const SkSVGRenderContext&,
/external/skqp/src/effects/imagefilters/
DSkComposeImageFilter.cpp15 sk_sp<SkImageFilter> SkComposeImageFilter::Make(sk_sp<SkImageFilter> outer, in Make()
16 sk_sp<SkImageFilter> inner) { in Make()
23 sk_sp<SkImageFilter> inputs[2] = { std::move(outer), std::move(inner) }; in Make()
24 return sk_sp<SkImageFilter>(new SkComposeImageFilter(inputs)); in Make()
28 SkImageFilter* outer = this->getInput(0); in computeFastBounds()
29 SkImageFilter* inner = this->getInput(1); in computeFastBounds()
66 sk_sp<SkImageFilter> SkComposeImageFilter::onMakeColorSpace(SkColorSpaceXformer* xformer) const { in onMakeColorSpace()
79 SkImageFilter* outer = this->getInput(0); in onFilterBounds()
80 SkImageFilter* inner = this->getInput(1); in onFilterBounds()
/external/skia/src/effects/imagefilters/
DSkComposeImageFilter.cpp18 explicit SkComposeImageFilter(sk_sp<SkImageFilter> inputs[2]) in SkComposeImageFilter()
41 sk_sp<SkImageFilter> SkImageFilters::Compose(sk_sp<SkImageFilter> outer, in Compose()
42 sk_sp<SkImageFilter> inner) { in Compose()
49 sk_sp<SkImageFilter> inputs[2] = { std::move(outer), std::move(inner) }; in Compose()
50 return sk_sp<SkImageFilter>(new SkComposeImageFilter(inputs)); in Compose()
67 const SkImageFilter* outer = this->getInput(0); in computeFastBounds()
68 const SkImageFilter* inner = this->getInput(1); in computeFastBounds()
115 const SkImageFilter* outer = this->getInput(0); in onFilterBounds()
116 const SkImageFilter* inner = this->getInput(1); in onFilterBounds()

12345678910>>...12