8#ifndef skgpu_graphite_RendererProvider_DEFINED
9#define skgpu_graphite_RendererProvider_DEFINED
20class StaticBufferManager;
22#ifdef SK_ENABLE_VELLO_SHADERS
46 return &fStencilTessellatedCurves[(
int)
type];
49 return &fStencilTessellatedWedges[(
int)
type];
65 return &fVertices[4*triStrip + 2*hasColors + hasTexCoords];
82 return {fRenderers.data(), fRenderers.size()};
87#ifdef SK_ENABLE_VELLO_SHADERS
89 const VelloRenderer* velloRenderer()
const {
return fVelloRenderer.get(); }
93 static constexpr int kPathTypeCount = 4;
94 static constexpr int kVerticesCount = 8;
107 std::vector<std::unique_ptr<RenderStep>> fRenderSteps;
110 Renderer fStencilTessellatedCurves[kPathTypeCount];
111 Renderer fStencilTessellatedWedges[kPathTypeCount];
128 std::vector<const Renderer*> fRenderers;
130#ifdef SK_ENABLE_VELLO_SHADERS
131 std::unique_ptr<VelloRenderer> fVelloRenderer;
@ kTriangleStrip_VertexMode
@ kTriangleFan_VertexMode
SkSpan< const Renderer *const > renderers() const
const Renderer * tessellatedStrokes() const
const Renderer * convexTessellatedWedges() const
const Renderer * stencilTessellatedCurvesAndTris(SkPathFillType type) const
const Renderer * perEdgeAAQuad() const
const Renderer * analyticBlur() const
const Renderer * stencilTessellatedWedges(SkPathFillType type) const
const Renderer * vertices(SkVertices::VertexMode mode, bool hasColors, bool hasTexCoords) const
const Renderer * bitmapText(bool useLCDText) const
const RenderStep * lookup(uint32_t uniqueID) const
static bool IsVelloRendererSupported(const Caps *)
const Renderer * analyticRRect() const
const Renderer * sdfText(bool useLCDText) const
const Renderer * coverageMask() const
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 mode