23 pipeline->
append(SkRasterPipelineOp::swap_rb);
26 pipeline->
append(SkRasterPipelineOp::alpha_to_gray);
29 pipeline->
append(SkRasterPipelineOp::force_opaque);
32 pipeline->
append(SkRasterPipelineOp::alpha_to_red);
35 static_assert(
sizeof(uintptr_t) >= 4 *
sizeof(
char));
39 memcpy(&ctx, this->
asString().c_str(), 4 *
sizeof(
char));
40 pipeline->
append(SkRasterPipelineOp::swizzle, ctx);
49 for (
int i = 0;
i < 4; ++
i) {
50 swiz[
i] = IToC(
key & 0xfU);
void append(SkRasterPipelineOp, void *=nullptr)
SkString asString() const
void apply(SkRasterPipeline *) const