Home
last modified time | relevance | path

Searched refs:SkShader (Results 1 – 25 of 245) sorted by relevance

12345678910

/external/skia/include/core/
DSkShader.h39 class SK_API SkShader : public SkFlattenable {
66 sk_sp<SkShader> makeWithLocalMatrix(const SkMatrix&) const;
72 sk_sp<SkShader> makeWithColorFilter(sk_sp<SkColorFilter>) const;
75 SkShader() = default;
83 static sk_sp<SkShader> Empty();
84 static sk_sp<SkShader> Color(SkColor);
85 static sk_sp<SkShader> Color(const SkColor4f&, sk_sp<SkColorSpace>);
86 static sk_sp<SkShader> Blend(SkBlendMode mode, sk_sp<SkShader> dst, sk_sp<SkShader> src);
87 static sk_sp<SkShader> Blend(sk_sp<SkBlender>, sk_sp<SkShader> dst, sk_sp<SkShader> src);
88 static sk_sp<SkShader> CoordClamp(sk_sp<SkShader>, const SkRect& subset);
/external/skia/src/shaders/
DSkComposeShader.cpp31 SkShader_Blend(SkBlendMode mode, sk_sp<SkShader> dst, sk_sp<SkShader> src) in SkShader_Blend()
64 sk_sp<SkShader> fDst;
65 sk_sp<SkShader> fSrc;
72 sk_sp<SkShader> dst(buffer.readShader()); in CreateProc()
73 sk_sp<SkShader> src(buffer.readShader()); in CreateProc()
102 SkShader* s0, in append_two_shaders()
103 SkShader* s1) { in append_two_shaders()
198 sk_sp<SkShader> SkShaders::Blend(SkBlendMode mode, sk_sp<SkShader> dst, sk_sp<SkShader> src) { in Blend()
208 return sk_sp<SkShader>(new SkShader_Blend(mode, std::move(dst), std::move(src))); in Blend()
211 sk_sp<SkShader> SkShaders::Blend(sk_sp<SkBlender> blender, in Blend()
[all …]
DSkLocalMatrixShader.cpp122 sk_sp<SkShader> SkShader::makeWithLocalMatrix(const SkMatrix& localMatrix) const { in makeWithLocalMatrix()
124 return sk_ref_sp(const_cast<SkShader*>(this)); in makeWithLocalMatrix()
129 sk_sp<SkShader> baseShader; in makeWithLocalMatrix()
131 sk_sp<SkShader> proxy = as_SB(this)->makeAsALocalMatrixShader(&otherLocalMatrix); in makeWithLocalMatrix()
137 baseShader = sk_ref_sp(const_cast<SkShader*>(this)); in makeWithLocalMatrix()
152 SkCTMShader(sk_sp<SkShader> proxy, const SkMatrix& ctm) in SkCTMShader()
187 sk_sp<SkShader> fProxyShader;
219 sk_sp<SkShader> SkShaderBase::makeWithCTM(const SkMatrix& postM) const { in makeWithCTM()
220 return sk_sp<SkShader>(new SkCTMShader(sk_ref_sp(this), postM)); in makeWithCTM()
DSkLocalMatrixShader.h21 static std::enable_if_t<std::is_base_of_v<SkShader, T>, sk_sp<SkShader>>
27 return sk_make_sp<SkLocalMatrixShader>(sk_sp<SkShader>(std::move(t)), *localMatrix); in MakeWrapped()
30 SkLocalMatrixShader(sk_sp<SkShader> wrapped, const SkMatrix& localMatrix) in SkLocalMatrixShader()
45 sk_sp<SkShader> makeAsALocalMatrixShader(SkMatrix* localMatrix) const override { in makeAsALocalMatrixShader()
76 sk_sp<SkShader> fWrappedShader;
DSkShaderBase.h44 class SkShaderBase : public SkShader {
48 sk_sp<SkShader> makeInvertAlpha() const;
49 sk_sp<SkShader> makeWithCTM(const SkMatrix&) const; // owns its own ctm
400 virtual sk_sp<SkShader> makeAsALocalMatrixShader(SkMatrix* localMatrix) const;
473 using INHERITED = SkShader;
475 inline SkShaderBase* as_SB(SkShader* shader) { in as_SB()
479 inline const SkShaderBase* as_SB(const SkShader* shader) { in as_SB()
483 inline const SkShaderBase* as_SB(const sk_sp<SkShader>& shader) { in as_SB()
DSkColorFilterShader.cpp28 SkColorFilterShader::SkColorFilterShader(sk_sp<SkShader> shader, in SkColorFilterShader()
139 sk_sp<SkShader> SkShader::makeWithColorFilter(sk_sp<SkColorFilter> filter) const { in makeWithColorFilter()
140 SkShader* base = const_cast<SkShader*>(this); in makeWithColorFilter()
DSkCoordClampShader.cpp28 SkShader_CoordClamp(sk_sp<SkShader> shader, const SkRect& subset) in SkShader_CoordClamp()
53 sk_sp<SkShader> fShader;
58 sk_sp<SkShader> shader(buffer.readShader()); in CreateProc()
146 sk_sp<SkShader> SkShaders::CoordClamp(sk_sp<SkShader> shader, const SkRect& subset) { in CoordClamp()
/external/skia/include/effects/
DSkGradientShader.h128 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2],
150 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2],
155 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2],
179 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius,
200 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius,
205 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius,
219 static sk_sp<SkShader> MakeTwoPointConical(const SkPoint& start, SkScalar startRadius,
232 static sk_sp<SkShader> MakeTwoPointConical(const SkPoint& start, SkScalar startRadius,
239 static sk_sp<SkShader> MakeTwoPointConical(const SkPoint& start, SkScalar startRadius,
278 static sk_sp<SkShader> MakeSweep(SkScalar cx, SkScalar cy,
[all …]
/external/skia/gm/
Dcomposeshader.cpp34 static sk_sp<SkShader> make_shader(SkBlendMode mode) { in make_shader()
76 sk_sp<SkShader> fShader;
97 sk_sp<SkShader> shaders[] = { in onDraw()
157 static sk_sp<SkShader> make_linear_gradient_shader(int length) { in make_linear_gradient_shader()
207 sk_sp<SkShader> shaders[] = { in onDraw()
251 sk_sp<SkShader> fColorBitmapShader;
252 sk_sp<SkShader> fAlpha8BitmapShader;
253 sk_sp<SkShader> fLinearGradientShader;
297 static sk_sp<SkShader> make_src_shader(SkScalar size) { in make_src_shader()
303 static sk_sp<SkShader> make_dst_shader(SkScalar size) { in make_dst_shader()
[all …]
Dgradients_degenerate.cpp45 typedef sk_sp<SkShader> (*GradientFactory)(SkTileMode tm);
91 static sk_sp<SkShader> make_linear(SkTileMode mode) { in make_linear()
97 static sk_sp<SkShader> make_radial(SkTileMode mode) { in make_radial()
102 static sk_sp<SkShader> make_sweep(SkTileMode mode) { in make_sweep()
109 static sk_sp<SkShader> make_sweep_zero_ang(SkTileMode mode) { in make_sweep_zero_ang()
115 static sk_sp<SkShader> make_2pt_conic(SkTileMode mode) { in make_2pt_conic()
121 static sk_sp<SkShader> make_2pt_conic_zero_rad(SkTileMode mode) { in make_2pt_conic_zero_rad()
Dmodecolorfilters.cpp33 static sk_sp<SkShader> make_color_shader(SkColor color) { in make_color_shader()
40 static sk_sp<SkShader> make_solid_shader() { in make_solid_shader()
44 static sk_sp<SkShader> make_transparent_shader() { in make_transparent_shader()
48 static sk_sp<SkShader> make_trans_black_shader() { in make_trans_black_shader()
53 static sk_sp<SkShader> make_bg_shader(int checkSize) { in make_bg_shader()
98 sk_sp<SkShader> shaders[] = { in onDraw()
164 sk_sp<SkShader> fBmpShader;
Dgradients_2pt_conical.cpp53 static sk_sp<SkShader> Make2ConicalOutside(const SkPoint pts[2], const GradData& data, in Make2ConicalOutside()
64 static sk_sp<SkShader> Make2ConicalOutsideStrip(const SkPoint pts[2], const GradData& data, in Make2ConicalOutsideStrip()
74 static sk_sp<SkShader> Make2ConicalOutsideFlip(const SkPoint pts[2], const GradData& data, in Make2ConicalOutsideFlip()
85 static sk_sp<SkShader> Make2ConicalInside(const SkPoint pts[2], const GradData& data, in Make2ConicalInside()
98 static sk_sp<SkShader> Make2ConicalInsideFlip(const SkPoint pts[2], const GradData& data, in Make2ConicalInsideFlip()
111 static sk_sp<SkShader> Make2ConicalInsideCenter(const SkPoint pts[2], const GradData& data, in Make2ConicalInsideCenter()
122 static sk_sp<SkShader> Make2ConicalInsideCenterReversed(const SkPoint pts[2], const GradData& data, in Make2ConicalInsideCenterReversed()
133 static sk_sp<SkShader> Make2ConicalZeroRad(const SkPoint pts[2], const GradData& data, in Make2ConicalZeroRad()
146 static sk_sp<SkShader> Make2ConicalZeroRadFlip(const SkPoint pts[2], const GradData& data, in Make2ConicalZeroRadFlip()
159 static sk_sp<SkShader> Make2ConicalZeroRadCenter(const SkPoint pts[2], const GradData& data, in Make2ConicalZeroRadCenter()
[all …]
Dshallowgradient.cpp22 typedef sk_sp<SkShader> (*MakeShaderProc)(const SkColor[], int count, const SkSize&);
24 static sk_sp<SkShader> shader_linear(const SkColor colors[], int count, const SkSize& size) { in shader_linear()
29 static sk_sp<SkShader> shader_radial(const SkColor colors[], int count, const SkSize& size) { in shader_radial()
35 static sk_sp<SkShader> shader_conical(const SkColor colors[], int count, const SkSize& size) { in shader_conical()
41 static sk_sp<SkShader> shader_sweep(const SkColor colors[], int count, const SkSize& size) { in shader_sweep()
Druntimeshader.cpp89 static sk_sp<SkShader> make_shader(sk_sp<SkImage> img, SkISize size) {
95 static sk_sp<SkShader> make_threshold(SkISize size) { in make_threshold()
151 sk_sp<SkShader> fBefore, fAfter, fThreshold;
176 auto draw = [&](SkScalar x, SkScalar y, sk_sp<SkShader> shader) { in onDraw()
704 static sk_sp<SkShader> normal_map_shader() { in normal_map_shader()
728 static sk_sp<SkShader> normal_map_image_shader() { in normal_map_image_shader()
732 static sk_sp<SkShader> normal_map_raw_image_shader() { in normal_map_raw_image_shader()
751 static sk_sp<SkShader> normal_map_unpremul_image_shader() { in normal_map_unpremul_image_shader()
755 static sk_sp<SkShader> normal_map_raw_unpremul_image_shader() { in normal_map_raw_unpremul_image_shader()
759 static sk_sp<SkShader> lit_shader(sk_sp<SkShader> normals) { in lit_shader()
[all …]
Dlocalmatriximageshader.cpp39 sk_sp<SkShader> redImageShader = redImage->makeShader(SkSamplingOptions(), &rotate);
40 sk_sp<SkShader> redLocalMatrixShader = redImageShader->makeWithLocalMatrix(translate);
48 sk_sp<SkShader> blueImageShader = blueImage->makeShader(SkSamplingOptions(), &translate);
49 sk_sp<SkShader> blueLocalMatrixShader = blueImageShader->makeWithLocalMatrix(rotate);
Dgradients.cpp75 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], const GradData& data, in MakeLinear()
81 static sk_sp<SkShader> MakeLinear4f(const SkPoint pts[2], const GradData& data, in MakeLinear4f()
88 static sk_sp<SkShader> MakeRadial(const SkPoint pts[2], const GradData& data, in MakeRadial()
97 static sk_sp<SkShader> MakeRadial4f(const SkPoint pts[2], const GradData& data, in MakeRadial4f()
107 static sk_sp<SkShader> MakeSweep(const SkPoint pts[2], const GradData& data, in MakeSweep()
116 static sk_sp<SkShader> MakeSweep4f(const SkPoint pts[2], const GradData& data, in MakeSweep4f()
126 static sk_sp<SkShader> Make2Radial(const SkPoint pts[2], const GradData& data, in Make2Radial()
139 static sk_sp<SkShader> Make2Radial4f(const SkPoint pts[2], const GradData& data, in Make2Radial4f()
153 static sk_sp<SkShader> Make2Conical(const SkPoint pts[2], const GradData& data, in Make2Conical()
165 static sk_sp<SkShader> Make2Conical4f(const SkPoint pts[2], const GradData& data, in Make2Conical4f()
[all …]
Dgradient_dirty_laundry.cpp50 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], const GradData& data, SkTileMode tm) { in MakeLinear()
54 static sk_sp<SkShader> MakeRadial(const SkPoint pts[2], const GradData& data, SkTileMode tm) { in MakeRadial()
59 static sk_sp<SkShader> MakeSweep(const SkPoint pts[2], const GradData& data, SkTileMode) { in MakeSweep()
65 typedef sk_sp<SkShader> (*GradMaker)(const SkPoint pts[2], const GradData&, SkTileMode);
/external/skia/src/gpu/graphite/
DPaintParams.h15 class SkShader; variable
33 sk_sp<SkShader>,
52 SkShader* shader() const { return fShader.get(); } in shader()
53 sk_sp<SkShader> refShader() const;
73 sk_sp<SkShader> fShader;
/external/skia/src/core/
DSkVMBlitter.h24 sk_sp<SkShader> clipShader);
31 sk_sp<SkShader> clipShader);
38 sk_sp<SkShader> clip,
64 sk_sp<SkShader> shader;
65 sk_sp<SkShader> clip;
79 sk_sp<SkShader> clip);
DSkClipStack.h82 Element(sk_sp<SkShader> shader) { in Element()
121 sk_sp<SkShader> refShader() const { in refShader()
124 const SkShader* getShader() const { in getShader()
191 sk_sp<SkShader> fShader;
234 Element(int saveCount, sk_sp<SkShader> shader) { in Element()
247 void initShader(int saveCount, sk_sp<SkShader>);
347 void clipShader(sk_sp<SkShader>);
DSkSpecialImage.h32 class SkShader; variable
167 sk_sp<SkShader> asShader(SkTileMode, const SkSamplingOptions&, const SkMatrix& lm) const;
168 sk_sp<SkShader> asShader(const SkSamplingOptions& sampling) const;
169 sk_sp<SkShader> asShader(const SkSamplingOptions& sampling, const SkMatrix& lm) const;
243 virtual sk_sp<SkShader> onAsShader(SkTileMode,
/external/skia/modules/sksg/include/
DSkSGRenderEffect.h25 class SkShader; variable
36 const sk_sp<SkShader>& getShader() const { in getShader()
46 virtual sk_sp<SkShader> onRevalidateShader() = 0;
49 sk_sp<SkShader> fShader;
83 static sk_sp<MaskShaderEffect> Make(sk_sp<RenderNode>, sk_sp<SkShader> = nullptr);
85 SG_ATTRIBUTE(Shader, sk_sp<SkShader>, fShader)
91 MaskShaderEffect(sk_sp<RenderNode>, sk_sp<SkShader>);
93 sk_sp<SkShader> fShader;
DSkSGRenderNode.h54 sk_sp<SkShader> fShader;
55 sk_sp<SkShader> fMaskShader;
92 ScopedRenderContext&& modulateShader(sk_sp<SkShader>, const SkMatrix& shader_ctm);
93 ScopedRenderContext&& modulateMaskShader(sk_sp<SkShader>, const SkMatrix& ms_ctm);
117 sk_sp<SkShader> fMaskShader; // to be applied at isolation layer restore time
DSkSGGradient.h40 sk_sp<SkShader> onRevalidateShader() final;
42 virtual sk_sp<SkShader> onMakeShader(const std::vector<SkColor4f>& colors,
65 sk_sp<SkShader> onMakeShader(const std::vector<SkColor4f>&,
89 sk_sp<SkShader> onMakeShader(const std::vector<SkColor4f>&,
/external/skia/bench/
DGradientBench.cpp52 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], const GradData& data, in MakeLinear()
57 static sk_sp<SkShader> MakeRadial(const SkPoint pts[2], const GradData& data, in MakeRadial()
67 static sk_sp<SkShader> MakeSweep(const SkPoint pts[2], const GradData& data, in MakeSweep()
76 static sk_sp<SkShader> MakeConical(const SkPoint pts[2], const GradData& data, in MakeConical()
89 static sk_sp<SkShader> MakeConicalZeroRad(const SkPoint pts[2], const GradData& data, in MakeConicalZeroRad()
102 static sk_sp<SkShader> MakeConicalOutside(const SkPoint pts[2], const GradData& data, in MakeConicalOutside()
116 static sk_sp<SkShader> MakeConicalOutsideZeroRad(const SkPoint pts[2], const GradData& data, in MakeConicalOutsideZeroRad()
129 typedef sk_sp<SkShader> (*GradMaker)(const SkPoint pts[2], const GradData& data,
242 sk_sp<SkShader> MakeShader(GradType gradType, GradData data, in MakeShader()

12345678910