Home
last modified time | relevance | path

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

12345678910>>...12

/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 …]
/external/skia/src/core/
DSkImageFilter.cpp35 void SkImageFilter::CropRect::applyTo(const SkIRect& imageBounds, in applyTo()
85 bool SkImageFilter::Common::unflatten(SkReadBuffer& buffer, int expectedCount) { in unflatten()
114 void SkImageFilter::init(sk_sp<SkImageFilter> const* inputs, in init()
129 SkImageFilter::SkImageFilter(sk_sp<SkImageFilter> const* inputs, in SkImageFilter() function in SkImageFilter
137 SkImageFilter::~SkImageFilter() { in ~SkImageFilter()
141 SkImageFilter::SkImageFilter(int inputCount, SkReadBuffer& buffer) in SkImageFilter() function in SkImageFilter
151 void SkImageFilter::flatten(SkWriteBuffer& buffer) const { in flatten()
154 SkImageFilter* input = this->getInput(i); in flatten()
164 sk_sp<SkSpecialImage> SkImageFilter::filterImage(SkSpecialImage* src, const Context& context, in filterImage()
199 SkIRect SkImageFilter::filterBounds(const SkIRect& src, const SkMatrix& ctm, in filterBounds()
[all …]
/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/skia/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/skia/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;
/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()
/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/skia/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 …]
/external/skia/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 …]
/external/skia/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/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()

12345678910>>...12