Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | List of all members
skgpu::graphite::CopyBufferToBufferTask Class Referencefinal

#include <CopyTask.h>

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

Public Member Functions

 ~CopyBufferToBufferTask () override
 
Status prepareResources (ResourceProvider *, ScratchResourceManager *, const RuntimeEffectDictionary *) override
 
Status addCommands (Context *, CommandBuffer *, ReplayTargetData) override
 
virtual Status prepareResources (ResourceProvider *, ScratchResourceManager *, 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
 

Static Public Member Functions

static sk_sp< CopyBufferToBufferTaskMake (const Buffer *srcBuffer, size_t srcOffset, sk_sp< Buffer > dstBuffer, size_t dstOffset, size_t size)
 

Additional Inherited Members

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

Detailed Description

Definition at line 21 of file CopyTask.h.

Constructor & Destructor Documentation

◆ ~CopyBufferToBufferTask()

skgpu::graphite::CopyBufferToBufferTask::~CopyBufferToBufferTask ( )
overridedefault

Member Function Documentation

◆ addCommands()

Task::Status skgpu::graphite::CopyBufferToBufferTask::addCommands ( Context ,
CommandBuffer commandBuffer,
ReplayTargetData   
)
overridevirtual

Implements skgpu::graphite::Task.

Definition at line 53 of file CopyTask.cpp.

55 {
56 if (commandBuffer->copyBufferToBuffer(fSrcBuffer, fSrcOffset, fDstBuffer, fDstOffset, fSize)) {
57 return Status::kSuccess;
58 } else {
59 return Status::kFail;
60 }
61}

◆ Make()

sk_sp< CopyBufferToBufferTask > skgpu::graphite::CopyBufferToBufferTask::Make ( const Buffer srcBuffer,
size_t  srcOffset,
sk_sp< Buffer dstBuffer,
size_t  dstOffset,
size_t  size 
)
static

Definition at line 18 of file CopyTask.cpp.

22 {
23 SkASSERT(srcBuffer);
24 SkASSERT(size <= srcBuffer->size() - srcOffset);
25 SkASSERT(dstBuffer);
26 SkASSERT(size <= dstBuffer->size() - dstOffset);
27 return sk_sp<CopyBufferToBufferTask>(new CopyBufferToBufferTask(srcBuffer,
28 srcOffset,
29 std::move(dstBuffer),
30 dstOffset,
31 size));
32}
#define SkASSERT(cond)
Definition: SkAssert.h:116
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259

◆ prepareResources()

Task::Status skgpu::graphite::CopyBufferToBufferTask::prepareResources ( ResourceProvider ,
ScratchResourceManager ,
const RuntimeEffectDictionary  
)
overridevirtual

Implements skgpu::graphite::Task.

Definition at line 47 of file CopyTask.cpp.

49 {
50 return Status::kSuccess;
51}

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