Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | List of all members
GrPromiseImageTexture Class Reference

#include <GrPromiseImageTexture.h>

Inheritance diagram for GrPromiseImageTexture:
SkNVRefCnt< GrPromiseImageTexture >

Public Member Functions

 GrPromiseImageTexture ()=delete
 
 GrPromiseImageTexture (const GrPromiseImageTexture &)=delete
 
 GrPromiseImageTexture (GrPromiseImageTexture &&)=delete
 
 ~GrPromiseImageTexture ()
 
GrPromiseImageTextureoperator= (const GrPromiseImageTexture &)=delete
 
GrPromiseImageTextureoperator= (GrPromiseImageTexture &&)=delete
 
GrBackendTexture backendTexture () const
 
- Public Member Functions inherited from SkNVRefCnt< GrPromiseImageTexture >
 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< GrPromiseImageTextureMake (const GrBackendTexture &backendTexture)
 

Detailed Description

This type is used to fulfill textures for PromiseImages. Once an instance is returned from a PromiseImageTextureFulfillProc the GrBackendTexture it wraps must remain valid until the corresponding PromiseImageTextureReleaseProc is called.

Definition at line 19 of file GrPromiseImageTexture.h.

Constructor & Destructor Documentation

◆ GrPromiseImageTexture() [1/3]

GrPromiseImageTexture::GrPromiseImageTexture ( )
delete

◆ GrPromiseImageTexture() [2/3]

GrPromiseImageTexture::GrPromiseImageTexture ( const GrPromiseImageTexture )
delete

◆ GrPromiseImageTexture() [3/3]

GrPromiseImageTexture::GrPromiseImageTexture ( GrPromiseImageTexture &&  )
delete

◆ ~GrPromiseImageTexture()

GrPromiseImageTexture::~GrPromiseImageTexture ( )

Definition at line 15 of file GrPromiseImageTexture.cpp.

15{}

Member Function Documentation

◆ backendTexture()

GrBackendTexture GrPromiseImageTexture::backendTexture ( ) const
inline

Definition at line 35 of file GrPromiseImageTexture.h.

35{ return fBackendTexture; }

◆ Make()

static sk_sp< GrPromiseImageTexture > GrPromiseImageTexture::Make ( const GrBackendTexture backendTexture)
inlinestatic

Definition at line 28 of file GrPromiseImageTexture.h.

28 {
29 if (!backendTexture.isValid()) {
30 return nullptr;
31 }
33 }
bool isValid() const
GrPromiseImageTexture()=delete
GrBackendTexture backendTexture() const

◆ operator=() [1/2]

GrPromiseImageTexture & GrPromiseImageTexture::operator= ( const GrPromiseImageTexture )
delete

◆ operator=() [2/2]

GrPromiseImageTexture & GrPromiseImageTexture::operator= ( GrPromiseImageTexture &&  )
delete

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