/* * Copyright 2022 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef skgpu_graphite_render_DynamicInstancesPatchAllocator_DEFINED #define skgpu_graphite_render_DynamicInstancesPatchAllocator_DEFINED #include "src/gpu/BufferWriter.h" #include "src/gpu/graphite/DrawWriter.h" #include "src/gpu/tessellate/LinearTolerances.h" namespace skgpu::graphite { // An adapter around DrawWriter::DynamicInstances that fits the API requirements of // skgpu::tess::PatchWriter's PatchAllocator template parameter. // // FixedCountVariant should be one of FixedCountCurves, FixedCountWedges, or FixedCountStrokes // (technically any class with a static VertexCount(const LinearTolerances&) function). template <typename FixedCountVariant> class DynamicInstancesPatchAllocator { … }; } // namespace skgpu::graphite #endif // skgpu_graphite_render_DynamicInstancesPatchAllocator_DEFINED