Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | Public Attributes | List of all members
PromiseImageInfo Class Reference
Inheritance diagram for PromiseImageInfo:
SkNVRefCnt< PromiseImageInfo >

Public Types

enum class  State : int { kInitial , kTriedToFulfill , kDone }
 

Public Member Functions

 PromiseImageInfo ()=default
 
 ~PromiseImageInfo ()
 
 PromiseImageInfo (PromiseImageInfo &)=delete
 
PromiseImageInfooperator= (PromiseImageInfo &)=delete
 
- Public Member Functions inherited from SkNVRefCnt< PromiseImageInfo >
 SkNVRefCnt ()
 
 ~SkNVRefCnt ()
 
bool unique () const
 
void ref () const
 
void unref () const
 
void deref () const
 
bool refCntGreaterThan (int32_t threadIsolatedTestCnt) const
 

Public Attributes

DDLFuzzerfFuzzer = nullptr
 
sk_sp< SkImagefImage
 
std::atomic< StatefState {State::kInitial}
 
std::atomic< bool > fDrawn {false}
 
sk_sp< GrPromiseImageTexturefTexture
 

Detailed Description

Definition at line 51 of file FuzzDDLThreading.cpp.

Member Enumeration Documentation

◆ State

enum class PromiseImageInfo::State : int
strong
Enumerator
kInitial 
kTriedToFulfill 
kDone 

Definition at line 53 of file FuzzDDLThreading.cpp.

53 : int {
54 kInitial,
55 kTriedToFulfill,
56 kDone
57 };

Constructor & Destructor Documentation

◆ PromiseImageInfo() [1/2]

PromiseImageInfo::PromiseImageInfo ( )
default

◆ ~PromiseImageInfo()

PromiseImageInfo::~PromiseImageInfo ( )
inline

Definition at line 60 of file FuzzDDLThreading.cpp.

60 {
61 // If we hit this, then the image or the texture will outlive this object which is bad.
64 fImage.reset();
66 State s = fState;
68 }
#define SkASSERT_RELEASE(cond)
Definition: SkAssert.h:100
std::atomic< State > fState
sk_sp< SkImage > fImage
std::atomic< bool > fDrawn
sk_sp< GrPromiseImageTexture > fTexture
bool unique() const
Definition: SkRefCnt.h:175
bool unique() const
Definition: SkRefCnt.h:50
void reset(T *ptr=nullptr)
Definition: SkRefCnt.h:310
struct MyStruct s

◆ PromiseImageInfo() [2/2]

PromiseImageInfo::PromiseImageInfo ( PromiseImageInfo )
delete

Member Function Documentation

◆ operator=()

PromiseImageInfo & PromiseImageInfo::operator= ( PromiseImageInfo )
delete

Member Data Documentation

◆ fDrawn

std::atomic<bool> PromiseImageInfo::fDrawn {false}

Definition at line 79 of file FuzzDDLThreading.cpp.

◆ fFuzzer

DDLFuzzer* PromiseImageInfo::fFuzzer = nullptr

Definition at line 74 of file FuzzDDLThreading.cpp.

◆ fImage

sk_sp<SkImage> PromiseImageInfo::fImage

Definition at line 75 of file FuzzDDLThreading.cpp.

◆ fState

std::atomic<State> PromiseImageInfo::fState {State::kInitial}

Definition at line 78 of file FuzzDDLThreading.cpp.

◆ fTexture

sk_sp<GrPromiseImageTexture> PromiseImageInfo::fTexture

Definition at line 81 of file FuzzDDLThreading.cpp.


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