#include <PaintParams.h>
Definition at line 34 of file PaintParams.h.
◆ PaintParams() [1/2]
Definition at line 53 of file PaintParams.cpp.
58 : fColor(
paint.getColor4f())
59 , fFinalBlender(
paint.refBlender())
60 , fShader(
paint.refShader())
61 , fColorFilter(
paint.refColorFilter())
63 , fClipShader(std::move(clipShader))
64 , fDstReadReq(dstReadReq)
66 , fDither(
paint.isDither()) {}
bool skipColorXform() const
SkBlender * primitiveBlender() const
◆ PaintParams() [2/2]
skgpu::graphite::PaintParams::PaintParams |
( |
const PaintParams & |
| ) |
|
|
default |
◆ ~PaintParams()
skgpu::graphite::PaintParams::~PaintParams |
( |
| ) |
|
|
default |
◆ asFinalBlendMode()
std::optional< SkBlendMode > skgpu::graphite::PaintParams::asFinalBlendMode |
( |
| ) |
const |
Definition at line 72 of file PaintParams.cpp.
72 {
75}
@ kSrcOver
r = s + (1-sa)*d
SkBlenderBase * as_BB(SkBlender *blend)
virtual std::optional< SkBlendMode > asBlendMode() const
◆ color()
SkColor4f skgpu::graphite::PaintParams::color |
( |
| ) |
const |
|
inline |
◆ Color4fPrepForDst()
Converts an SkColor4f to the destination color space.
Definition at line 85 of file PaintParams.cpp.
85 {
86
89
93}
SkColorSpace * sk_srgb_singleton()
SkColorSpace * colorSpace() const
◆ colorFilter()
SkColorFilter * skgpu::graphite::PaintParams::colorFilter |
( |
| ) |
const |
|
inline |
◆ dither()
bool skgpu::graphite::PaintParams::dither |
( |
| ) |
const |
|
inline |
◆ dstReadRequirement()
◆ finalBlender()
SkBlender * skgpu::graphite::PaintParams::finalBlender |
( |
| ) |
const |
|
inline |
◆ notifyImagesInUse()
void skgpu::graphite::PaintParams::notifyImagesInUse |
( |
Recorder * |
recorder, |
|
|
DrawContext * |
drawContext |
|
) |
| const |
Definition at line 339 of file PaintParams.cpp.
340 {
341 if (fShader) {
343 }
344 if (fPrimitiveBlender) {
346 }
347 if (fColorFilter) {
349 }
350 if (fFinalBlender) {
352 }
353 if (fClipShader) {
355 }
356}
void NotifyImagesInUse(Recorder *recorder, DrawContext *drawContext, const SkBlender *blender)
◆ operator=()
◆ primitiveBlender()
SkBlender * skgpu::graphite::PaintParams::primitiveBlender |
( |
| ) |
const |
|
inline |
◆ refColorFilter()
◆ refFinalBlender()
sk_sp< SkBlender > skgpu::graphite::PaintParams::refFinalBlender |
( |
| ) |
const |
◆ refPrimitiveBlender()
sk_sp< SkBlender > skgpu::graphite::PaintParams::refPrimitiveBlender |
( |
| ) |
const |
◆ refShader()
sk_sp< SkShader > skgpu::graphite::PaintParams::refShader |
( |
| ) |
const |
◆ shader()
SkShader * skgpu::graphite::PaintParams::shader |
( |
| ) |
const |
|
inline |
◆ skipColorXform()
bool skgpu::graphite::PaintParams::skipColorXform |
( |
| ) |
const |
|
inline |
◆ toKey()
Definition at line 311 of file PaintParams.cpp.
313 {
314 this->handleDstRead(keyContext,
builder, gatherer);
315
318
320 }
321
322 if (fClipShader) {
324
326
328 }
329
330
334
335 builder->addBlock(fixedFuncBlendModeID);
336}
std::optional< SkBlendMode > asFinalBlendMode() const
static constexpr int kFixedFunctionBlendModeIDOffset
void AddToKey(const KeyContext &keyContext, PaintParamsKeyBuilder *builder, PipelineDataGatherer *gatherer, const SkBlender *blender)
static void BeginBlock(const KeyContext &, PaintParamsKeyBuilder *, PipelineDataGatherer *)
The documentation for this class was generated from the following files: