/third_party/skia/src/core/ |
H A D | SkBlendMode.cpp | 9 #include "src/core/SkRasterPipeline.h" 21 // SkRasterPipeline. This lets us put the clamp inside the blend mode itself rather in SkBlendMode_ShouldPreScaleCoverage() 87 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 in SkBlendMode_AppendStages() [all...] |
H A D | SkRasterPipelineBlitter.cpp | 20 #include "src/core/SkRasterPipeline.h" 28 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() 131 // The shader can't draw with SkRasterPipeline. in SkCreateRasterPipelineBlitter() 137 const SkRasterPipeline in SkCreateRasterPipelineBlitter() [all...] |
H A D | SkRasterPipeline.cpp | 13 #include "src/core/SkRasterPipeline.h" 18 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 [all...] |
H A D | SkRasterPipeline.h | 25 * SkRasterPipeline provides a cheap way to chain together a pixel processing pipeline. 30 * end up bloating our code size dramatically. SkRasterPipeline stages can be chained together 195 class SkRasterPipeline { class 197 explicit SkRasterPipeline(SkArenaAlloc*); 199 SkRasterPipeline(const SkRasterPipeline&) = delete; 200 SkRasterPipeline(SkRasterPipeline&&) = default; 202 SkRasterPipeline& operator=(const SkRasterPipeline [all...] |
H A D | SkColorFilter_Matrix.cpp | 17 #include "src/core/SkRasterPipeline.h" 89 SkRasterPipeline* p = rec.fPipeline; in onAppendStages() 90 if (!shaderIsOpaque) { p->append(SkRasterPipeline::unpremul); } in onAppendStages() 91 if ( hsla) { p->append(SkRasterPipeline::rgb_to_hsl); } in onAppendStages() 92 if ( true) { p->append(SkRasterPipeline::matrix_4x5, fMatrix); } in onAppendStages() 93 if ( hsla) { p->append(SkRasterPipeline::hsl_to_rgb); } in onAppendStages() 96 if ( needClamp) { p->append(SkRasterPipeline::clamp_0); } in onAppendStages() 97 if ( needClamp) { p->append(SkRasterPipeline::clamp_1); } in onAppendStages() 99 if ( true) { p->append(SkRasterPipeline::clamp_0); } in onAppendStages() 100 if ( true) { p->append(SkRasterPipeline in onAppendStages() [all...] |
H A D | SkEffectPriv.h | 18 class SkRasterPipeline; 22 SkRasterPipeline* fPipeline;
|
H A D | SkBlendModePriv.h | 15 class SkRasterPipeline; 31 void SkBlendMode_AppendStages(SkBlendMode, SkRasterPipeline*);
|
H A D | SkColorSpaceXformSteps.h | 16 class SkRasterPipeline; 45 void apply(SkRasterPipeline*) const;
|
H A D | SkColorSpaceXformSteps.cpp | 11 #include "src/core/SkRasterPipeline.h" 132 void SkColorSpaceXformSteps::apply(SkRasterPipeline* p) const { in apply() 133 if (flags.unpremul) { p->append(SkRasterPipeline::unpremul); } in apply() 135 if (flags.gamut_transform) { p->append(SkRasterPipeline::matrix_3x3, &src_to_dst_matrix); } in apply() 137 if (flags.premul) { p->append(SkRasterPipeline::premul); } in apply()
|
/third_party/skia/src/shaders/ |
H A D | SkImageShader.cpp | 17 #include "src/core/SkRasterPipeline.h" 396 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 in doStages() [all...] |
H A D | SkTransformShader.cpp | 9 #include "src/core/SkRasterPipeline.h" 50 void SkTransformShader::appendMatrix(const SkMatrix& matrix, SkRasterPipeline* p) const { in appendMatrix() 53 p->append(SkRasterPipeline::matrix_perspective, fMatrixStorage); in appendMatrix() 55 p->append(SkRasterPipeline::matrix_2x3, fMatrixStorage); in appendMatrix()
|
/third_party/skia/src/gpu/ |
H A D | GrDataUtils.cpp | 17 #include "src/core/SkRasterPipeline.h" 403 static GrSwizzle get_load_and_src_swizzle(GrColorType ct, SkRasterPipeline::StockStage* load, in get_load_and_src_swizzle() 409 case GrColorType::kAlpha_8: *load = SkRasterPipeline::load_a8; break; in get_load_and_src_swizzle() 410 case GrColorType::kAlpha_16: *load = SkRasterPipeline::load_a16; break; in get_load_and_src_swizzle() 411 case GrColorType::kBGR_565: *load = SkRasterPipeline::load_565; break; in get_load_and_src_swizzle() 412 case GrColorType::kABGR_4444: *load = SkRasterPipeline::load_4444; break; in get_load_and_src_swizzle() 414 *load = SkRasterPipeline::load_4444; break; in get_load_and_src_swizzle() 416 *load = SkRasterPipeline::load_4444; break; in get_load_and_src_swizzle() 417 case GrColorType::kRGBA_8888: *load = SkRasterPipeline::load_8888; break; in get_load_and_src_swizzle() 418 case GrColorType::kRG_88: *load = SkRasterPipeline in get_load_and_src_swizzle() [all...] |
H A D | GrSwizzle.cpp | 10 #include "src/core/SkRasterPipeline.h" 12 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/ |
H A D | SkRasterPipelineTest.cpp | 10 #include "src/core/SkRasterPipeline.h" 14 DEF_TEST(SkRasterPipeline, r) { in DEF_TEST() 15 // Build and run a simple pipeline to exercise SkRasterPipeline, in DEF_TEST() 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 in DEF_TEST() [all...] |
H A D | SRGBTest.cpp | 10 #include "src/core/SkRasterPipeline.h" 31 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()
|
H A D | F16StagesTest.cpp | 8 #include "src/core/SkRasterPipeline.h" 12 // Make sure SkRasterPipeline::load_f16 and store_f16 can handle a range of in DEF_TEST() 26 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/skia/src/shaders/gradients/ |
H A D | SkTwoPointConicalGradient.cpp | 9 #include "src/core/SkRasterPipeline.h" 156 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 in appendGradientStages() [all...] |
H A D | SkRadialGradient.cpp | 8 #include "src/core/SkRasterPipeline.h" 61 void SkRadialGradient::appendGradientStages(SkArenaAlloc*, SkRasterPipeline* p, in appendGradientStages() 62 SkRasterPipeline*) const { in appendGradientStages() 63 p->append(SkRasterPipeline::xy_to_radius); in appendGradientStages()
|
H A D | SkGradientShaderPriv.h | 21 class SkRasterPipeline; 86 virtual void appendGradientStages(SkArenaAlloc* alloc, SkRasterPipeline* tPipeline, 87 SkRasterPipeline* postPipeline) const = 0;
|
H A D | SkSweepGradient.cpp | 9 #include "src/core/SkRasterPipeline.h" 60 void SkSweepGradient::appendGradientStages(SkArenaAlloc* alloc, SkRasterPipeline* p, 61 SkRasterPipeline*) const { 62 p->append(SkRasterPipeline::xy_to_unit_angle);
|
H A D | SkLinearGradient.h | 29 void appendGradientStages(SkArenaAlloc* alloc, SkRasterPipeline* tPipeline, 30 SkRasterPipeline* postPipeline) const final;
|
H A D | SkRadialGradient.h | 26 void appendGradientStages(SkArenaAlloc* alloc, SkRasterPipeline* tPipeline, 27 SkRasterPipeline* postPipeline) const override;
|
H A D | SkSweepGradient.h | 30 void appendGradientStages(SkArenaAlloc* alloc, SkRasterPipeline* tPipeline, 31 SkRasterPipeline* postPipeline) const override;
|
H A D | SkTwoPointConicalGradient.h | 69 void appendGradientStages(SkArenaAlloc* alloc, SkRasterPipeline* tPipeline, 70 SkRasterPipeline* postPipeline) const override;
|
/third_party/skia/src/opts/ |
H A D | SkOpts_hsw.cpp | 37 #define M(st) stages_highp[SkRasterPipeline::st] = (StageFn)SK_OPTS_NS::st; in Init_hsw() 43 #define M(st) stages_lowp[SkRasterPipeline::st] = (StageFn)SK_OPTS_NS::lowp::st; in Init_hsw()
|