Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
GrDeferredUploadTarget Class Referenceabstract

#include <GrDeferredUpload.h>

Inheritance diagram for GrDeferredUploadTarget:
GrOpFlushState TestingUploadTarget

Public Member Functions

virtual ~GrDeferredUploadTarget ()
 
virtual const skgpu::TokenTrackertokenTracker ()=0
 
virtual skgpu::AtlasToken addInlineUpload (GrDeferredTextureUploadFn &&)=0
 
virtual skgpu::AtlasToken addASAPUpload (GrDeferredTextureUploadFn &&upload)=0
 

Detailed Description

An interface for scheduling deferred uploads. It accepts asap and deferred inline uploads.

Definition at line 56 of file GrDeferredUpload.h.

Constructor & Destructor Documentation

◆ ~GrDeferredUploadTarget()

virtual GrDeferredUploadTarget::~GrDeferredUploadTarget ( )
inlinevirtual

Definition at line 58 of file GrDeferredUpload.h.

58{}

Member Function Documentation

◆ addASAPUpload()

virtual skgpu::AtlasToken GrDeferredUploadTarget::addASAPUpload ( GrDeferredTextureUploadFn &&  upload)
pure virtual

Returns the token of the draw that this upload will occur before. Since ASAP uploads are done first during a flush, this will be the first token since the most recent flush.

Implemented in GrOpFlushState, and TestingUploadTarget.

◆ addInlineUpload()

virtual skgpu::AtlasToken GrDeferredUploadTarget::addInlineUpload ( GrDeferredTextureUploadFn &&  )
pure virtual

Returns the token of the draw that this upload will occur before.

Implemented in GrOpFlushState, and TestingUploadTarget.

◆ tokenTracker()

virtual const skgpu::TokenTracker * GrDeferredUploadTarget::tokenTracker ( )
pure virtual

Implemented in GrOpFlushState, and TestingUploadTarget.


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