Home
last modified time | relevance | path

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

12345678910>>...17

/third_party/flutter/skia/include/core/
DSkShader.h40 class SK_API SkShader : public SkFlattenable {
122 sk_sp<SkShader> makeWithLocalMatrix(const SkMatrix&) const;
128 sk_sp<SkShader> makeWithColorFilter(sk_sp<SkColorFilter>) const;
131 SkShader() = default;
139 static sk_sp<SkShader> Empty();
140 static sk_sp<SkShader> Color(SkColor);
141 static sk_sp<SkShader> Color(const SkColor4f&, sk_sp<SkColorSpace>);
142 static sk_sp<SkShader> Blend(SkBlendMode mode, sk_sp<SkShader> dst, sk_sp<SkShader> src,
144 static sk_sp<SkShader> Lerp(float t, sk_sp<SkShader> dst, sk_sp<SkShader> src,
147 static sk_sp<SkShader> Lerp(sk_sp<SkShader> red, sk_sp<SkShader> dst, sk_sp<SkShader> src,
/third_party/skia/include/core/
DSkShader.h39 class SK_API SkShader : public SkFlattenable {
121 sk_sp<SkShader> makeWithLocalMatrix(const SkMatrix&) const;
127 sk_sp<SkShader> makeWithColorFilter(sk_sp<SkColorFilter>) const;
130 SkShader() = default;
138 static sk_sp<SkShader> Empty();
139 static sk_sp<SkShader> Color(SkColor);
140 static sk_sp<SkShader> Color(const SkColor4f&, sk_sp<SkColorSpace>);
141 static sk_sp<SkShader> Blend(SkBlendMode mode, sk_sp<SkShader> dst, sk_sp<SkShader> src);
142 static sk_sp<SkShader> Blend(sk_sp<SkBlender>, sk_sp<SkShader> dst, sk_sp<SkShader> src);
/third_party/flutter/skia/src/shaders/
DSkComposeShader.h16 SkShader_Blend(SkBlendMode mode, sk_sp<SkShader> dst, sk_sp<SkShader> src, const SkMatrix* lm) in SkShader_Blend()
35 sk_sp<SkShader> fDst;
36 sk_sp<SkShader> fSrc;
44 SkShader_Lerp(float weight, sk_sp<SkShader> dst, sk_sp<SkShader> src, const SkMatrix* lm) in SkShader_Lerp()
65 sk_sp<SkShader> fDst;
66 sk_sp<SkShader> fSrc;
74 SkShader_LerpRed(sk_sp<SkShader> red, sk_sp<SkShader> dst, sk_sp<SkShader> src, in SkShader_LerpRed()
94 sk_sp<SkShader> fDst;
95 sk_sp<SkShader> fSrc;
96 sk_sp<SkShader> fRed;
DSkComposeShader.cpp21 sk_sp<SkShader> wrap_lm(sk_sp<SkShader> shader, const SkMatrix* lm) { in wrap_lm()
46 sk_sp<SkShader> SkShaders::Blend(SkBlendMode mode, sk_sp<SkShader> dst, sk_sp<SkShader> src, in Blend()
54 return sk_sp<SkShader>(new SkShader_Blend(mode, std::move(dst), std::move(src), lm)); in Blend()
57 sk_sp<SkShader> SkShaders::Lerp(float weight, sk_sp<SkShader> dst, sk_sp<SkShader> src, in Lerp()
68 return sk_sp<SkShader>(new SkShader_Lerp(weight, std::move(dst), std::move(src), lm)); in Lerp()
71 sk_sp<SkShader> SkShaders::Lerp(sk_sp<SkShader> red, sk_sp<SkShader> dst, sk_sp<SkShader> src, in Lerp()
79 return sk_sp<SkShader>(new SkShader_LerpRed(std::move(red), std::move(dst), std::move(src), in Lerp()
85 static bool append_shader_or_paint(const SkStageRec& rec, SkShader* shader) { in append_shader_or_paint()
97 static float* append_two_shaders(const SkStageRec& rec, SkShader* s0, SkShader* s1) { in append_two_shaders()
117 sk_sp<SkShader> dst(buffer.readShader()); in CreateProc()
[all …]
DSkShader.cpp117 SkImage* SkShader::isAImage(SkMatrix* localMatrix, SkTileMode xy[2]) const { in isAImage()
121 SkShader::GradientType SkShader::asAGradient(GradientInfo* info) const { in asAGradient()
131 sk_sp<SkShader> SkShaderBase::makeAsALocalMatrixShader(SkMatrix*) const { in makeAsALocalMatrixShader()
135 sk_sp<SkShader> SkShaders::Empty() { return sk_make_sp<SkEmptyShader>(); } in Empty()
136 sk_sp<SkShader> SkShaders::Color(SkColor color) { return sk_make_sp<SkColorShader>(color); } in Color()
138 sk_sp<SkShader> SkBitmap::makeShader(SkTileMode tmx, SkTileMode tmy, const SkMatrix* lm) const { in makeShader()
145 sk_sp<SkShader> SkBitmap::makeShader(const SkMatrix* lm) const { in makeShader()
165 sk_sp<const SkShader> shader; in onAppendStages()
DSkPictureShader.cpp31 sk_sp<SkShader> SkPicture::makeShader(SkTileMode tmx, SkTileMode tmy, const SkMatrix* localMatrix, in makeShader()
39 sk_sp<SkShader> SkPicture::makeShader(SkTileMode tmx, SkTileMode tmy, in makeShader()
82 BitmapShaderRec(const BitmapShaderKey& key, SkShader* tileShader) in BitmapShaderRec()
87 sk_sp<SkShader> fShader;
99 sk_sp<SkShader>* result = reinterpret_cast<sk_sp<SkShader>*>(contextShader); in Visitor()
137 sk_sp<SkShader> SkPictureShader::Make(sk_sp<SkPicture> picture, SkTileMode tmx, SkTileMode tmy, in Make()
142 return sk_sp<SkShader>(new SkPictureShader(std::move(picture), tmx, tmy, localMatrix, tile)); in Make()
190 sk_sp<SkShader> SkPictureShader::refBitmapShader(const SkMatrix& viewMatrix, in refBitmapShader()
248 sk_sp<SkShader> tileShader; in refBitmapShader()
277 auto& bitmapShader = *rec.fAlloc->make<sk_sp<SkShader>>(); in onAppendStages()
[all …]
DSkLocalMatrixShader.cpp87 sk_sp<SkShader> SkShader::makeWithLocalMatrix(const SkMatrix& localMatrix) const { in makeWithLocalMatrix()
89 return sk_ref_sp(const_cast<SkShader*>(this)); in makeWithLocalMatrix()
94 sk_sp<SkShader> baseShader; in makeWithLocalMatrix()
96 sk_sp<SkShader> proxy(as_SB(this)->makeAsALocalMatrixShader(&otherLocalMatrix)); in makeWithLocalMatrix()
102 baseShader = sk_ref_sp(const_cast<SkShader*>(this)); in makeWithLocalMatrix()
DSkColorFilterShader.cpp19 SkColorFilterShader::SkColorFilterShader(sk_sp<SkShader> shader, sk_sp<SkColorFilter> filter) in SkColorFilterShader()
73 sk_sp<SkShader> SkShader::makeWithColorFilter(sk_sp<SkColorFilter> filter) const { in makeWithColorFilter()
74 SkShader* base = const_cast<SkShader*>(this); in makeWithColorFilter()
/third_party/skia/include/effects/
DSkGradientShader.h73 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2],
77 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], in MakeLinear()
97 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2],
101 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], in MakeLinear()
120 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius,
124 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius, in MakeRadial()
143 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius,
147 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius, in MakeRadial()
160 static sk_sp<SkShader> MakeTwoPointConical(const SkPoint& start, SkScalar startRadius,
165 static sk_sp<SkShader> MakeTwoPointConical(const SkPoint& start, SkScalar startRadius, in MakeTwoPointConical()
[all …]
/third_party/flutter/skia/include/effects/
DSkGradientShader.h70 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2],
74 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], in MakeLinear()
92 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2],
96 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], in MakeLinear()
115 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius,
119 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius, in MakeRadial()
138 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius,
142 static sk_sp<SkShader> MakeRadial(const SkPoint& center, SkScalar radius, in MakeRadial()
155 static sk_sp<SkShader> MakeTwoPointConical(const SkPoint& start, SkScalar startRadius,
160 static sk_sp<SkShader> MakeTwoPointConical(const SkPoint& start, SkScalar startRadius, in MakeTwoPointConical()
[all …]
/third_party/skia/src/shaders/
DSkComposeShader.cpp45 sk_sp<SkShader> SkShaders::Blend(SkBlendMode mode, sk_sp<SkShader> dst, sk_sp<SkShader> src) { in Blend()
55 return sk_sp<SkShader>(new SkShader_Blend(mode, std::move(dst), std::move(src))); in Blend()
58 sk_sp<SkShader> SkShaders::Blend(sk_sp<SkBlender> blender, sk_sp<SkShader> dst, sk_sp<SkShader> src… in Blend()
68 return sk_sp<SkShader>(new SkShader_Blend(std::move(blender), std::move(dst), std::move(src))); in Blend()
74 sk_sp<SkShader> dst(buffer.readShader()); in CreateProc()
75 sk_sp<SkShader> src(buffer.readShader()); in CreateProc()
108 static float* append_two_shaders(const SkStageRec& rec, SkShader* s0, SkShader* s1) { in append_two_shaders()
DSkComposeShader.h18 SkShader_Blend(SkBlendMode mode, sk_sp<SkShader> dst, sk_sp<SkShader> src) in SkShader_Blend()
25 SkShader_Blend(sk_sp<SkBlender> blender, sk_sp<SkShader> dst, sk_sp<SkShader> src) in SkShader_Blend()
47 sk_sp<SkShader> fDst;
48 sk_sp<SkShader> fSrc;
DSkLocalMatrixShader.cpp94 sk_sp<SkShader> SkShader::makeWithLocalMatrix(const SkMatrix& localMatrix) const { in makeWithLocalMatrix()
96 return sk_ref_sp(const_cast<SkShader*>(this)); in makeWithLocalMatrix()
101 sk_sp<SkShader> baseShader; in makeWithLocalMatrix()
103 sk_sp<SkShader> proxy(as_SB(this)->makeAsALocalMatrixShader(&otherLocalMatrix)); in makeWithLocalMatrix()
109 baseShader = sk_ref_sp(const_cast<SkShader*>(this)); in makeWithLocalMatrix()
124 SkCTMShader(sk_sp<SkShader> proxy, const SkMatrix& ctm) in SkCTMShader()
172 sk_sp<SkShader> fProxyShader;
207 sk_sp<SkShader> SkShaderBase::makeWithCTM(const SkMatrix& postM) const { in makeWithCTM()
208 return sk_sp<SkShader>(new SkCTMShader(sk_ref_sp(this), postM)); in makeWithCTM()
DSkShaderBase.h37 class SkShaderBase : public SkShader {
41 sk_sp<SkShader> makeInvertAlpha() const;
42 sk_sp<SkShader> makeWithCTM(const SkMatrix&) const; // owns its own ctm
198 virtual sk_sp<SkShader> makeAsALocalMatrixShader(SkMatrix* localMatrix) const;
248 using INHERITED = SkShader;
276 inline SkShaderBase* as_SB(SkShader* shader) { in as_SB()
280 inline const SkShaderBase* as_SB(const SkShader* shader) { in as_SB()
284 inline const SkShaderBase* as_SB(const sk_sp<SkShader>& shader) { in as_SB()
/third_party/flutter/skia/src/pdf/
DSkPDFGradientShader.cpp19 static uint32_t hash(const SkShader::GradientInfo& v) { in hash()
139 static void gradient_function_code(const SkShader::GradientInfo& info, in gradient_function_code()
222 static std::unique_ptr<SkPDFDict> gradientStitchCode(const SkShader::GradientInfo& info) { in gradientStitchCode()
365 static void linearCode(const SkShader::GradientInfo& info, in linearCode()
378 static void radialCode(const SkShader::GradientInfo& info, in radialCode()
402 static void twoPointConicalCode(const SkShader::GradientInfo& info, in twoPointConicalCode()
513 static void sweepCode(const SkShader::GradientInfo& info, in sweepCode()
590 const SkShader::GradientInfo& info = state.fInfo; in make_function_shader()
594 bool doStitchFunctions = (state.fType == SkShader::kLinear_GradientType || in make_function_shader()
595 state.fType == SkShader::kRadial_GradientType || in make_function_shader()
[all …]
/third_party/skia/src/pdf/
DSkPDFGradientShader.cpp19 static uint32_t hash(const SkShader::GradientInfo& v) { in hash()
139 static void gradient_function_code(const SkShader::GradientInfo& info, in gradient_function_code()
222 static std::unique_ptr<SkPDFDict> gradientStitchCode(const SkShader::GradientInfo& info) { in gradientStitchCode()
365 static void linearCode(const SkShader::GradientInfo& info, in linearCode()
378 static void radialCode(const SkShader::GradientInfo& info, in radialCode()
402 static void twoPointConicalCode(const SkShader::GradientInfo& info, in twoPointConicalCode()
513 static void sweepCode(const SkShader::GradientInfo& info, in sweepCode()
590 const SkShader::GradientInfo& info = state.fInfo; in make_function_shader()
594 bool doStitchFunctions = (state.fType == SkShader::kLinear_GradientType || in make_function_shader()
595 state.fType == SkShader::kRadial_GradientType || in make_function_shader()
[all …]
/third_party/skia/gm/
Dcomposeshader.cpp33 static sk_sp<SkShader> make_shader(SkBlendMode mode) { in make_shader()
75 sk_sp<SkShader> fShader;
96 sk_sp<SkShader> shaders[] = { in onDraw()
156 static sk_sp<SkShader> make_linear_gradient_shader(int length) { in make_linear_gradient_shader()
197 sk_sp<SkShader> shaders[] = { in onDraw()
240 sk_sp<SkShader> fColorBitmapShader;
241 sk_sp<SkShader> fAlpha8BitmapShader;
242 sk_sp<SkShader> fLinearGradientShader;
286 static sk_sp<SkShader> make_src_shader(SkScalar size) { in make_src_shader()
292 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()
/third_party/flutter/skia/gm/
Dcomposeshader.cpp33 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()
200 sk_sp<SkShader> shaders[] = { in onDraw()
239 sk_sp<SkShader> fColorBitmapShader;
240 sk_sp<SkShader> fAlpha8BitmapShader;
241 sk_sp<SkShader> fLinearGradientShader;
283 static sk_sp<SkShader> make_src_shader(SkScalar size) { in make_src_shader()
289 static sk_sp<SkShader> make_dst_shader(SkScalar size) { in make_dst_shader()
[all …]
Dgradients_degenerate.cpp44 typedef sk_sp<SkShader> (*GradientFactory)(SkTileMode tm);
87 static sk_sp<SkShader> make_linear(SkTileMode mode) { in make_linear()
93 static sk_sp<SkShader> make_radial(SkTileMode mode) { in make_radial()
98 static sk_sp<SkShader> make_sweep(SkTileMode mode) { in make_sweep()
105 static sk_sp<SkShader> make_sweep_zero_ang(SkTileMode mode) { in make_sweep_zero_ang()
111 static sk_sp<SkShader> make_2pt_conic(SkTileMode mode) { in make_2pt_conic()
117 static sk_sp<SkShader> make_2pt_conic_zero_rad(SkTileMode mode) { in make_2pt_conic_zero_rad()
/third_party/skia/tests/
DGradientTest.cpp52 void gradCheck(skiatest::Reporter* reporter, const sk_sp<SkShader>& shader, in gradCheck()
53 SkShader::GradientInfo* info, in gradCheck()
54 SkShader::GradientType gt) const { in gradCheck()
74 sk_sp<SkShader> s(SkShaders::Empty()); in none_gradproc()
75 REPORTER_ASSERT(reporter, SkShader::kNone_GradientType == s->asAGradient(nullptr)); in none_gradproc()
79 sk_sp<SkShader> s(new SkColorShader(rec.fColors[0])); in color_gradproc()
80 REPORTER_ASSERT(reporter, SkShader::kColor_GradientType == s->asAGradient(nullptr)); in color_gradproc()
82 SkShader::GradientInfo info; in color_gradproc()
91 sk_sp<SkShader> s(SkGradientShader::MakeLinear(buildRec.fPoint, buildRec.fColors, buildRec.fPos, in linear_gradproc()
94 SkShader::GradientInfo info; in linear_gradproc()
[all …]
/third_party/flutter/skia/tests/
DGradientTest.cpp49 void gradCheck(skiatest::Reporter* reporter, const sk_sp<SkShader>& shader, in gradCheck()
50 SkShader::GradientInfo* info, in gradCheck()
51 SkShader::GradientType gt) const { in gradCheck()
71 sk_sp<SkShader> s(SkShaders::Empty()); in none_gradproc()
72 REPORTER_ASSERT(reporter, SkShader::kNone_GradientType == s->asAGradient(nullptr)); in none_gradproc()
76 sk_sp<SkShader> s(new SkColorShader(rec.fColors[0])); in color_gradproc()
77 REPORTER_ASSERT(reporter, SkShader::kColor_GradientType == s->asAGradient(nullptr)); in color_gradproc()
79 SkShader::GradientInfo info; in color_gradproc()
88 sk_sp<SkShader> s(SkGradientShader::MakeLinear(buildRec.fPoint, buildRec.fColors, buildRec.fPos, in linear_gradproc()
91 SkShader::GradientInfo info; in linear_gradproc()
[all …]
/third_party/flutter/skia/experimental/svg/model/
DSkSVGGradient.h20 kClamp = SkShader::kClamp_TileMode,
21 kRepeat = SkShader::kRepeat_TileMode,
22 kMirror = SkShader::kMirror_TileMode,
23 kDecal = SkShader::kDecal_TileMode,
43 virtual sk_sp<SkShader> onMakeShader(const SkSVGRenderContext&,
/third_party/flutter/engine/flutter/lib/ui/painting/
Dshader.h22 sk_sp<SkShader> shader() { return shader_.get(); } in shader()
24 void set_shader(flutter::SkiaGPUObject<SkShader> shader) { in set_shader()
29 Shader(flutter::SkiaGPUObject<SkShader> shader = {});
32 flutter::SkiaGPUObject<SkShader> shader_;
/third_party/skia/src/core/
DSkVMBlitter.h22 sk_sp<SkShader> clipShader);
29 sk_sp<SkShader> clipShader);
36 sk_sp<SkShader> clip,
62 sk_sp<SkShader> shader;
63 sk_sp<SkShader> clip;
77 sk_sp<SkShader> clip);

12345678910>>...17