#include "include/core/SkBlender.h"
#include "src/base/SkArenaAlloc.h"
#include <memory>
#include <optional>
Go to the source code of this file.
◆ SK_ALL_BLENDERS
#define SK_ALL_BLENDERS |
( |
|
M | ) |
|
Value:
Definition at line 30 of file SkBlenderBase.h.
39public:
40
41
42
43
44 virtual std::optional<SkBlendMode> asBlendMode() const { return {}; }
45
46 bool affectsTransparentBlack() const;
47
48 [[nodiscard]]
bool appendStages(
const SkStageRec& rec)
const {
49 return this->onAppendStages(rec);
50 }
51
52 [[nodiscard]]
virtual bool onAppendStages(
const SkStageRec& rec)
const = 0;
53
55
58
59 enum class BlenderType {
60 #define M(type) k ## type,
62 #undef M
63 };
64
65 virtual BlenderType
type()
const = 0;
66};
67
70}
71
74}
75
78}
79
80#endif
#define SK_ALL_BLENDERS(M)
SkBlenderBase * as_BB(SkBlender *blend)
static SkColor blend(SkColor dst, SkColor src, void(*mode)(float, float, float, float *, float *, float *))
◆ as_BB() [1/3]
◆ as_BB() [2/3]
◆ as_BB() [3/3]