Home
last modified time | relevance | path

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

123456

/external/skia/src/core/
DSkImageFilter.cpp31 void SkImageFilter::CropRect::toString(SkString* str) const { in toString()
61 void SkImageFilter::CropRect::applyTo(const SkIRect& imageBounds, in applyTo()
112 void SkImageFilter::Common::allocInputs(int count) { in allocInputs()
116 bool SkImageFilter::Common::unflatten(SkReadBuffer& buffer, int expectedCount) { in unflatten()
129 fInputs[i] = sk_sp<SkImageFilter>(buffer.readImageFilter()); in unflatten()
152 void SkImageFilter::init(sk_sp<SkImageFilter>* inputs, in init()
167 SkImageFilter::SkImageFilter(sk_sp<SkImageFilter>* inputs, in SkImageFilter() function in SkImageFilter
175 SkImageFilter::~SkImageFilter() { in ~SkImageFilter()
179 SkImageFilter::SkImageFilter(int inputCount, SkReadBuffer& buffer) in SkImageFilter() function in SkImageFilter
189 void SkImageFilter::flatten(SkWriteBuffer& buffer) const { in flatten()
[all …]
DSkLocalMatrixImageFilter.h17 class SkLocalMatrixImageFilter : public SkImageFilter {
19 static sk_sp<SkImageFilter> Make(const SkMatrix& localM, sk_sp<SkImageFilter> input);
31 SkLocalMatrixImageFilter(const SkMatrix& localM, sk_sp<SkImageFilter> input);
35 typedef SkImageFilter INHERITED;
DSkMatrixImageFilter.h19 class SK_API SkMatrixImageFilter : public SkImageFilter {
28 static sk_sp<SkImageFilter> Make(const SkMatrix& transform,
30 sk_sp<SkImageFilter> input);
40 sk_sp<SkImageFilter> input);
50 typedef SkImageFilter INHERITED;
/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 …]
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()
30 static sk_sp<SkImageFilter> MakeArithmetic(float k1, float k2, float k3, float k4, in MakeArithmetic()
31 bool enforcePMColor, sk_sp<SkImageFilter> background, in MakeArithmetic()
32 sk_sp<SkImageFilter> foreground, in MakeArithmetic()
33 const SkImageFilter::CropRect* cropRect) { in MakeArithmetic()
37 static sk_sp<SkImageFilter> MakeArithmetic(float k1, float k2, float k3, float k4, in MakeArithmetic()
39 sk_sp<SkImageFilter> background) { in MakeArithmetic()
DSkMergeImageFilter.h14 class SK_API SkMergeImageFilter : public SkImageFilter {
18 static sk_sp<SkImageFilter> Make(sk_sp<SkImageFilter> first, sk_sp<SkImageFilter> second,
20 static sk_sp<SkImageFilter> MakeN(sk_sp<SkImageFilter>[], int count, const SkBlendMode[],
33 SkMergeImageFilter(sk_sp<SkImageFilter> filters[], int count, const SkBlendMode modes[],
45 typedef SkImageFilter INHERITED;
DSkDisplacementMapEffect.h13 class SK_API SkDisplacementMapEffect : public SkImageFilter {
25 static sk_sp<SkImageFilter> Make(ChannelSelectorType xChannelSelector,
28 sk_sp<SkImageFilter> displacement,
29 sk_sp<SkImageFilter> color,
48 SkScalar scale, sk_sp<SkImageFilter> inputs[2],
56 typedef SkImageFilter INHERITED;
57 const SkImageFilter* getDisplacementInput() const { return getInput(0); } in getDisplacementInput()
58 const SkImageFilter* getColorInput() const { return getInput(1); } in getColorInput()
DSkMorphologyImageFilter.h16 class SK_API SkMorphologyImageFilter : public SkImageFilter {
40 sk_sp<SkImageFilter> input,
52 typedef SkImageFilter INHERITED;
58 static sk_sp<SkImageFilter> Make(int radiusX, int radiusY,
59 sk_sp<SkImageFilter> input,
70 sk_sp<SkImageFilter> input, in SkDilateImageFilter()
80 static sk_sp<SkImageFilter> Make(int radiusX, int radiusY,
81 sk_sp<SkImageFilter> input,
92 sk_sp<SkImageFilter> input, const CropRect* cropRect) in SkErodeImageFilter()
DSkArithmeticImageFilter.h15 static sk_sp<SkImageFilter> Make(float k1, float k2, float k3, float k4, bool enforcePMColor,
16 sk_sp<SkImageFilter> background,
17 sk_sp<SkImageFilter> foreground,
18 const SkImageFilter::CropRect* cropRect);
19 static sk_sp<SkImageFilter> Make(float k1, float k2, float k3, float k4, bool enforcePMColor, in Make()
20 sk_sp<SkImageFilter> background) { in Make()
DSkComposeImageFilter.h13 class SK_API SkComposeImageFilter : public SkImageFilter {
15 static sk_sp<SkImageFilter> Make(sk_sp<SkImageFilter> outer, sk_sp<SkImageFilter> inner);
23 explicit SkComposeImageFilter(sk_sp<SkImageFilter> inputs[2]) : INHERITED(inputs, 2, nullptr) { in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS()
33 typedef SkImageFilter INHERITED;
DSkMagnifierImageFilter.h15 class SK_API SkMagnifierImageFilter : public SkImageFilter {
17 static sk_sp<SkImageFilter> Make(const SkRect& srcRect, SkScalar inset,
18 sk_sp<SkImageFilter> input,
27 sk_sp<SkImageFilter> input,
38 typedef SkImageFilter INHERITED;
DSkColorFilterImageFilter.h15 class SK_API SkColorFilterImageFilter : public SkImageFilter {
17 static sk_sp<SkImageFilter> Make(sk_sp<SkColorFilter> cf,
18 sk_sp<SkImageFilter> input,
34 sk_sp<SkImageFilter> input,
39 typedef SkImageFilter INHERITED;
DSkOffsetImageFilter.h14 class SK_API SkOffsetImageFilter : public SkImageFilter {
16 static sk_sp<SkImageFilter> Make(SkScalar dx, SkScalar dy,
17 sk_sp<SkImageFilter> input,
32 SkOffsetImageFilter(SkScalar dx, SkScalar dy, sk_sp<SkImageFilter> input, const CropRect*);
36 typedef SkImageFilter INHERITED;
DSkTileImageFilter.h13 class SK_API SkTileImageFilter : public SkImageFilter {
20 static sk_sp<SkImageFilter> Make(const SkRect& src,
22 sk_sp<SkImageFilter> input);
38 SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, sk_sp<SkImageFilter> input) in SkTileImageFilter()
44 typedef SkImageFilter INHERITED;
DSkPictureImageFilter.h14 class SK_API SkPictureImageFilter : public SkImageFilter {
19 static sk_sp<SkImageFilter> Make(sk_sp<SkPicture> picture);
25 static sk_sp<SkImageFilter> Make(sk_sp<SkPicture> picture, const SkRect& cropRect);
34 static sk_sp<SkImageFilter> MakeForLocalSpace(sk_sp<SkPicture> picture,
75 typedef SkImageFilter INHERITED;
/external/skia/tests/
DImageFilterTest.cpp49 class MatrixTestImageFilter : public SkImageFilter {
51 static sk_sp<SkImageFilter> Make(skiatest::Reporter* reporter, in Make()
53 return sk_sp<SkImageFilter>(new MatrixTestImageFilter(reporter, expectedMatrix)); in Make()
81 typedef SkImageFilter INHERITED;
84 class FailImageFilter : public SkImageFilter {
86 FailImageFilter() : SkImageFilter(nullptr, 0, nullptr) { } in FailImageFilter()
98 typedef SkImageFilter INHERITED;
140 FilterList(sk_sp<SkImageFilter> input, const SkImageFilter::CropRect* cropRect = nullptr) { in FilterList()
154 sk_sp<SkImageFilter> gradientSource(SkImageSource::Make(std::move(gradientImage))); in FilterList()
201 SkImageFilter::CropRect leftSideCropRect(SkRect::MakeXYWH(0, 0, 32, 64)); in FilterList()
[all …]
/external/skia/gm/
Dcolorfilterimagefilter.cpp91 static sk_sp<SkImageFilter> make_blur(float amount, sk_sp<SkImageFilter> input) { in make_blur()
95 static sk_sp<SkImageFilter> make_brightness(float amount, sk_sp<SkImageFilter> input) { in make_brightness()
99 static sk_sp<SkImageFilter> make_grayscale(sk_sp<SkImageFilter> input) { in make_grayscale()
103 static sk_sp<SkImageFilter> make_mode_blue(sk_sp<SkImageFilter> input) { in make_mode_blue()
125 sk_sp<SkImageFilter> dim(make_brightness(-brightness, nullptr));
126 sk_sp<SkImageFilter> bright(make_brightness(brightness, std::move(dim)));
134 sk_sp<SkImageFilter> brightness(make_brightness(0.9f, nullptr));
135 sk_sp<SkImageFilter> grayscale(make_grayscale(std::move(brightness)));
141 sk_sp<SkImageFilter> grayscale(make_grayscale(nullptr));
142 sk_sp<SkImageFilter> brightness(make_brightness(0.9f, std::move(grayscale)));
[all …]
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()
64 sk_sp<SkImageFilter> morph(SkDilateImageFilter::Make(5, 5, nullptr)); in onDraw()
72 sk_sp<SkImageFilter> colorMorph(SkColorFilterImageFilter::Make(std::move(matrixFilter), in onDraw()
87 sk_sp<SkImageFilter> matrixFilter(SkColorFilterImageFilter::Make(std::move(matrixCF), in onDraw()
89 sk_sp<SkImageFilter> offsetFilter(SkOffsetImageFilter::Make(10.0f, 10.f, in onDraw()
100 sk_sp<SkImageFilter> blur(SkBlurImageFilter::Make(SkIntToScalar(10), in onDraw()
[all …]
Dimagefilterscropped.cpp23 static void draw_paint(SkCanvas* canvas, const SkRect& r, sk_sp<SkImageFilter> imf) { in draw_paint()
33 static void draw_path(SkCanvas* canvas, const SkRect& r, sk_sp<SkImageFilter> imf) { in draw_path()
41 static void draw_text(SkCanvas* canvas, const SkRect& r, sk_sp<SkImageFilter> imf) { in draw_text()
52 static void draw_bitmap(SkCanvas* canvas, const SkRect& r, sk_sp<SkImageFilter> imf) { in draw_bitmap()
114 void (*drawProc[])(SkCanvas*, const SkRect&, sk_sp<SkImageFilter>) = { in onDraw()
120 SkImageFilter::CropRect cropRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 44, 44)), in onDraw()
121 SkImageFilter::CropRect::kHasAll_CropEdge); in onDraw()
122 SkImageFilter::CropRect bogusRect(SkRect::Make(SkIRect::MakeXYWH(-100, -100, 10, 10)), in onDraw()
123 SkImageFilter::CropRect::kHasAll_CropEdge); in onDraw()
125 sk_sp<SkImageFilter> offset(SkOffsetImageFilter::Make(SkIntToScalar(-10), in onDraw()
[all …]
Dimagefiltersbase.cpp20 class FailImageFilter : public SkImageFilter {
30 static sk_sp<SkImageFilter> Make() { in Make()
31 return sk_sp<SkImageFilter>(new FailImageFilter); in Make()
46 typedef SkImageFilter INHERITED;
63 class IdentityImageFilter : public SkImageFilter {
73 static sk_sp<SkImageFilter> Make(sk_sp<SkImageFilter> input) { in Make()
74 return sk_sp<SkImageFilter>(new IdentityImageFilter(std::move(input))); in Make()
88 IdentityImageFilter(sk_sp<SkImageFilter> input) : INHERITED(&input, 1, nullptr) {} in IdentityImageFilter()
90 typedef SkImageFilter INHERITED;
109 static void draw_paint(SkCanvas* canvas, const SkRect& r, sk_sp<SkImageFilter> imf) { in draw_paint()
[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()
52 static void draw_bitmap(SkCanvas* canvas, const SkRect& r, sk_sp<SkImageFilter> imf) { in draw_bitmap()
74 void (*drawProc[])(SkCanvas*, const SkRect&, sk_sp<SkImageFilter>) = {
80 sk_sp<SkImageFilter> cfif(SkColorFilterImageFilter::Make(std::move(cf), nullptr));
81 SkImageFilter::CropRect cropRect(SkRect::Make(SkIRect::MakeXYWH(10, 10, 44, 44)),
82 SkImageFilter::CropRect::kHasAll_CropEdge);
83 SkImageFilter::CropRect bogusRect(SkRect::Make(SkIRect::MakeXYWH(-100, -100, 10, 10)),
84 SkImageFilter::CropRect::kHasAll_CropEdge);
[all …]
/external/skia/include/core/
DSkImageFilter.h35 class SK_API SkImageFilter : public SkFlattenable {
175 static sk_sp<SkImageFilter> MakeBlur(SkScalar sigmaX, SkScalar sigmaY,
176 sk_sp<SkImageFilter> input,
196 SkImageFilter* getInput(int i) const { in getInput()
224 sk_sp<SkImageFilter> makeWithLocalMatrix(const SkMatrix&) const;
236 static sk_sp<SkImageFilter> MakeMatrixFilter(const SkMatrix& matrix,
238 sk_sp<SkImageFilter> input);
241 SK_DEFINE_FLATTENABLE_TYPE(SkImageFilter) in SK_DEFINE_FLATTENABLE_TYPE() argument
259 sk_sp<SkImageFilter>* inputs() const { return fInputs.get(); } in SK_DEFINE_FLATTENABLE_TYPE()
261 sk_sp<SkImageFilter> getInput(int index) const { return fInputs[index]; } in SK_DEFINE_FLATTENABLE_TYPE()
[all …]
/external/skia/src/effects/
DSkComposeImageFilter.cpp14 sk_sp<SkImageFilter> SkComposeImageFilter::Make(sk_sp<SkImageFilter> outer, in Make()
15 sk_sp<SkImageFilter> inner) { in Make()
22 sk_sp<SkImageFilter> inputs[2] = { std::move(outer), std::move(inner) }; in Make()
23 return sk_sp<SkImageFilter>(new SkComposeImageFilter(inputs)); in Make()
27 SkImageFilter* outer = this->getInput(0); in computeFastBounds()
28 SkImageFilter* inner = this->getInput(1); in computeFastBounds()
66 SkImageFilter* outer = this->getInput(0); in onFilterBounds()
67 SkImageFilter* inner = this->getInput(1); in onFilterBounds()
79 SkImageFilter* outer = getInput(0); in toString()
80 SkImageFilter* inner = getInput(1); in toString()
DSkMergeImageFilter.cpp17 sk_sp<SkImageFilter> SkMergeImageFilter::Make(sk_sp<SkImageFilter> first, in Make()
18 sk_sp<SkImageFilter> second, in Make()
21 sk_sp<SkImageFilter> inputs[2] = { first, second }; in Make()
23 return sk_sp<SkImageFilter>(new SkMergeImageFilter(inputs, 2, modes, cropRect)); in Make()
26 sk_sp<SkImageFilter> SkMergeImageFilter::MakeN(sk_sp<SkImageFilter> filters[], int count, in MakeN()
29 return sk_sp<SkImageFilter>(new SkMergeImageFilter(filters, count, modes, cropRect)); in MakeN()
60 SkMergeImageFilter::SkMergeImageFilter(sk_sp<SkImageFilter> filters[], int count, in SkMergeImageFilter()
185 SkImageFilter* filter = this->getInput(i); in toString()
/external/skia/bench/
DColorFilterBench.cpp18 static sk_sp<SkImageFilter> make_brightness(float amount, sk_sp<SkImageFilter> input) { in make_brightness()
28 static sk_sp<SkImageFilter> make_grayscale(sk_sp<SkImageFilter> input) { in make_grayscale()
39 static sk_sp<SkImageFilter> make_mode_blue(sk_sp<SkImageFilter> input) { in make_mode_blue()
80 sk_sp<SkImageFilter> dim(make_brightness(-brightness, nullptr)); in onDraw()
106 sk_sp<SkImageFilter> brightness(make_brightness(0.9f, nullptr)); in onDraw()
131 sk_sp<SkImageFilter> grayscale(make_grayscale(nullptr)); in onDraw()
156 sk_sp<SkImageFilter> blue(make_mode_blue(nullptr)); in onDraw()
181 sk_sp<SkImageFilter> brightness(make_brightness(1.0f, nullptr)); in onDraw()

123456