Flutter Engine
The Flutter Engine
Functions
skgpu::graphite::PrecompileBlenders Namespace Reference

Functions

SK_API sk_sp< PrecompileBlenderArithmetic ()
 
SK_API sk_sp< PrecompileBlenderMode (SkBlendMode)
 

Function Documentation

◆ Arithmetic()

sk_sp< PrecompileBlender > skgpu::graphite::PrecompileBlenders::Arithmetic ( )

Definition at line 44 of file PrecompileBlender.cpp.

44 {
45 const SkRuntimeEffect* arithmeticEffect =
46 GetKnownRuntimeEffect(SkKnownRuntimeEffects::StableKey::kArithmetic);
47
48 return MakePrecompileBlender(sk_ref_sp(arithmeticEffect));
49}
sk_sp< T > sk_ref_sp(T *obj)
Definition: SkRefCnt.h:381
const SkRuntimeEffect * GetKnownRuntimeEffect(StableKey stableKey)
sk_sp< PrecompileBlender > MakePrecompileBlender(sk_sp< SkRuntimeEffect > effect, SkSpan< const PrecompileChildOptions > childOptions)

◆ Mode()

sk_sp< PrecompileBlender > skgpu::graphite::PrecompileBlenders::Mode ( SkBlendMode  blendMode)

Definition at line 39 of file PrecompileBlender.cpp.

39 {
40 return sk_make_sp<PrecompileBlendModeBlender>(blendMode);
41}