Flutter Engine
The Flutter Engine
Classes | Namespaces | Macros | Functions
SkBlenderBase.h File Reference
#include "include/core/SkBlender.h"
#include "src/base/SkArenaAlloc.h"
#include <memory>
#include <optional>

Go to the source code of this file.

Classes

class  SkBlenderBase
 

Namespaces

namespace  skgpu
 
namespace  skgpu::graphite
 

Macros

#define SK_ALL_BLENDERS(M)
 
#define M(type)   k ## type,
 

Functions

SkBlenderBaseas_BB (SkBlender *blend)
 
const SkBlenderBaseas_BB (const SkBlender *blend)
 
const SkBlenderBaseas_BB (const sk_sp< SkBlender > &blend)
 

Macro Definition Documentation

◆ M

#define M (   type)    k ## type,

Definition at line 61 of file SkBlenderBase.h.

◆ SK_ALL_BLENDERS

#define SK_ALL_BLENDERS (   M)
Value:
M(Runtime)
#define M(type)
Definition: SkBlenderBase.h:61
BlendMode
Definition: color.h:59

Definition at line 30 of file SkBlenderBase.h.

Function Documentation

◆ as_BB() [1/3]

const SkBlenderBase * as_BB ( const sk_sp< SkBlender > &  blend)
inline

Definition at line 77 of file SkBlenderBase.h.

77 {
78 return static_cast<SkBlenderBase*>(blend.get());
79}
static SkColor blend(SkColor dst, SkColor src, void(*mode)(float, float, float, float *, float *, float *))
Definition: hsl.cpp:142

◆ as_BB() [2/3]

const SkBlenderBase * as_BB ( const SkBlender blend)
inline

Definition at line 73 of file SkBlenderBase.h.

73 {
74 return static_cast<const SkBlenderBase*>(blend);
75}

◆ as_BB() [3/3]

SkBlenderBase * as_BB ( SkBlender blend)
inline

Definition at line 69 of file SkBlenderBase.h.

69 {
70 return static_cast<SkBlenderBase*>(blend);
71}