Home
last modified time | relevance | path

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

12345

/external/skqp/src/shaders/
DSkImageShader.cpp271 SkRasterPipeline* p = rec.fPipeline; in onAppendStages()
311 p->append(SkRasterPipeline::seed_shader); in onAppendStages()
337 p->append(SkRasterPipeline::decal_x_and_y, decal_ctx); in onAppendStages()
341 case kMirror_TileMode: p->append(SkRasterPipeline::mirror_x, limit_x); break; in onAppendStages()
342 case kRepeat_TileMode: p->append(SkRasterPipeline::repeat_x, limit_x); break; in onAppendStages()
343 case kDecal_TileMode: p->append(SkRasterPipeline::decal_x, decal_ctx); break; in onAppendStages()
347 case kMirror_TileMode: p->append(SkRasterPipeline::mirror_y, limit_y); break; in onAppendStages()
348 case kRepeat_TileMode: p->append(SkRasterPipeline::repeat_y, limit_y); break; in onAppendStages()
349 case kDecal_TileMode: p->append(SkRasterPipeline::decal_y, decal_ctx); break; in onAppendStages()
355 case kAlpha_8_SkColorType: p->append(SkRasterPipeline::gather_a8, ctx); break; in onAppendStages()
[all …]
/external/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;
118 shaderPipeline.append(SkRasterPipeline::scale_1_float, in SkCreateRasterPipelineBlitter()
132 const SkRasterPipeline& shaderPipeline, in SkCreateRasterPipelineBlitter()
145 const SkRasterPipeline& shaderPipeline, in Create()
172 clipP->append(SkRasterPipeline::store_src_a, storage->fA); in Create()
[all …]
DSkRasterPipeline.cpp16 SkRasterPipeline::SkRasterPipeline(SkArenaAlloc* alloc) : fAlloc(alloc) { in SkRasterPipeline() function in SkRasterPipeline
19 void SkRasterPipeline::reset() { in reset()
25 void SkRasterPipeline::append(StockStage stage, void* ctx) { in append()
38 void SkRasterPipeline::unchecked_append(StockStage stage, void* ctx) { in unchecked_append()
43 void SkRasterPipeline::append(StockStage stage, uintptr_t ctx) { in append()
49 void SkRasterPipeline::extend(const SkRasterPipeline& src) { in extend()
70 void SkRasterPipeline::dump() const { in dump()
89 void SkRasterPipeline::append_set_rgb(SkArenaAlloc* alloc, const float rgb[3]) { in append_set_rgb()
106 void SkRasterPipeline::append_constant_color(SkArenaAlloc* alloc, const float rgba[4]) { in append_constant_color()
137 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()
/external/skqp/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(void* fn, void* ctx) { in append()
40 void SkRasterPipeline::extend(const SkRasterPipeline& src) { in extend()
61 void SkRasterPipeline::dump() const { in dump()
80 void SkRasterPipeline::append_set_rgb(SkArenaAlloc* alloc, const float rgb[3]) { in append_set_rgb()
97 void SkRasterPipeline::append_constant_color(SkArenaAlloc* alloc, const float rgba[4]) { in append_constant_color()
128 void SkRasterPipeline::append_matrix(SkArenaAlloc* alloc, const SkMatrix& matrix) { in append_matrix()
[all …]
DSkRasterPipelineBlitter.cpp27 const SkRasterPipeline& shaderPipeline,
48 void append_load_dst (SkRasterPipeline*) const;
49 void append_store (SkRasterPipeline*) const;
54 SkRasterPipeline fColorPipeline;
114 shaderPipeline.append(SkRasterPipeline::scale_1_float, in SkCreateRasterPipelineBlitter()
127 const SkRasterPipeline& shaderPipeline, in SkCreateRasterPipelineBlitter()
138 const SkRasterPipeline& shaderPipeline, in Create()
186 colorPipeline->append(SkRasterPipeline::store_f32, &constantColorPtr); in Create()
259 void SkRasterPipelineBlitter::append_load_dst(SkRasterPipeline* p) const { in append_load_dst()
262 p->append(SkRasterPipeline::premul_dst); in append_load_dst()
[all …]
DSkColorSpaceXformSteps.cpp139 void SkColorSpaceXformSteps::apply(SkRasterPipeline* p, bool src_is_normalized) const { in apply()
143 if (flags.unpremul) { p->append(SkRasterPipeline::unpremul); } in apply()
146 p->append(SkRasterPipeline::from_srgb); in apply()
153 p->append(SkRasterPipeline::gamma, &srcTF.g); in apply()
155 p->append(SkRasterPipeline::parametric, &srcTF); in apply()
159 p->append(SkRasterPipeline::matrix_3x3, &src_to_dst_matrix); in apply()
163 p->append(SkRasterPipeline::to_srgb); in apply()
170 p->append(SkRasterPipeline::gamma, &dstTFInv.g); in apply()
172 p->append(SkRasterPipeline::parametric, &dstTFInv); in apply()
175 if (flags.premul) { p->append(SkRasterPipeline::premul); } in apply()
DSkRasterPipeline.h177 class SkRasterPipeline {
179 explicit SkRasterPipeline(SkArenaAlloc*);
181 SkRasterPipeline(const SkRasterPipeline&) = delete;
182 SkRasterPipeline(SkRasterPipeline&&) = default;
184 SkRasterPipeline& operator=(const SkRasterPipeline&) = delete;
185 SkRasterPipeline& operator=(SkRasterPipeline&&) = default;
201 void extend(const SkRasterPipeline&);
260 class SkRasterPipeline_ : public SkRasterPipeline {
263 : SkRasterPipeline(&fBuiltinAlloc) {} in SkRasterPipeline_()
DSkColorSpaceXformSteps.h14 class SkRasterPipeline; variable
37 void apply(SkRasterPipeline*, bool src_is_normalized) const;
39 void apply(SkRasterPipeline* p, SkColorType srcCT) const { in apply()
DSkColorFilter.cpp45 void SkColorFilter::appendStages(SkRasterPipeline* p, in appendStages()
71 SkRasterPipeline pipeline(&alloc); in filterColor4f()
76 pipeline.append(SkRasterPipeline::store_f32, &dstPtr); in filterColor4f()
101 void onAppendStages(SkRasterPipeline* p, SkColorSpace* dst, SkArenaAlloc* scratch, in onAppendStages()
228 void onAppendStages(SkRasterPipeline* p, SkColorSpace*, SkArenaAlloc* alloc, in onAppendStages()
231 p->append(SkRasterPipeline::unpremul); in onAppendStages()
239 p->append(SkRasterPipeline::premul); in onAppendStages()
/external/skia/src/shaders/
DSkImageShader.cpp397 void append_matrix_stage(SkRasterPipeline* p) { in append_matrix_stage()
399 p->append(SkRasterPipeline::matrix_perspective, fMatrixStorage); in append_matrix_stage()
401 p->append(SkRasterPipeline::matrix_2x3, fMatrixStorage); in append_matrix_stage()
475 SkRasterPipeline* p = rec.fPipeline; in doStages()
492 p->append(SkRasterPipeline::seed_shader); in doStages()
530 p->append(SkRasterPipeline::decal_x_and_y, decal_ctx); in doStages()
534 case SkTileMode::kMirror: p->append(SkRasterPipeline::mirror_x, limit_x); break; in doStages()
535 case SkTileMode::kRepeat: p->append(SkRasterPipeline::repeat_x, limit_x); break; in doStages()
536 case SkTileMode::kDecal: p->append(SkRasterPipeline::decal_x, decal_ctx); break; in doStages()
540 case SkTileMode::kMirror: p->append(SkRasterPipeline::mirror_y, limit_y); break; in doStages()
[all …]
/external/skia/src/gpu/
DGrDataUtils.cpp343 static GrSwizzle get_load_and_src_swizzle(GrColorType ct, SkRasterPipeline::StockStage* load, in get_load_and_src_swizzle()
349 case GrColorType::kAlpha_8: *load = SkRasterPipeline::load_a8; break; in get_load_and_src_swizzle()
350 case GrColorType::kAlpha_16: *load = SkRasterPipeline::load_a16; break; in get_load_and_src_swizzle()
351 case GrColorType::kBGR_565: *load = SkRasterPipeline::load_565; break; in get_load_and_src_swizzle()
352 case GrColorType::kABGR_4444: *load = SkRasterPipeline::load_4444; break; in get_load_and_src_swizzle()
354 *load = SkRasterPipeline::load_4444; break; in get_load_and_src_swizzle()
356 *load = SkRasterPipeline::load_4444; break; in get_load_and_src_swizzle()
357 case GrColorType::kRGBA_8888: *load = SkRasterPipeline::load_8888; break; in get_load_and_src_swizzle()
358 case GrColorType::kRG_88: *load = SkRasterPipeline::load_rg88; break; in get_load_and_src_swizzle()
359 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()
/external/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()
DSRGBTest.cpp31 p.append(SkRasterPipeline::load_8888, &ptr); in DEF_TEST()
34 p.append(SkRasterPipeline::store_8888, &ptr); in DEF_TEST()
59 SkRasterPipeline p(&alloc); in DEF_TEST()
62 p.append(SkRasterPipeline::store_f32, &dst); in DEF_TEST()
105 p.append(SkRasterPipeline::load_f32, &ptr); in DEF_TEST()
108 p.append(SkRasterPipeline::store_f32, &ptr); in DEF_TEST()
/external/skqp/tests/
DSkRasterPipelineTest.cpp13 DEF_TEST(SkRasterPipeline, r) { in DEF_TEST() argument
25 p.append(SkRasterPipeline::load_f16, &load_s_ctx); in DEF_TEST()
26 p.append(SkRasterPipeline::load_f16_dst, &load_d_ctx); in DEF_TEST()
27 p.append(SkRasterPipeline::srcover); in DEF_TEST()
28 p.append(SkRasterPipeline::store_f16, &store_ctx); in DEF_TEST()
48 p.append(SkRasterPipeline::srcover); in DEF_TEST()
69 p.append(SkRasterPipeline:: load_8888, &src); in DEF_TEST()
70 p.append(SkRasterPipeline::store_8888, &dst); in DEF_TEST()
113 p.append(SkRasterPipeline::load_f32, &src); in DEF_TEST()
114 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()
DSRGBTest.cpp32 p.append(SkRasterPipeline::load_8888, &ptr); in DEF_TEST()
35 p.append(SkRasterPipeline::store_8888, &ptr); in DEF_TEST()
61 SkRasterPipeline p(&alloc); in DEF_TEST()
64 p.append(SkRasterPipeline::store_f32, &dst); in DEF_TEST()
110 p.append(SkRasterPipeline::load_f32, &ptr); in test_roundtripping()
113 p.append(SkRasterPipeline::store_f32, &ptr); in test_roundtripping()
/external/skqp/src/shaders/gradients/
DSkTwoPointConicalGradient.cpp187 void SkTwoPointConicalGradient::appendGradientStages(SkArenaAlloc* alloc, SkRasterPipeline* p, in appendGradientStages()
188 SkRasterPipeline* postPipeline) const { in appendGradientStages()
192 p->append(SkRasterPipeline::xy_to_radius); in appendGradientStages()
207 p->append(SkRasterPipeline::xy_to_2pt_conical_strip, ctx); in appendGradientStages()
208 p->append(SkRasterPipeline::mask_2pt_conical_nan, ctx); in appendGradientStages()
209 postPipeline->append(SkRasterPipeline::apply_vector_mask, &ctx->fMask); in appendGradientStages()
218 p->append(SkRasterPipeline::xy_to_2pt_conical_focal_on_circle); in appendGradientStages()
220 p->append(SkRasterPipeline::xy_to_2pt_conical_well_behaved, ctx); in appendGradientStages()
222 p->append(SkRasterPipeline::xy_to_2pt_conical_smaller, ctx); in appendGradientStages()
224 p->append(SkRasterPipeline::xy_to_2pt_conical_greater, ctx); in appendGradientStages()
[all …]
/external/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 …]
/external/skqp/src/effects/
DSkHighContrastFilter.cpp42 void onAppendStages(SkRasterPipeline* p,
60 void SkHighContrast_Filter::onAppendStages(SkRasterPipeline* p, in onAppendStages()
65 p->append(SkRasterPipeline::unpremul); in onAppendStages()
75 p->append(SkRasterPipeline::parametric, square); in onAppendStages()
86 p->append(SkRasterPipeline::matrix_3x4, matrix); in onAppendStages()
93 p->append(SkRasterPipeline::matrix_3x4, matrix); in onAppendStages()
95 p->append(SkRasterPipeline::rgb_to_hsl); in onAppendStages()
99 p->append(SkRasterPipeline::matrix_3x4, matrix); in onAppendStages()
100 p->append(SkRasterPipeline::hsl_to_rgb); in onAppendStages()
110 p->append(SkRasterPipeline::matrix_3x4, matrix); in onAppendStages()
[all …]

12345