Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkRuntimeColorFilterBuilder Class Reference

#include <SkRuntimeEffect.h>

Inheritance diagram for SkRuntimeColorFilterBuilder:
SkRuntimeEffectBuilder

Public Member Functions

 SkRuntimeColorFilterBuilder (sk_sp< SkRuntimeEffect >)
 
 ~SkRuntimeColorFilterBuilder ()
 
 SkRuntimeColorFilterBuilder (const SkRuntimeColorFilterBuilder &)=delete
 
SkRuntimeColorFilterBuilderoperator= (const SkRuntimeColorFilterBuilder &)=delete
 
sk_sp< SkColorFiltermakeColorFilter () const
 
- Public Member Functions inherited from SkRuntimeEffectBuilder
const SkRuntimeEffecteffect () const
 
BuilderUniform uniform (std::string_view name)
 
BuilderChild child (std::string_view name)
 
sk_sp< const SkDatauniforms () const
 
SkSpan< const SkRuntimeEffect::ChildPtrchildren () const
 

Additional Inherited Members

- Protected Member Functions inherited from SkRuntimeEffectBuilder
 SkRuntimeEffectBuilder ()=delete
 
 SkRuntimeEffectBuilder (sk_sp< SkRuntimeEffect > effect)
 
 SkRuntimeEffectBuilder (sk_sp< SkRuntimeEffect > effect, sk_sp< SkData > uniforms)
 
 SkRuntimeEffectBuilder (SkRuntimeEffectBuilder &&)=default
 
 SkRuntimeEffectBuilder (const SkRuntimeEffectBuilder &)=default
 
SkRuntimeEffectBuilderoperator= (SkRuntimeEffectBuilder &&)=delete
 
SkRuntimeEffectBuilderoperator= (const SkRuntimeEffectBuilder &)=delete
 

Detailed Description

SkRuntimeColorFilterBuilder makes it easy to setup and assign uniforms to runtime color filters.

Definition at line 492 of file SkRuntimeEffect.h.

Constructor & Destructor Documentation

◆ SkRuntimeColorFilterBuilder() [1/2]

SkRuntimeColorFilterBuilder::SkRuntimeColorFilterBuilder ( sk_sp< SkRuntimeEffect effect)
explicit

Definition at line 980 of file SkRuntimeEffect.cpp.

981 : SkRuntimeEffectBuilder(std::move(effect)) {}
const SkRuntimeEffect * effect() const
SkRuntimeEffectBuilder()=delete

◆ ~SkRuntimeColorFilterBuilder()

SkRuntimeColorFilterBuilder::~SkRuntimeColorFilterBuilder ( )
default

◆ SkRuntimeColorFilterBuilder() [2/2]

SkRuntimeColorFilterBuilder::SkRuntimeColorFilterBuilder ( const SkRuntimeColorFilterBuilder )
delete

Member Function Documentation

◆ makeColorFilter()

sk_sp< SkColorFilter > SkRuntimeColorFilterBuilder::makeColorFilter ( ) const

Definition at line 985 of file SkRuntimeEffect.cpp.

985 {
986 return this->effect()->makeColorFilter(this->uniforms(), this->children());
987}
sk_sp< const SkData > uniforms() const
SkSpan< const SkRuntimeEffect::ChildPtr > children() const
sk_sp< SkColorFilter > makeColorFilter(sk_sp< const SkData > uniforms) const

◆ operator=()

SkRuntimeColorFilterBuilder & SkRuntimeColorFilterBuilder::operator= ( const SkRuntimeColorFilterBuilder )
delete

The documentation for this class was generated from the following files: