Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkImage_Lazy::ScopedGenerator Class Reference

Public Member Functions

 ScopedGenerator (const sk_sp< SharedGenerator > &gen)
 
SkImageGeneratoroperator-> () const
 
 operator SkImageGenerator * () const
 

Detailed Description

Definition at line 77 of file SkImage_Lazy.cpp.

Constructor & Destructor Documentation

◆ ScopedGenerator()

SkImage_Lazy::ScopedGenerator::ScopedGenerator ( const sk_sp< SharedGenerator > &  gen)
inline

Definition at line 79 of file SkImage_Lazy.cpp.

80 : fSharedGenerator(gen)
81 , fAutoAcquire(gen->fMutex) {}
Definition: gen.py:1

Member Function Documentation

◆ operator SkImageGenerator *()

SkImage_Lazy::ScopedGenerator::operator SkImageGenerator * ( ) const
inline

Definition at line 88 of file SkImage_Lazy.cpp.

88 {
89 fSharedGenerator->fMutex.assertHeld();
90 return fSharedGenerator->fGenerator.get();
91 }
std::unique_ptr< SkImageGenerator > fGenerator
Definition: SkImage_Lazy.h:117

◆ operator->()

SkImageGenerator * SkImage_Lazy::ScopedGenerator::operator-> ( ) const
inline

Definition at line 83 of file SkImage_Lazy.cpp.

83 {
84 fSharedGenerator->fMutex.assertHeld();
85 return fSharedGenerator->fGenerator.get();
86 }

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