8#ifndef skgpu_graphite_DawnResourceProvider_DEFINED
9#define skgpu_graphite_DawnResourceProvider_DEFINED
18class DawnGraphicsPipeline;
20class DawnSharedContext;
29 size_t resourceBudget);
40 std::string_view label);
51 const std::array<std::pair<const DawnBuffer*, uint32_t>, 4>& boundBuffersAndSizes);
75 const wgpu::Buffer& getOrCreateNullBuffer();
81 wgpu::BindGroupLayout fUniformBuffersBindGroupLayout;
82 wgpu::BindGroupLayout fSingleTextureSamplerBindGroupLayout;
84 wgpu::Buffer fNullBuffer;
88 struct UniqueKeyHash {
94 BindGroupCache fUniformBufferBindGroupCache;
95 BindGroupCache fSingleTextureSamplerBindGroups;
~DawnResourceProvider() override
const wgpu::BindGroup & findOrCreateSingleTextureSamplerBindGroup(const DawnSampler *sampler, const DawnTexture *texture)
DawnResourceProvider(SharedContext *sharedContext, SingleOwner *, uint32_t recorderID, size_t resourceBudget)
const wgpu::BindGroupLayout & getOrCreateSingleTextureSamplerBindGroupLayout()
sk_sp< DawnTexture > findOrCreateDiscardableMSAALoadTexture(SkISize dimensions, const TextureInfo &msaaInfo)
const sk_sp< DawnBuffer > & getOrCreateIntrinsicConstantBuffer()
const wgpu::BindGroupLayout & getOrCreateUniformBuffersBindGroupLayout()
const wgpu::BindGroup & findOrCreateUniformBuffersBindGroup(const std::array< std::pair< const DawnBuffer *, uint32_t >, 4 > &boundBuffersAndSizes)
wgpu::RenderPipeline findOrCreateBlitWithDrawPipeline(const RenderPassDesc &renderPassDesc)
sk_sp< DawnBuffer > findOrCreateDawnBuffer(size_t size, BufferType type, AccessPattern, std::string_view label)
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