Flutter Engine
The Flutter Engine
|
Functions | |
std::unique_ptr< GrFragmentProcessor > | Make (std::unique_ptr< GrFragmentProcessor > src, std::unique_ptr< GrFragmentProcessor > dst, SkBlendMode mode, bool shareBlendLogic=true) |
template<SkBlendMode mode> | |
std::unique_ptr< GrFragmentProcessor > | Make (std::unique_ptr< GrFragmentProcessor > src, std::unique_ptr< GrFragmentProcessor > dst) |
std::unique_ptr< GrFragmentProcessor > GrBlendFragmentProcessor::Make | ( | std::unique_ptr< GrFragmentProcessor > | src, |
std::unique_ptr< GrFragmentProcessor > | dst | ||
) |
Blends src and dst inputs according to the blend mode. If either input is null, fInputColor is used instead. Hard-wires a single blend mode into the code (slightly reducing complexity).
Definition at line 36 of file GrBlendFragmentProcessor.h.
std::unique_ptr< GrFragmentProcessor > GrBlendFragmentProcessor::Make | ( | std::unique_ptr< GrFragmentProcessor > | src, |
std::unique_ptr< GrFragmentProcessor > | dst, | ||
SkBlendMode | mode, | ||
bool | shareBlendLogic = true |
||
) |
Blends src and dst inputs according to the blend mode. If either input is null, fInputColor is used instead.
shareBlendLogic
is false, the blend function logic is written directly into the code.shareBlendLogic
is true, most Porter-Duff blends share the same code, and a uniform is used to pick the blend type. This can reduce our overall shader count. Definition at line 272 of file GrBlendFragmentProcessor.cpp.