Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
skottie::internal::AnimationBuilder::AutoScope Class Referencefinal

#include <SkottiePriv.h>

Public Member Functions

 AutoScope (const AnimationBuilder *builder)
 
 AutoScope (const AnimationBuilder *builder, AnimatorScope &&scope)
 
AnimatorScope release ()
 
 ~AutoScope ()
 

Detailed Description

Definition at line 112 of file SkottiePriv.h.

Constructor & Destructor Documentation

◆ AutoScope() [1/2]

skottie::internal::AnimationBuilder::AutoScope::AutoScope ( const AnimationBuilder builder)
inlineexplicit

Definition at line 114 of file SkottiePriv.h.

AutoScope(const AnimationBuilder *builder)
Definition: SkottiePriv.h:114
std::vector< sk_sp< Animator > > AnimatorScope
Definition: SkottiePriv.h:55

◆ AutoScope() [2/2]

skottie::internal::AnimationBuilder::AutoScope::AutoScope ( const AnimationBuilder builder,
AnimatorScope &&  scope 
)
inline

Definition at line 116 of file SkottiePriv.h.

117 : fBuilder(builder)
118 , fCurrentScope(std::move(scope))
119 , fPrevScope(fBuilder->fCurrentAnimatorScope) {
120 fBuilder->fCurrentAnimatorScope = &fCurrentScope;
121 }

◆ ~AutoScope()

skottie::internal::AnimationBuilder::AutoScope::~AutoScope ( )
inline

Definition at line 130 of file SkottiePriv.h.

130{ SkASSERT(!fBuilder); }
#define SkASSERT(cond)
Definition: SkAssert.h:116

Member Function Documentation

◆ release()

AnimatorScope skottie::internal::AnimationBuilder::AutoScope::release ( )
inline

Definition at line 123 of file SkottiePriv.h.

123 {
124 fBuilder->fCurrentAnimatorScope = fPrevScope;
125 SkDEBUGCODE(fBuilder = nullptr);
126
127 return std::move(fCurrentScope);
128 }
SkDEBUGCODE(SK_SPI) SkThreadID SkGetThreadID()

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