Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
TestingUploadTarget Class Reference
Inheritance diagram for TestingUploadTarget:
GrDeferredUploadTarget

Public Member Functions

 TestingUploadTarget ()
 
const skgpu::TokenTrackertokenTracker () final
 
skgpu::TokenTrackerwriteableTokenTracker ()
 
skgpu::AtlasToken addInlineUpload (GrDeferredTextureUploadFn &&) final
 
skgpu::AtlasToken addASAPUpload (GrDeferredTextureUploadFn &&upload) final
 
void issueDrawToken ()
 
void issueFlushToken ()
 
- Public Member Functions inherited from GrDeferredUploadTarget
virtual ~GrDeferredUploadTarget ()
 
virtual const skgpu::TokenTrackertokenTracker ()=0
 
virtual skgpu::AtlasToken addInlineUpload (GrDeferredTextureUploadFn &&)=0
 
virtual skgpu::AtlasToken addASAPUpload (GrDeferredTextureUploadFn &&upload)=0
 

Detailed Description

Definition at line 73 of file DrawOpAtlasTest.cpp.

Constructor & Destructor Documentation

◆ TestingUploadTarget()

TestingUploadTarget::TestingUploadTarget ( )
inline

Definition at line 75 of file DrawOpAtlasTest.cpp.

75{ }

Member Function Documentation

◆ addASAPUpload()

skgpu::AtlasToken TestingUploadTarget::addASAPUpload ( GrDeferredTextureUploadFn &&  upload)
inlinefinalvirtual

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.

Implements GrDeferredUploadTarget.

Definition at line 85 of file DrawOpAtlasTest.cpp.

85 {
86 return fTokenTracker.nextFlushToken();
87 }
AtlasToken nextFlushToken() const
Definition: AtlasTypes.h:207

◆ addInlineUpload()

skgpu::AtlasToken TestingUploadTarget::addInlineUpload ( GrDeferredTextureUploadFn &&  )
inlinefinalvirtual

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

Implements GrDeferredUploadTarget.

Definition at line 80 of file DrawOpAtlasTest.cpp.

80 {
81 SkASSERT(0); // this test shouldn't invoke this code path
82 return fTokenTracker.nextDrawToken();
83 }
#define SkASSERT(cond)
Definition: SkAssert.h:116
AtlasToken nextDrawToken() const
Definition: AtlasTypes.h:214

◆ issueDrawToken()

void TestingUploadTarget::issueDrawToken ( )
inline

Definition at line 89 of file DrawOpAtlasTest.cpp.

89{ fTokenTracker.issueDrawToken(); }

◆ issueFlushToken()

void TestingUploadTarget::issueFlushToken ( )
inline

Definition at line 90 of file DrawOpAtlasTest.cpp.

90{ fTokenTracker.issueFlushToken(); }

◆ tokenTracker()

const skgpu::TokenTracker * TestingUploadTarget::tokenTracker ( )
inlinefinalvirtual

Implements GrDeferredUploadTarget.

Definition at line 77 of file DrawOpAtlasTest.cpp.

77{ return &fTokenTracker; }

◆ writeableTokenTracker()

skgpu::TokenTracker * TestingUploadTarget::writeableTokenTracker ( )
inline

Definition at line 78 of file DrawOpAtlasTest.cpp.

78{ return &fTokenTracker; }

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