Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
skgpu::graphite::DrawTask Class Referencefinal

#include <DrawTask.h>

Inheritance diagram for skgpu::graphite::DrawTask:
skgpu::graphite::Task SkRefCnt SkRefCntBase

Public Member Functions

 DrawTask (sk_sp< TextureProxy > target)
 
 ~DrawTask () override
 
Status prepareResources (ResourceProvider *, const RuntimeEffectDictionary *) override
 
Status addCommands (Context *, CommandBuffer *, ReplayTargetData) override
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Friends

class DrawContext
 

Additional Inherited Members

- Public Types inherited from skgpu::graphite::Task
enum class  Status { kSuccess , kDiscard , kFail }
 

Detailed Description

DrawTask is a collection of subtasks that are executed in order to produce some intended image in the DrawTask's target. As such, at least one of its subtasks will either be a RenderPassTask, ComputeTask or CopyXToTextureTask that directly modify the target.

Definition at line 23 of file DrawTask.h.

Constructor & Destructor Documentation

◆ DrawTask()

skgpu::graphite::DrawTask::DrawTask ( sk_sp< TextureProxy target)
explicit

Definition at line 14 of file DrawTask.cpp.

14: fTarget(std::move(target)) {}
uint32_t * target

◆ ~DrawTask()

skgpu::graphite::DrawTask::~DrawTask ( )
overridedefault

Member Function Documentation

◆ addCommands()

Task::Status skgpu::graphite::DrawTask::addCommands ( Context ctx,
CommandBuffer commandBuffer,
ReplayTargetData  replayTarget 
)
overridevirtual

Implements skgpu::graphite::Task.

Definition at line 23 of file DrawTask.cpp.

25 {
26 return fChildTasks.addCommands(ctx, commandBuffer, replayTarget);
27}
Task::Status addCommands(Context *, CommandBuffer *, Task::ReplayTargetData)
Definition TaskList.cpp:44

◆ prepareResources()

Task::Status skgpu::graphite::DrawTask::prepareResources ( ResourceProvider resourceProvider,
const RuntimeEffectDictionary rteDict 
)
overridevirtual

Implements skgpu::graphite::Task.

Definition at line 18 of file DrawTask.cpp.

19 {
20 return fChildTasks.prepareResources(resourceProvider, rteDict);
21}
Task::Status prepareResources(ResourceProvider *, const RuntimeEffectDictionary *)
Definition TaskList.cpp:36

Friends And Related Symbol Documentation

◆ DrawContext

friend class DrawContext
friend

Definition at line 33 of file DrawTask.h.


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