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

#include <SynchronizeToCpuTask.h>

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

Public Member Functions

 ~SynchronizeToCpuTask () 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< SynchronizeToCpuTaskMake (sk_sp< Buffer >)
 

Additional Inherited Members

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

Detailed Description

Task that synchronizes the contents of a buffer from the GPU to the CPU. This task ensures that all modifications to the buffer made the GPU are visible from the CPU. This task may not result in any work if the underlying buffer does not require synchronization (e.g. a shared memory buffer).

Definition at line 24 of file SynchronizeToCpuTask.h.

Constructor & Destructor Documentation

◆ ~SynchronizeToCpuTask()

skgpu::graphite::SynchronizeToCpuTask::~SynchronizeToCpuTask ( )
override

Definition at line 19 of file SynchronizeToCpuTask.cpp.

19{}

Member Function Documentation

◆ addCommands()

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

Implements skgpu::graphite::Task.

Definition at line 21 of file SynchronizeToCpuTask.cpp.

23 {
24 return commandBuffer->synchronizeBufferToCpu(std::move(fBuffer)) ? Status::kSuccess
26}

◆ Make()

sk_sp< SynchronizeToCpuTask > skgpu::graphite::SynchronizeToCpuTask::Make ( sk_sp< Buffer buffer)
static

Definition at line 15 of file SynchronizeToCpuTask.cpp.

15 {
16 return sk_sp<SynchronizeToCpuTask>(new SynchronizeToCpuTask(std::move(buffer)));
17}
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
Definition: switches.h:126

◆ prepareResources()

Status skgpu::graphite::SynchronizeToCpuTask::prepareResources ( ResourceProvider ,
ScratchResourceManager ,
const RuntimeEffectDictionary  
)
inlineoverridevirtual

Implements skgpu::graphite::Task.

Definition at line 29 of file SynchronizeToCpuTask.h.

31 {
32 return Status::kSuccess;
33 }

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