Home
last modified time | relevance | path

Searched refs:SkRasterPipeline (Results 1 – 25 of 124) 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/shaders/
DSkImageShader.cpp278 SkRasterPipeline* p = rec.fPipeline; in onAppendStages()
318 p->append(SkRasterPipeline::seed_shader); in onAppendStages()
344 p->append(SkRasterPipeline::decal_x_and_y, decal_ctx); in onAppendStages()
348 case kMirror_TileMode: p->append(SkRasterPipeline::mirror_x, limit_x); break; in onAppendStages()
349 case kRepeat_TileMode: p->append(SkRasterPipeline::repeat_x, limit_x); break; in onAppendStages()
350 case kDecal_TileMode: p->append(SkRasterPipeline::decal_x, decal_ctx); break; in onAppendStages()
354 case kMirror_TileMode: p->append(SkRasterPipeline::mirror_y, limit_y); break; in onAppendStages()
355 case kRepeat_TileMode: p->append(SkRasterPipeline::repeat_y, limit_y); break; in onAppendStages()
356 case kDecal_TileMode: p->append(SkRasterPipeline::decal_y, decal_ctx); break; in onAppendStages()
362 case kAlpha_8_SkColorType: p->append(SkRasterPipeline::gather_a8, ctx); break; in onAppendStages()
[all …]
/external/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(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_()
DSkColorFilter.cpp47 void SkColorFilter::appendStages(SkRasterPipeline* p, in appendStages()
73 SkRasterPipeline pipeline(&alloc); in filterColor4f()
78 pipeline.append(SkRasterPipeline::store_f32, &dstPtr); in filterColor4f()
103 void onAppendStages(SkRasterPipeline* p, SkColorSpace* dst, SkArenaAlloc* scratch, in onAppendStages()
230 void onAppendStages(SkRasterPipeline* p, SkColorSpace*, SkArenaAlloc* alloc, in onAppendStages()
233 p->append(SkRasterPipeline::unpremul); in onAppendStages()
241 p->append(SkRasterPipeline::premul); in onAppendStages()
299 void onAppendStages(SkRasterPipeline* p, SkColorSpace* dst, SkArenaAlloc* alloc, in onAppendStages()
311 p->append(SkRasterPipeline::store_src, state->orig_rgba); in onAppendStages()
314 p->append(SkRasterPipeline::move_src_dst); in onAppendStages()
[all …]
/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_()
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()
DSkColorSpaceXformSteps.h14 class SkRasterPipeline; variable
37 void apply(SkRasterPipeline*, bool src_is_normalized) const;
39 void apply(SkRasterPipeline* p, SkColorType srcCT) const { in apply()
/external/skia/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/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/skia/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/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/effects/
DSkHighContrastFilter.cpp42 void onAppendStages(SkRasterPipeline* p,
60 void SkHighContrast_Filter::onAppendStages(SkRasterPipeline* p, in onAppendStages()
65 p->append(SkRasterPipeline::unpremul); in onAppendStages()
77 p->append(SkRasterPipeline::parametric, tf); in onAppendStages()
87 p->append(SkRasterPipeline::matrix_3x4, matrix); in onAppendStages()
94 p->append(SkRasterPipeline::matrix_3x4, matrix); in onAppendStages()
96 p->append(SkRasterPipeline::rgb_to_hsl); in onAppendStages()
100 p->append(SkRasterPipeline::matrix_3x4, matrix); in onAppendStages()
101 p->append(SkRasterPipeline::hsl_to_rgb); in onAppendStages()
111 p->append(SkRasterPipeline::matrix_3x4, matrix); in onAppendStages()
[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