#include <PaintOption.h>
|
| 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 |
|
Definition at line 25 of file PaintOption.h.
◆ PaintOption()
skgpu::graphite::PaintOption::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 |
|
) |
| |
|
inline |
Definition at line 27 of file PaintOption.h.
35 : fOpaquePaintColor(opaquePaintColor)
37 , fShader(shader)
38 , fColorFilter(colorFilter)
39 , fHasPrimitiveBlender(hasPrimitiveBlender)
40 , fClipShader(clipShader)
41 , fDstReadReq(dstReadReq)
42 , fDither(dither) {
43 }
const PrecompileBlender * finalBlender() const
◆ finalBlender()
Definition at line 45 of file PaintOption.h.
45{ return fFinalBlender.first.get(); }
◆ toKey()
Definition at line 25 of file PaintOption.cpp.
27 {
28 this->handleDstRead(keyContext, keyBuilder, gatherer);
29
30 std::optional<SkBlendMode> finalBlendMode = this->
finalBlender()
34
36 }
37
38 if (fClipShader.first) {
40 fClipShader.first->priv().addToKey(keyContext, keyBuilder, gatherer,
41 fClipShader.second);
42 keyBuilder->endBlock();
43 }
44
45
49
50 keyBuilder->addBlock(fixedFuncBlendModeID);
51}
@ kSrcOver
r = s + (1-sa)*d
std::optional< SkBlendMode > asBlendMode() const
PrecompileBlenderPriv priv()
static constexpr int kFixedFunctionBlendModeIDOffset
static void BeginBlock(const KeyContext &, PaintParamsKeyBuilder *, PipelineDataGatherer *)
The documentation for this class was generated from the following files: