Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | List of all members
skgpu::graphite::DefaultImageProvider Class Referencefinal
Inheritance diagram for skgpu::graphite::DefaultImageProvider:
skgpu::graphite::ImageProvider SkRefCnt SkRefCntBase

Public Member Functions

sk_sp< SkImagefindOrCreate (Recorder *recorder, const SkImage *image, SkImage::RequiredProperties) override
 
virtual sk_sp< SkImagefindOrCreate (Recorder *recorder, const SkImage *image, SkImage::RequiredProperties)=0
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Static Public Member Functions

static sk_sp< DefaultImageProviderMake ()
 

Detailed Description

Definition at line 64 of file Recorder.cpp.

Member Function Documentation

◆ findOrCreate()

sk_sp< SkImage > skgpu::graphite::DefaultImageProvider::findOrCreate ( Recorder recorder,
const SkImage image,
SkImage::RequiredProperties   
)
inlineoverridevirtual

Implements skgpu::graphite::ImageProvider.

Definition at line 70 of file Recorder.cpp.

72 {
73 SkASSERT(!as_IB(image)->isGraphiteBacked());
74
75 return nullptr;
76 }
#define SkASSERT(cond)
Definition: SkAssert.h:116
static SkImage_Base * as_IB(SkImage *image)
Definition: SkImage_Base.h:201
sk_sp< const SkImage > image
Definition: SkRecords.h:269

◆ Make()

static sk_sp< DefaultImageProvider > skgpu::graphite::DefaultImageProvider::Make ( )
inlinestatic

Definition at line 66 of file Recorder.cpp.

66 {
67 return sk_ref_sp(new DefaultImageProvider);
68 }
sk_sp< T > sk_ref_sp(T *obj)
Definition: SkRefCnt.h:381

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