5#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_PIPELINE_LIBRARY_VK_H_
6#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_PIPELINE_LIBRARY_VK_H_
10#include "flutter/fml/concurrent_message_loop.h"
11#include "flutter/fml/unique_fd.h"
26 public BackendCast<PipelineLibraryVK, PipelineLibrary> {
33 const std::shared_ptr<PipelineCacheVK>&
GetPSOCache()
const;
40 std::weak_ptr<DeviceHolderVK> device_holder_;
41 std::shared_ptr<PipelineCacheVK> pso_cache_;
42 std::shared_ptr<fml::ConcurrentTaskRunner> worker_task_runner_;
43 Mutex pipelines_mutex_;
44 PipelineMap pipelines_ IPLR_GUARDED_BY(pipelines_mutex_);
45 Mutex compute_pipelines_mutex_;
47 compute_pipelines_mutex_);
48 std::atomic_size_t frames_acquired_ = 0u;
49 bool is_valid_ =
false;
50 bool cache_dirty_ =
false;
53 const std::shared_ptr<DeviceHolderVK>& device_holder,
54 std::shared_ptr<const Capabilities> caps,
56 std::shared_ptr<fml::ConcurrentTaskRunner> worker_task_runner);
59 bool IsValid()
const override;
71 void RemovePipelinesWithEntryPoint(
72 std::shared_ptr<const ShaderFunction>
function)
override;
74 std::unique_ptr<ComputePipelineVK> CreateComputePipeline(
77 void PersistPipelineCacheToDisk();
~PipelineLibraryVK() override
void DidAcquireSurfaceFrame()
const std::shared_ptr< fml::ConcurrentTaskRunner > & GetWorkerTaskRunner() const
const std::shared_ptr< PipelineCacheVK > & GetPSOCache() const
Dart_NativeFunction function
std::unordered_map< ComputePipelineDescriptor, PipelineFuture< ComputePipelineDescriptor >, ComparableHash< ComputePipelineDescriptor >, ComparableEqual< ComputePipelineDescriptor > > ComputePipelineMap
std::unordered_map< PipelineDescriptor, PipelineFuture< PipelineDescriptor >, ComparableHash< PipelineDescriptor >, ComparableEqual< PipelineDescriptor > > PipelineMap