Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
RasterDataHolder Struct Reference

Public Member Functions

 RasterDataHolder ()
 

Static Public Member Functions

static void Release (const void *pixels, void *context)
 

Public Attributes

sk_sp< SkDatafData
 
int fReleaseCount
 

Detailed Description

Definition at line 183 of file ImageTest.cpp.

Constructor & Destructor Documentation

◆ RasterDataHolder()

RasterDataHolder::RasterDataHolder ( )
inline

Definition at line 184 of file ImageTest.cpp.

184: fReleaseCount(0) {}

Member Function Documentation

◆ Release()

static void RasterDataHolder::Release ( const void *  pixels,
void *  context 
)
inlinestatic

Definition at line 187 of file ImageTest.cpp.

187 {
188 RasterDataHolder* self = static_cast<RasterDataHolder*>(context);
189 self->fReleaseCount++;
190 self->fData.reset();
191 }

Member Data Documentation

◆ fData

sk_sp<SkData> RasterDataHolder::fData

Definition at line 185 of file ImageTest.cpp.

◆ fReleaseCount

int RasterDataHolder::fReleaseCount

Definition at line 186 of file ImageTest.cpp.


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