8#ifndef skgpu_graphite_precompile_PaintOption_DEFINED
9#define skgpu_graphite_precompile_PaintOption_DEFINED
17class PrecompileBlender;
18class PrecompileColorFilter;
19class PrecompileShader;
22class PaintParamsKeyBuilder;
23class PipelineDataGatherer;
31 bool hasPrimitiveBlender,
35 : fOpaquePaintColor(opaquePaintColor)
38 , fColorFilter(colorFilter)
39 , fHasPrimitiveBlender(hasPrimitiveBlender)
40 , fClipShader(clipShader)
41 , fDstReadReq(dstReadReq)
61 bool fOpaquePaintColor;
62 std::pair<sk_sp<PrecompileBlender>,
int> fFinalBlender;
63 std::pair<sk_sp<PrecompileShader>,
int> fShader;
64 std::pair<sk_sp<PrecompileColorFilter>,
int> fColorFilter;
65 bool fHasPrimitiveBlender;
66 std::pair<sk_sp<PrecompileShader>,
int> fClipShader;
PaintOption(bool opaquePaintColor, const std::pair< sk_sp< PrecompileBlender >, int > &finalBlender, const std::pair< sk_sp< PrecompileShader >, int > &shader, const std::pair< sk_sp< PrecompileColorFilter >, int > &colorFilter, bool hasPrimitiveBlender, const std::pair< sk_sp< PrecompileShader >, int > &clipShader, DstReadRequirement dstReadReq, bool dither)
const PrecompileBlender * finalBlender() const
void toKey(const KeyContext &, PaintParamsKeyBuilder *, PipelineDataGatherer *) const