Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
SkRuntimeEffectBuilder::BuilderChild Struct Reference

#include <SkRuntimeEffect.h>

Public Member Functions

template<typename T >
BuilderChildoperator= (sk_sp< T > val)
 
BuilderChildoperator= (std::nullptr_t)
 

Public Attributes

SkRuntimeEffectBuilderfOwner
 
const SkRuntimeEffect::ChildfChild
 

Detailed Description

Definition at line 389 of file SkRuntimeEffect.h.

Member Function Documentation

◆ operator=() [1/2]

template<typename T >
BuilderChild & SkRuntimeEffectBuilder::BuilderChild::operator= ( sk_sp< T val)
inline

Definition at line 390 of file SkRuntimeEffect.h.

390 {
391 if (!fChild) {
392 SkDEBUGFAIL("Assigning to missing child");
393 } else {
394 fOwner->fChildren[(size_t)fChild->index] = std::move(val);
395 }
396 return *this;
397 }
#define SkDEBUGFAIL(message)
Definition: SkAssert.h:118
const SkRuntimeEffect::Child * fChild

◆ operator=() [2/2]

BuilderChild & SkRuntimeEffectBuilder::BuilderChild::operator= ( std::nullptr_t  )
inline

Definition at line 399 of file SkRuntimeEffect.h.

399 {
400 if (!fChild) {
401 SkDEBUGFAIL("Assigning to missing child");
402 } else {
403 fOwner->fChildren[(size_t)fChild->index] = SkRuntimeEffect::ChildPtr{};
404 }
405 return *this;
406 }

Member Data Documentation

◆ fChild

const SkRuntimeEffect::Child* SkRuntimeEffectBuilder::BuilderChild::fChild

Definition at line 409 of file SkRuntimeEffect.h.

◆ fOwner

SkRuntimeEffectBuilder* SkRuntimeEffectBuilder::BuilderChild::fOwner

Definition at line 408 of file SkRuntimeEffect.h.


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