Home
last modified time | relevance | path

Searched refs:SkRasterPipeline (Results 1 – 25 of 110) sorted by relevance

12345

/third_party/flutter/skia/src/shaders/
DSkImageShader.cpp325 SkRasterPipeline* p = rec.fPipeline; in doStages()
345 p->append(SkRasterPipeline::seed_shader); in doStages()
348 p->append(SkRasterPipeline::matrix_2x3, updater->fMatrixStorage); in doStages()
405 p->append(SkRasterPipeline::decal_x_and_y, decal_ctx); in doStages()
409 case SkTileMode::kMirror: p->append(SkRasterPipeline::mirror_x, limit_x); break; in doStages()
410 case SkTileMode::kRepeat: p->append(SkRasterPipeline::repeat_x, limit_x); break; in doStages()
411 case SkTileMode::kDecal: p->append(SkRasterPipeline::decal_x, decal_ctx); break; in doStages()
415 case SkTileMode::kMirror: p->append(SkRasterPipeline::mirror_y, limit_y); break; in doStages()
416 case SkTileMode::kRepeat: p->append(SkRasterPipeline::repeat_y, limit_y); break; in doStages()
417 case SkTileMode::kDecal: p->append(SkRasterPipeline::decal_y, decal_ctx); break; in doStages()
[all …]
/third_party/flutter/skia/src/core/
DSkBlendMode.cpp85 void SkBlendMode_AppendStages(SkBlendMode mode, SkRasterPipeline* p) { in SkBlendMode_AppendStages()
86 auto stage = SkRasterPipeline::srcover; in SkBlendMode_AppendStages()
88 case SkBlendMode::kClear: stage = SkRasterPipeline::clear; break; in SkBlendMode_AppendStages()
90 case SkBlendMode::kDst: stage = SkRasterPipeline::move_dst_src; break; in SkBlendMode_AppendStages()
91 case SkBlendMode::kSrcOver: stage = SkRasterPipeline::srcover; break; in SkBlendMode_AppendStages()
92 case SkBlendMode::kDstOver: stage = SkRasterPipeline::dstover; break; in SkBlendMode_AppendStages()
93 case SkBlendMode::kSrcIn: stage = SkRasterPipeline::srcin; break; in SkBlendMode_AppendStages()
94 case SkBlendMode::kDstIn: stage = SkRasterPipeline::dstin; break; in SkBlendMode_AppendStages()
95 case SkBlendMode::kSrcOut: stage = SkRasterPipeline::srcout; break; in SkBlendMode_AppendStages()
96 case SkBlendMode::kDstOut: stage = SkRasterPipeline::dstout; break; in SkBlendMode_AppendStages()
[all …]
DSkRasterPipeline.cpp12 SkRasterPipeline::SkRasterPipeline(SkArenaAlloc* alloc) : fAlloc(alloc) { in SkRasterPipeline() function in SkRasterPipeline
15 void SkRasterPipeline::reset() { in reset()
21 void SkRasterPipeline::append(StockStage stage, void* ctx) { in append()
29 void SkRasterPipeline::unchecked_append(StockStage stage, void* ctx) { in unchecked_append()
34 void SkRasterPipeline::append(StockStage stage, uintptr_t ctx) { in append()
39 void SkRasterPipeline::append(void* fn, void* ctx) { in append()
45 void SkRasterPipeline::extend(const SkRasterPipeline& src) { in extend()
66 void SkRasterPipeline::dump() const { in dump()
85 void SkRasterPipeline::append_set_rgb(SkArenaAlloc* alloc, const float rgb[3]) { in append_set_rgb()
102 void SkRasterPipeline::append_constant_color(SkArenaAlloc* alloc, const float rgba[4]) { in append_constant_color()
[all …]
DSkRasterPipelineBlitter.cpp27 const SkRasterPipeline& shaderPipeline,
48 void append_load_dst (SkRasterPipeline*) const;
49 void append_store (SkRasterPipeline*) const;
54 SkRasterPipeline fColorPipeline;
113 shaderPipeline.append(SkRasterPipeline::scale_1_float, in SkCreateRasterPipelineBlitter()
126 const SkRasterPipeline& shaderPipeline, in SkCreateRasterPipelineBlitter()
137 const SkRasterPipeline& shaderPipeline, in Create()
188 colorPipeline->append(SkRasterPipeline::store_f32, &constantColorPtr); in Create()
246 void SkRasterPipelineBlitter::append_load_dst(SkRasterPipeline* p) const { in append_load_dst()
249 p->append(SkRasterPipeline::premul_dst); in append_load_dst()
[all …]
DSkColorFilter_Matrix.cpp71 SkRasterPipeline* p = rec.fPipeline; in onAppendStages()
72 if (!shaderIsOpaque) { p->append(SkRasterPipeline::unpremul); } in onAppendStages()
73 if ( hsla) { p->append(SkRasterPipeline::rgb_to_hsl); } in onAppendStages()
74 if ( true) { p->append(SkRasterPipeline::matrix_4x5, fMatrix); } in onAppendStages()
75 if ( hsla) { p->append(SkRasterPipeline::hsl_to_rgb); } in onAppendStages()
76 if ( true) { p->append(SkRasterPipeline::clamp_0); } in onAppendStages()
77 if ( true) { p->append(SkRasterPipeline::clamp_1); } in onAppendStages()
78 if (!willStayOpaque) { p->append(SkRasterPipeline::premul); } in onAppendStages()
DSkColorSpaceXformSteps.cpp147 void SkColorSpaceXformSteps::apply(SkRasterPipeline* p, bool src_is_normalized) const { in apply()
151 if (flags.unpremul) { p->append(SkRasterPipeline::unpremul); } in apply()
154 p->append(SkRasterPipeline::from_srgb); in apply()
161 p->append(SkRasterPipeline::gamma_, &srcTF.g); in apply()
163 p->append(SkRasterPipeline::parametric, &srcTF); in apply()
167 p->append(SkRasterPipeline::matrix_3x3, &src_to_dst_matrix); in apply()
171 p->append(SkRasterPipeline::to_srgb); in apply()
178 p->append(SkRasterPipeline::gamma_, &dstTFInv.g); in apply()
180 p->append(SkRasterPipeline::parametric, &dstTFInv); in apply()
183 if (flags.premul) { p->append(SkRasterPipeline::premul); } in apply()
DSkRasterPipeline.h207 class SkRasterPipeline {
209 explicit SkRasterPipeline(SkArenaAlloc*);
211 SkRasterPipeline(const SkRasterPipeline&) = delete;
212 SkRasterPipeline(SkRasterPipeline&&) = default;
214 SkRasterPipeline& operator=(const SkRasterPipeline&) = delete;
215 SkRasterPipeline& operator=(SkRasterPipeline&&) = default;
232 void extend(const SkRasterPipeline&);
290 class SkRasterPipeline_ : public SkRasterPipeline {
293 : SkRasterPipeline(&fBuiltinAlloc) {} in SkRasterPipeline_()
DSkColorFilter.cpp58 SkRasterPipeline pipeline(&alloc); in filterColor4f()
68 pipeline.append(SkRasterPipeline::store_f32, &dstPtr); in filterColor4f()
206 rec.fPipeline->append(SkRasterPipeline::unpremul); in onAppendStages()
214 rec.fPipeline->append(SkRasterPipeline::premul); in onAppendStages()
283 SkRasterPipeline* p = rec.fPipeline; in onAppendStages()
285 p->append(SkRasterPipeline::store_src, state->orig_rgba); in onAppendStages()
288 p->append(SkRasterPipeline::move_src_dst); in onAppendStages()
289 p->append(SkRasterPipeline::load_src, state->orig_rgba); in onAppendStages()
292 p->append(SkRasterPipeline::store_src, state->filtered_rgba); in onAppendStages()
293 p->append(SkRasterPipeline::load_src, state->orig_rgba); in onAppendStages()
[all …]
/third_party/skia/src/core/
DSkBlendMode.cpp87 void SkBlendMode_AppendStages(SkBlendMode mode, SkRasterPipeline* p) { in SkBlendMode_AppendStages()
88 auto stage = SkRasterPipeline::srcover; in SkBlendMode_AppendStages()
90 case SkBlendMode::kClear: stage = SkRasterPipeline::clear; break; in SkBlendMode_AppendStages()
92 case SkBlendMode::kDst: stage = SkRasterPipeline::move_dst_src; break; in SkBlendMode_AppendStages()
93 case SkBlendMode::kSrcOver: stage = SkRasterPipeline::srcover; break; in SkBlendMode_AppendStages()
94 case SkBlendMode::kDstOver: stage = SkRasterPipeline::dstover; break; in SkBlendMode_AppendStages()
95 case SkBlendMode::kSrcIn: stage = SkRasterPipeline::srcin; break; in SkBlendMode_AppendStages()
96 case SkBlendMode::kDstIn: stage = SkRasterPipeline::dstin; break; in SkBlendMode_AppendStages()
97 case SkBlendMode::kSrcOut: stage = SkRasterPipeline::srcout; break; in SkBlendMode_AppendStages()
98 case SkBlendMode::kDstOut: stage = SkRasterPipeline::dstout; break; in SkBlendMode_AppendStages()
[all …]
DSkRasterPipelineBlitter.cpp28 const SkRasterPipeline& shaderPipeline,
50 void append_load_dst (SkRasterPipeline*) const;
51 void append_store (SkRasterPipeline*) const;
54 void append_clip_scale (SkRasterPipeline*) const;
55 void append_clip_lerp (SkRasterPipeline*) const;
60 SkRasterPipeline fColorPipeline;
123 shaderPipeline.append(SkRasterPipeline::scale_1_float, in SkCreateRasterPipelineBlitter()
137 const SkRasterPipeline& shaderPipeline, in SkCreateRasterPipelineBlitter()
150 const SkRasterPipeline& shaderPipeline, in Create()
179 clipP->append(SkRasterPipeline::store_src_a, storage->fA); in Create()
[all …]
DSkRasterPipeline.cpp18 SkRasterPipeline::SkRasterPipeline(SkArenaAlloc* alloc) : fAlloc(alloc) { in SkRasterPipeline() function in SkRasterPipeline
21 void SkRasterPipeline::reset() { in reset()
27 void SkRasterPipeline::append(StockStage stage, void* ctx) { in append()
40 void SkRasterPipeline::unchecked_append(StockStage stage, void* ctx) { in unchecked_append()
45 void SkRasterPipeline::append(StockStage stage, uintptr_t ctx) { in append()
51 void SkRasterPipeline::extend(const SkRasterPipeline& src) { in extend()
72 void SkRasterPipeline::dump() const { in dump()
91 void SkRasterPipeline::append_set_rgb(SkArenaAlloc* alloc, const float rgb[3]) { in append_set_rgb()
108 void SkRasterPipeline::append_constant_color(SkArenaAlloc* alloc, const float rgba[4]) { in append_constant_color()
139 void SkRasterPipeline::append_matrix(SkArenaAlloc* alloc, const SkMatrix& matrix) { in append_matrix()
[all …]
DSkRasterPipeline.h195 class SkRasterPipeline {
197 explicit SkRasterPipeline(SkArenaAlloc*);
199 SkRasterPipeline(const SkRasterPipeline&) = delete;
200 SkRasterPipeline(SkRasterPipeline&&) = default;
202 SkRasterPipeline& operator=(const SkRasterPipeline&) = delete;
203 SkRasterPipeline& operator=(SkRasterPipeline&&) = default;
217 void extend(const SkRasterPipeline&);
276 class SkRasterPipeline_ : public SkRasterPipeline {
279 : SkRasterPipeline(&fBuiltinAlloc) {} in SkRasterPipeline_()
DSkColorFilter_Matrix.cpp69 SkRasterPipeline* p = rec.fPipeline; in onAppendStages()
70 if (!shaderIsOpaque) { p->append(SkRasterPipeline::unpremul); } in onAppendStages()
71 if ( hsla) { p->append(SkRasterPipeline::rgb_to_hsl); } in onAppendStages()
72 if ( true) { p->append(SkRasterPipeline::matrix_4x5, fMatrix); } in onAppendStages()
73 if ( hsla) { p->append(SkRasterPipeline::hsl_to_rgb); } in onAppendStages()
74 if ( true) { p->append(SkRasterPipeline::clamp_0); } in onAppendStages()
75 if ( true) { p->append(SkRasterPipeline::clamp_1); } in onAppendStages()
76 if (!willStayOpaque) { p->append(SkRasterPipeline::premul); } in onAppendStages()
/third_party/skia/src/shaders/
DSkImageShader.cpp396 SkRasterPipeline* p = rec.fPipeline; in doStages()
413 p->append(SkRasterPipeline::seed_shader); in doStages()
451 p->append(SkRasterPipeline::decal_x_and_y, decal_ctx); in doStages()
455 case SkTileMode::kMirror: p->append(SkRasterPipeline::mirror_x, limit_x); break; in doStages()
456 case SkTileMode::kRepeat: p->append(SkRasterPipeline::repeat_x, limit_x); break; in doStages()
457 case SkTileMode::kDecal: p->append(SkRasterPipeline::decal_x, decal_ctx); break; in doStages()
461 case SkTileMode::kMirror: p->append(SkRasterPipeline::mirror_y, limit_y); break; in doStages()
462 case SkTileMode::kRepeat: p->append(SkRasterPipeline::repeat_y, limit_y); break; in doStages()
463 case SkTileMode::kDecal: p->append(SkRasterPipeline::decal_y, decal_ctx); break; in doStages()
469 case kAlpha_8_SkColorType: p->append(SkRasterPipeline::gather_a8, ctx); break; in doStages()
[all …]
/third_party/skia/src/gpu/
DGrDataUtils.cpp347 static GrSwizzle get_load_and_src_swizzle(GrColorType ct, SkRasterPipeline::StockStage* load, in get_load_and_src_swizzle()
353 case GrColorType::kAlpha_8: *load = SkRasterPipeline::load_a8; break; in get_load_and_src_swizzle()
354 case GrColorType::kAlpha_16: *load = SkRasterPipeline::load_a16; break; in get_load_and_src_swizzle()
355 case GrColorType::kBGR_565: *load = SkRasterPipeline::load_565; break; in get_load_and_src_swizzle()
356 case GrColorType::kABGR_4444: *load = SkRasterPipeline::load_4444; break; in get_load_and_src_swizzle()
358 *load = SkRasterPipeline::load_4444; break; in get_load_and_src_swizzle()
360 *load = SkRasterPipeline::load_4444; break; in get_load_and_src_swizzle()
361 case GrColorType::kRGBA_8888: *load = SkRasterPipeline::load_8888; break; in get_load_and_src_swizzle()
362 case GrColorType::kRG_88: *load = SkRasterPipeline::load_rg88; break; in get_load_and_src_swizzle()
363 case GrColorType::kRGBA_1010102: *load = SkRasterPipeline::load_1010102; break; in get_load_and_src_swizzle()
[all …]
DGrSwizzle.cpp12 void GrSwizzle::apply(SkRasterPipeline* pipeline) const { in apply()
18 pipeline->append(SkRasterPipeline::swap_rb); in apply()
21 pipeline->append(SkRasterPipeline::alpha_to_gray); in apply()
24 pipeline->append(SkRasterPipeline::force_opaque); in apply()
32 pipeline->append(SkRasterPipeline::swizzle, ctx); in apply()
/third_party/skia/tests/
DSkRasterPipelineTest.cpp14 DEF_TEST(SkRasterPipeline, r) { in DEF_TEST() argument
26 p.append(SkRasterPipeline::load_f16, &load_s_ctx); in DEF_TEST()
27 p.append(SkRasterPipeline::load_f16_dst, &load_d_ctx); in DEF_TEST()
28 p.append(SkRasterPipeline::srcover); in DEF_TEST()
29 p.append(SkRasterPipeline::store_f16, &store_ctx); in DEF_TEST()
49 p.append(SkRasterPipeline::srcover); in DEF_TEST()
70 p.append(SkRasterPipeline:: load_8888, &src); in DEF_TEST()
71 p.append(SkRasterPipeline::store_8888, &dst); in DEF_TEST()
114 p.append(SkRasterPipeline::load_f32, &src); in DEF_TEST()
115 p.append(SkRasterPipeline::store_f32, &dst); in DEF_TEST()
[all …]
DF16StagesTest.cpp26 p.append(SkRasterPipeline:: load_f32, &f32); in DEF_TEST()
27 p.append(SkRasterPipeline::store_f16, &f16); in DEF_TEST()
41 p.append(SkRasterPipeline:: load_f16, &f16); in DEF_TEST()
42 p.append(SkRasterPipeline::store_f32, &f32); in DEF_TEST()
/third_party/flutter/skia/tests/
DSkRasterPipelineTest.cpp14 DEF_TEST(SkRasterPipeline, r) { in DEF_TEST() argument
26 p.append(SkRasterPipeline::load_f16, &load_s_ctx); in DEF_TEST()
27 p.append(SkRasterPipeline::load_f16_dst, &load_d_ctx); in DEF_TEST()
28 p.append(SkRasterPipeline::srcover); in DEF_TEST()
29 p.append(SkRasterPipeline::store_f16, &store_ctx); in DEF_TEST()
49 p.append(SkRasterPipeline::srcover); in DEF_TEST()
70 p.append(SkRasterPipeline:: load_8888, &src); in DEF_TEST()
71 p.append(SkRasterPipeline::store_8888, &dst); in DEF_TEST()
114 p.append(SkRasterPipeline::load_f32, &src); in DEF_TEST()
115 p.append(SkRasterPipeline::store_f32, &dst); in DEF_TEST()
[all …]
DF16StagesTest.cpp26 p.append(SkRasterPipeline:: load_f32, &f32); in DEF_TEST()
27 p.append(SkRasterPipeline::store_f16, &f16); in DEF_TEST()
41 p.append(SkRasterPipeline:: load_f16, &f16); in DEF_TEST()
42 p.append(SkRasterPipeline::store_f32, &f32); in DEF_TEST()
/third_party/flutter/skia/src/gpu/
DGrDataUtils.cpp372 static GrSwizzle get_load_and_get_swizzle(GrColorType ct, SkRasterPipeline::StockStage* load, in get_load_and_get_swizzle()
378 case GrColorType::kAlpha_8: *load = SkRasterPipeline::load_a8; break; in get_load_and_get_swizzle()
379 case GrColorType::kBGR_565: *load = SkRasterPipeline::load_565; break; in get_load_and_get_swizzle()
380 case GrColorType::kABGR_4444: *load = SkRasterPipeline::load_4444; break; in get_load_and_get_swizzle()
381 case GrColorType::kRGBA_8888: *load = SkRasterPipeline::load_8888; break; in get_load_and_get_swizzle()
382 case GrColorType::kRG_88: *load = SkRasterPipeline::load_rg88; break; in get_load_and_get_swizzle()
383 case GrColorType::kRGBA_1010102: *load = SkRasterPipeline::load_1010102; break; in get_load_and_get_swizzle()
384 case GrColorType::kAlpha_F16: *load = SkRasterPipeline::load_af16; break; in get_load_and_get_swizzle()
385 case GrColorType::kRGBA_F16_Clamped: *load = SkRasterPipeline::load_f16; break; in get_load_and_get_swizzle()
386 case GrColorType::kRG_1616: *load = SkRasterPipeline::load_rg1616; break; in get_load_and_get_swizzle()
[all …]
DGrSwizzle.cpp12 void GrSwizzle::apply(SkRasterPipeline* pipeline) const { in apply()
18 pipeline->append(SkRasterPipeline::swap_rb); in apply()
21 pipeline->append(SkRasterPipeline::alpha_to_gray); in apply()
24 pipeline->append(SkRasterPipeline::force_opaque); in apply()
32 pipeline->append(SkRasterPipeline::swizzle, ctx); in apply()
/third_party/flutter/skia/src/shaders/gradients/
DSkTwoPointConicalGradient.cpp180 void SkTwoPointConicalGradient::appendGradientStages(SkArenaAlloc* alloc, SkRasterPipeline* p, in appendGradientStages()
181 SkRasterPipeline* postPipeline) const { in appendGradientStages()
185 p->append(SkRasterPipeline::xy_to_radius); in appendGradientStages()
200 p->append(SkRasterPipeline::xy_to_2pt_conical_strip, ctx); in appendGradientStages()
201 p->append(SkRasterPipeline::mask_2pt_conical_nan, ctx); in appendGradientStages()
202 postPipeline->append(SkRasterPipeline::apply_vector_mask, &ctx->fMask); in appendGradientStages()
211 p->append(SkRasterPipeline::xy_to_2pt_conical_focal_on_circle); in appendGradientStages()
213 p->append(SkRasterPipeline::xy_to_2pt_conical_well_behaved, ctx); in appendGradientStages()
215 p->append(SkRasterPipeline::xy_to_2pt_conical_smaller, ctx); in appendGradientStages()
217 p->append(SkRasterPipeline::xy_to_2pt_conical_greater, ctx); in appendGradientStages()
[all …]
/third_party/skia/src/shaders/gradients/
DSkTwoPointConicalGradient.cpp156 void SkTwoPointConicalGradient::appendGradientStages(SkArenaAlloc* alloc, SkRasterPipeline* p, in appendGradientStages()
157 SkRasterPipeline* postPipeline) const { in appendGradientStages()
161 p->append(SkRasterPipeline::xy_to_radius); in appendGradientStages()
175 p->append(SkRasterPipeline::xy_to_2pt_conical_strip, ctx); in appendGradientStages()
176 p->append(SkRasterPipeline::mask_2pt_conical_nan, ctx); in appendGradientStages()
177 postPipeline->append(SkRasterPipeline::apply_vector_mask, &ctx->fMask); in appendGradientStages()
186 p->append(SkRasterPipeline::xy_to_2pt_conical_focal_on_circle); in appendGradientStages()
188 p->append(SkRasterPipeline::xy_to_2pt_conical_well_behaved, ctx); in appendGradientStages()
190 p->append(SkRasterPipeline::xy_to_2pt_conical_smaller, ctx); in appendGradientStages()
192 p->append(SkRasterPipeline::xy_to_2pt_conical_greater, ctx); in appendGradientStages()
[all …]
/third_party/flutter/skia/src/effects/
DSkHighContrastFilter.cpp59 SkRasterPipeline* p = rec.fPipeline; in onAppendStages()
63 p->append(SkRasterPipeline::unpremul); in onAppendStages()
75 p->append(SkRasterPipeline::parametric, tf); in onAppendStages()
85 p->append(SkRasterPipeline::matrix_3x4, matrix); in onAppendStages()
92 p->append(SkRasterPipeline::matrix_3x4, matrix); in onAppendStages()
94 p->append(SkRasterPipeline::rgb_to_hsl); in onAppendStages()
98 p->append(SkRasterPipeline::matrix_3x4, matrix); in onAppendStages()
99 p->append(SkRasterPipeline::hsl_to_rgb); in onAppendStages()
109 p->append(SkRasterPipeline::matrix_3x4, matrix); in onAppendStages()
112 p->append(SkRasterPipeline::clamp_0); in onAppendStages()
[all …]

12345