Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
blend_filter_contents.cc File Reference

Go to the source code of this file.

Namespaces

namespace  impeller
 

Macros

#define BLEND_CASE(mode)
 

Typedefs

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

Functions

std::optional< BlendModeimpeller::InvertPorterDuffBlend (BlendMode blend_mode)
 
template<typename TPipeline >
static std::optional< Entityimpeller::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< Entityimpeller::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;

Definition at line 910 of file blend_filter_contents.cc.

911 : \
912 advanced_blend_proc_ = \
913 [](const FilterInput::Vector& inputs, const ContentContext& renderer, \
914 const Entity& entity, const Rect& coverage, BlendMode blend_mode, \
915 std::optional<Color> fg_color, \
916 ColorFilterContents::AbsorbOpacity absorb_opacity, \
917 std::optional<Scalar> alpha) { \
918 PipelineProc p = &ContentContext::GetBlend##mode##Pipeline; \
919 return AdvancedBlend<Blend##mode##Pipeline>( \
920 inputs, renderer, entity, coverage, blend_mode, fg_color, \
921 absorb_opacity, p, alpha); \
922 }; \
923 break;
it will be possible to load the file into Perfetto s trace viewer use test Running tests that layout and measure text will not yield consistent results across various platforms Enabling this option will make font resolution default to the Ahem test font on all disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive mode
TRect< Scalar > Rect
Definition rect.h:822
BlendMode
Definition color.h:58
PipelineRef(ContentContext::*)(ContentContextOptions) const PipelineProc