Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
skottie_utils::ExternalAnimationPrecompInterceptor Class Referencefinal

#include <SkottieUtils.h>

Inheritance diagram for skottie_utils::ExternalAnimationPrecompInterceptor:
skottie::PrecompInterceptor SkRefCnt SkRefCntBase

Public Member Functions

 ExternalAnimationPrecompInterceptor (sk_sp< skresources::ResourceProvider >, const char prefix[])
 
 ~ExternalAnimationPrecompInterceptor () override
 
virtual sk_sp< ExternalLayeronLoadPrecomp (const char id[], const char name[], const SkSize &size)=0
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Detailed Description

A sample PrecompInterceptor implementation.

Attempts to substitute all precomp layers matching the given pattern (name prefix) with external Lottie animations.

Definition at line 137 of file SkottieUtils.h.

Constructor & Destructor Documentation

◆ ExternalAnimationPrecompInterceptor()

skottie_utils::ExternalAnimationPrecompInterceptor::ExternalAnimationPrecompInterceptor ( sk_sp< skresources::ResourceProvider rprovider,
const char  prefix[] 
)

Definition at line 271 of file SkottieUtils.cpp.

274 : fResourceProvider(std::move(rprovider))
275 , fPrefix(prefixp) {}

◆ ~ExternalAnimationPrecompInterceptor()

skottie_utils::ExternalAnimationPrecompInterceptor::~ExternalAnimationPrecompInterceptor ( )
overridedefault

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