Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
skgpu::graphite::Task Class Referenceabstract

#include <Task.h>

Inheritance diagram for skgpu::graphite::Task:
SkRefCnt SkRefCntBase skgpu::graphite::ClearBuffersTask skgpu::graphite::ComputeTask skgpu::graphite::CopyBufferToBufferTask skgpu::graphite::CopyTextureToBufferTask skgpu::graphite::CopyTextureToTextureTask skgpu::graphite::DrawTask skgpu::graphite::RenderPassTask skgpu::graphite::SynchronizeToCpuTask skgpu::graphite::UploadTask

Classes

struct  ReplayTargetData
 

Public Types

enum class  Status { kSuccess , kDiscard , kFail }
 

Public Member Functions

virtual Status prepareResources (ResourceProvider *, const RuntimeEffectDictionary *)=0
 
virtual Status addCommands (Context *, CommandBuffer *, ReplayTargetData)=0
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Detailed Description

Definition at line 22 of file Task.h.

Member Enumeration Documentation

◆ Status

enum class skgpu::graphite::Task::Status
strong
Enumerator
kSuccess 
kDiscard 
kFail 

Definition at line 30 of file Task.h.

30 {
31 // The task step (prepareResources or addCommands) succeeded, proceed to the next task.
32 // If the Recording is replayed, this task should be executed again.
34 // The task step succeeded, but it was a one-time-only operation and should be removed from
35 // the task list. If this is returned from prepareResources(), the task is removed before
36 // addCommands() will ever be called. If this is returned from addCommands(), it will not
37 // be part of any replayed Recording, but any added commands from the first call will be
38 // executed once.
39 //
40 // NOTE: If a task step needs to be conditionally processed but repeatable, it should
41 // internally skip work and still return kSuccess instead of kDiscard.
43 // The step failed and cannot be recovered so the Recording is invalidated.
44 kFail
45 };

Member Function Documentation

◆ addCommands()

virtual Status skgpu::graphite::Task::addCommands ( Context ,
CommandBuffer ,
ReplayTargetData   
)
pure virtual

◆ prepareResources()

virtual Status skgpu::graphite::Task::prepareResources ( ResourceProvider ,
const RuntimeEffectDictionary  
)
pure virtual

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