Flutter Impeller
blend_filter_contents.cc File Reference

Go to the source code of this file.

Namespaces

 impeller
 

Macros

#define BLEND_CASE(mode)
 

Typedefs

using impeller::PipelineProc = PipelineRef(ContentContext::*)(ContentContextOptions) const
 

Functions

std::optional< BlendMode > impeller::InvertPorterDuffBlend (BlendMode blend_mode)
 
template<typename TPipeline >
static std::optional< Entity > impeller::AdvancedBlend (const FilterInput::Vector &inputs, const ContentContext &renderer, const Entity &entity, const Rect &coverage, BlendMode blend_mode, std::optional< Color > foreground_color, ColorFilterContents::AbsorbOpacity absorb_opacity, PipelineProc pipeline_proc, std::optional< Scalar > alpha)
 
static std::optional< Entity > impeller::PipelineBlend (const FilterInput::Vector &inputs, const ContentContext &renderer, const Entity &entity, const Rect &coverage, BlendMode blend_mode, std::optional< Color > foreground_color, ColorFilterContents::AbsorbOpacity absorb_opacity, std::optional< Scalar > alpha)
 

Macro Definition Documentation

◆ BLEND_CASE

#define BLEND_CASE (   mode)
Value:
case BlendMode::k##mode: \
advanced_blend_proc_ = \
[](const FilterInput::Vector& inputs, const ContentContext& renderer, \
const Entity& entity, const Rect& coverage, BlendMode blend_mode, \
std::optional<Color> fg_color, \
ColorFilterContents::AbsorbOpacity absorb_opacity, \
std::optional<Scalar> alpha) { \
PipelineProc p = &ContentContext::GetBlend##mode##Pipeline; \
return AdvancedBlend<Blend##mode##Pipeline>( \
inputs, renderer, entity, coverage, blend_mode, fg_color, \
absorb_opacity, p, alpha); \
}; \
break;
TRect< Scalar > Rect
Definition: rect.h:792
BlendMode
Definition: color.h:58

Definition at line 911 of file blend_filter_contents.cc.