Flutter Engine
The Flutter Engine
Public Member Functions | Friends | List of all members
skgpu::TokenTracker Class Reference

#include <AtlasTypes.h>

Public Member Functions

AtlasToken nextFlushToken () const
 
AtlasToken nextDrawToken () const
 

Friends

class ::GrOpFlushState
 
class ::TestingUploadTarget
 
class skgpu::graphite::RecorderPriv
 

Detailed Description

The TokenTracker encapsulates the incrementing and distribution of AtlasTokens.

Definition at line 201 of file AtlasTypes.h.

Member Function Documentation

◆ nextDrawToken()

AtlasToken skgpu::TokenTracker::nextDrawToken ( ) const
inline

Gets the next draw token. This can be used to record that the next draw issued will use a resource (e.g. texture) while preparing that draw. Not used by Graphite.

Definition at line 214 of file AtlasTypes.h.

214{ return fCurrentDrawToken.next(); }
AtlasToken next() const
Definition: AtlasTypes.h:185

◆ nextFlushToken()

AtlasToken skgpu::TokenTracker::nextFlushToken ( ) const
inline

Gets the token one beyond the last token that has been flushed, either in GrDrawingManager::flush() or Device::flushPendingWorkToRecorder()

Definition at line 207 of file AtlasTypes.h.

207{ return fCurrentFlushToken.next(); }

Friends And Related Function Documentation

◆ ::GrOpFlushState

friend class ::GrOpFlushState
friend

Definition at line 218 of file AtlasTypes.h.

◆ ::TestingUploadTarget

friend class ::TestingUploadTarget
friend

Definition at line 219 of file AtlasTypes.h.

◆ skgpu::graphite::RecorderPriv

friend class skgpu::graphite::RecorderPriv
friend

Definition at line 220 of file AtlasTypes.h.


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