Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
impeller::PipelineLibraryVK Class Referencefinal

#include <pipeline_library_vk.h>

Inheritance diagram for impeller::PipelineLibraryVK:
impeller::PipelineLibrary impeller::BackendCast< PipelineLibraryVK, PipelineLibrary >

Public Member Functions

 ~PipelineLibraryVK () override
 
void DidAcquireSurfaceFrame ()
 
const std::shared_ptr< PipelineCacheVK > & GetPSOCache () const
 
const std::shared_ptr< fml::ConcurrentTaskRunner > & GetWorkerTaskRunner () const
 
- Public Member Functions inherited from impeller::PipelineLibrary
virtual ~PipelineLibrary ()
 
PipelineFuture< PipelineDescriptorGetPipeline (std::optional< PipelineDescriptor > descriptor, bool async=true)
 
PipelineFuture< ComputePipelineDescriptorGetPipeline (std::optional< ComputePipelineDescriptor > descriptor, bool async=true)
 
virtual bool IsValid () const =0
 
virtual PipelineFuture< PipelineDescriptorGetPipeline (PipelineDescriptor descriptor, bool async=true)=0
 
virtual PipelineFuture< ComputePipelineDescriptorGetPipeline (ComputePipelineDescriptor descriptor, bool async=true)=0
 
virtual void RemovePipelinesWithEntryPoint (std::shared_ptr< const ShaderFunction > function)=0
 

Additional Inherited Members

- Static Public Member Functions inherited from impeller::BackendCast< PipelineLibraryVK, PipelineLibrary >
static PipelineLibraryVKCast (PipelineLibrary &base)
 
static const PipelineLibraryVKCast (const PipelineLibrary &base)
 
static PipelineLibraryVKCast (PipelineLibrary *base)
 
static const PipelineLibraryVKCast (const PipelineLibrary *base)
 
- Protected Member Functions inherited from impeller::PipelineLibrary
 PipelineLibrary ()
 

Detailed Description

Definition at line 24 of file pipeline_library_vk.h.

Constructor & Destructor Documentation

◆ ~PipelineLibraryVK()

impeller::PipelineLibraryVK::~PipelineLibraryVK ( )
overridedefault

Member Function Documentation

◆ DidAcquireSurfaceFrame()

void impeller::PipelineLibraryVK::DidAcquireSurfaceFrame ( )

Definition at line 273 of file pipeline_library_vk.cc.

273 {
274 if (++frames_acquired_ == 50u) {
275 if (cache_dirty_) {
276 cache_dirty_ = false;
277 PersistPipelineCacheToDisk();
278 }
279 frames_acquired_ = 0;
280 }
281}

◆ GetPSOCache()

const std::shared_ptr< PipelineCacheVK > & impeller::PipelineLibraryVK::GetPSOCache ( ) const

Definition at line 294 of file pipeline_library_vk.cc.

294 {
295 return pso_cache_;
296}

◆ GetWorkerTaskRunner()

const std::shared_ptr< fml::ConcurrentTaskRunner > & impeller::PipelineLibraryVK::GetWorkerTaskRunner ( ) const

Definition at line 299 of file pipeline_library_vk.cc.

299 {
300 return worker_task_runner_;
301}

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