Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
SharedGenerator Class Referencefinal

#include <SkImage_Lazy.h>

Inheritance diagram for SharedGenerator:
SkNVRefCnt< SharedGenerator >

Public Member Functions

const SkImageInfogetInfo () const
 
bool isTextureGenerator ()
 
- Public Member Functions inherited from SkNVRefCnt< SharedGenerator >
 SkNVRefCnt ()
 
 ~SkNVRefCnt ()
 
bool unique () const
 
void ref () const
 
void unref () const
 
void deref () const
 
bool refCntGreaterThan (int32_t threadIsolatedTestCnt) const
 

Static Public Member Functions

static sk_sp< SharedGeneratorMake (std::unique_ptr< SkImageGenerator > gen)
 

Public Attributes

std::unique_ptr< SkImageGeneratorfGenerator
 
SkMutex fMutex
 

Detailed Description

Definition at line 108 of file SkImage_Lazy.h.

Member Function Documentation

◆ getInfo()

const SkImageInfo & SharedGenerator::getInfo ( ) const

Definition at line 36 of file SkImage_Lazy.cpp.

36{ return fGenerator->getInfo(); }
std::unique_ptr< SkImageGenerator > fGenerator
Definition: SkImage_Lazy.h:117

◆ isTextureGenerator()

bool SharedGenerator::isTextureGenerator ( )

Definition at line 38 of file SkImage_Lazy.cpp.

38{ return fGenerator->isTextureGenerator(); }

◆ Make()

sk_sp< SharedGenerator > SharedGenerator::Make ( std::unique_ptr< SkImageGenerator gen)
static

Definition at line 27 of file SkImage_Lazy.cpp.

27 {
28 return gen ? sk_sp<SharedGenerator>(new SharedGenerator(std::move(gen))) : nullptr;
29}
Definition: gen.py:1

Member Data Documentation

◆ fGenerator

std::unique_ptr<SkImageGenerator> SharedGenerator::fGenerator

Definition at line 117 of file SkImage_Lazy.h.

◆ fMutex

SkMutex SharedGenerator::fMutex

Definition at line 118 of file SkImage_Lazy.h.


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