Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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.

114: AutoScope(builder, AnimatorScope()) {}
AutoScope(const AnimationBuilder *builder)
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 }
#define SkDEBUGCODE(...)
Definition SkDebug.h:23

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