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

Public Member Functions

 PromiseTextureChecker (const GrBackendTexture &tex, skiatest::Reporter *reporter, bool shared)
 

Static Public Member Functions

static sk_sp< GrPromiseImageTextureFulfill (void *self)
 
static void Release (void *self)
 

Public Attributes

sk_sp< GrPromiseImageTexturefTexture
 
skiatest::ReporterfReporter
 
bool fShared
 
int fFulfillCount = 0
 
int fReleaseCount = 0
 

Detailed Description

Definition at line 53 of file PromiseImageTest.cpp.

Constructor & Destructor Documentation

◆ PromiseTextureChecker()

PromiseTextureChecker::PromiseTextureChecker ( const GrBackendTexture tex,
skiatest::Reporter reporter,
bool  shared 
)
inlineexplicit

Definition at line 56 of file PromiseImageTest.cpp.

reporter
Definition: FontMgrTest.cpp:39
static sk_sp< GrPromiseImageTexture > Make(const GrBackendTexture &backendTexture)
sk_sp< GrPromiseImageTexture > fTexture
skiatest::Reporter * fReporter

Member Function Documentation

◆ Fulfill()

static sk_sp< GrPromiseImageTexture > PromiseTextureChecker::Fulfill ( void *  self)
inlinestatic

Definition at line 66 of file PromiseImageTest.cpp.

66 {
67 auto checker = static_cast<PromiseTextureChecker*>(self);
68 checker->fFulfillCount++;
69 return checker->fTexture;
70 }

◆ Release()

static void PromiseTextureChecker::Release ( void *  self)
inlinestatic

Definition at line 71 of file PromiseImageTest.cpp.

71{ static_cast<PromiseTextureChecker*>(self)->fReleaseCount++; }

Member Data Documentation

◆ fFulfillCount

int PromiseTextureChecker::fFulfillCount = 0

Definition at line 63 of file PromiseImageTest.cpp.

◆ fReleaseCount

int PromiseTextureChecker::fReleaseCount = 0

Definition at line 64 of file PromiseImageTest.cpp.

◆ fReporter

skiatest::Reporter* PromiseTextureChecker::fReporter

Definition at line 61 of file PromiseImageTest.cpp.

◆ fShared

bool PromiseTextureChecker::fShared

Definition at line 62 of file PromiseImageTest.cpp.

◆ fTexture

sk_sp<GrPromiseImageTexture> PromiseTextureChecker::fTexture

Definition at line 60 of file PromiseImageTest.cpp.


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