Flutter Engine
The Flutter Engine
Classes | Public Member Functions | Protected Member Functions | List of all members
SkRuntimeEffectBuilder Class Reference

#include <SkRuntimeEffect.h>

Inheritance diagram for SkRuntimeEffectBuilder:
SkRuntimeBlendBuilder SkRuntimeColorFilterBuilder SkRuntimeShaderBuilder

Classes

struct  BuilderChild
 
struct  BuilderUniform
 

Public Member Functions

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
 

Protected Member Functions

 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

Base class for SkRuntimeShaderBuilder, defined below.

Definition at line 332 of file SkRuntimeEffect.h.

Constructor & Destructor Documentation

◆ SkRuntimeEffectBuilder() [1/5]

SkRuntimeEffectBuilder::SkRuntimeEffectBuilder ( )
protecteddelete

◆ SkRuntimeEffectBuilder() [2/5]

SkRuntimeEffectBuilder::SkRuntimeEffectBuilder ( sk_sp< SkRuntimeEffect effect)
inlineexplicitprotected

Definition at line 424 of file SkRuntimeEffect.h.

425 : fEffect(std::move(effect))
426 , fUniforms(SkData::MakeZeroInitialized(fEffect->uniformSize()))
427 , fChildren(fEffect->children().size()) {}
static sk_sp< SkData > MakeZeroInitialized(size_t length)
Definition: SkData.cpp:120
const SkRuntimeEffect * effect() const
size_t uniformSize() const
SkSpan< const Child > children() const

◆ SkRuntimeEffectBuilder() [3/5]

SkRuntimeEffectBuilder::SkRuntimeEffectBuilder ( sk_sp< SkRuntimeEffect effect,
sk_sp< SkData uniforms 
)
inlineexplicitprotected

Definition at line 428 of file SkRuntimeEffect.h.

429 : fEffect(std::move(effect))
430 , fUniforms(std::move(uniforms))
431 , fChildren(fEffect->children().size()) {}
sk_sp< const SkData > uniforms() const

◆ SkRuntimeEffectBuilder() [4/5]

SkRuntimeEffectBuilder::SkRuntimeEffectBuilder ( SkRuntimeEffectBuilder &&  )
protecteddefault

◆ SkRuntimeEffectBuilder() [5/5]

SkRuntimeEffectBuilder::SkRuntimeEffectBuilder ( const SkRuntimeEffectBuilder )
protecteddefault

Member Function Documentation

◆ child()

BuilderChild SkRuntimeEffectBuilder::child ( std::string_view  name)
inline

Definition at line 415 of file SkRuntimeEffect.h.

415{ return { this, fEffect->findChild(name) }; }
const Child * findChild(std::string_view name) const
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32

◆ children()

SkSpan< const SkRuntimeEffect::ChildPtr > SkRuntimeEffectBuilder::children ( ) const
inline

Definition at line 420 of file SkRuntimeEffect.h.

420{ return fChildren; }

◆ effect()

const SkRuntimeEffect * SkRuntimeEffectBuilder::effect ( ) const
inline

Definition at line 412 of file SkRuntimeEffect.h.

412{ return fEffect.get(); }
T * get() const
Definition: SkRefCnt.h:303

◆ operator=() [1/2]

SkRuntimeEffectBuilder & SkRuntimeEffectBuilder::operator= ( const SkRuntimeEffectBuilder )
protecteddelete

◆ operator=() [2/2]

SkRuntimeEffectBuilder & SkRuntimeEffectBuilder::operator= ( SkRuntimeEffectBuilder &&  )
protecteddelete

◆ uniform()

BuilderUniform SkRuntimeEffectBuilder::uniform ( std::string_view  name)
inline

Definition at line 414 of file SkRuntimeEffect.h.

414{ return { this, fEffect->findUniform(name) }; }
const Uniform * findUniform(std::string_view name) const

◆ uniforms()

sk_sp< const SkData > SkRuntimeEffectBuilder::uniforms ( ) const
inline

Definition at line 419 of file SkRuntimeEffect.h.

419{ return fUniforms; }

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