blob: 3368e3ff5e92365ca645bffc1d0e9fba193a97cc [file] [log] [blame]
Chris Dalton70a0d2c2021-01-26 12:01:21 -07001/*
2 * Copyright 2021 Google LLC.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
Chris Dalton031d76b2021-06-08 16:32:00 -06008#include "src/gpu/tessellate/GrPathStencilCoverOp.h"
Chris Dalton70a0d2c2021-01-26 12:01:21 -07009
10#include "src/gpu/GrEagerVertexAllocator.h"
Chris Daltond9bdc322021-06-01 19:22:05 -060011#include "src/gpu/GrGpu.h"
Chris Dalton70a0d2c2021-01-26 12:01:21 -070012#include "src/gpu/GrOpFlushState.h"
13#include "src/gpu/GrRecordingContextPriv.h"
Robert Phillips1a82a4e2021-07-01 10:27:44 -040014#include "src/gpu/GrResourceProvider.h"
Chris Dalton8aec1242021-07-19 11:10:45 -060015#include "src/gpu/glsl/GrGLSLFragmentShaderBuilder.h"
16#include "src/gpu/glsl/GrGLSLVarying.h"
Chris Dalton2f733ec2021-06-01 12:11:57 -060017#include "src/gpu/glsl/GrGLSLVertexGeoBuilder.h"
Chris Dalton70a0d2c2021-01-26 12:01:21 -070018#include "src/gpu/tessellate/GrMiddleOutPolygonTriangulator.h"
Chris Daltond9bdc322021-06-01 19:22:05 -060019#include "src/gpu/tessellate/GrPathCurveTessellator.h"
Chris Daltond9bdc322021-06-01 19:22:05 -060020#include "src/gpu/tessellate/GrPathWedgeTessellator.h"
Chris Dalton70a0d2c2021-01-26 12:01:21 -070021#include "src/gpu/tessellate/GrTessellationPathRenderer.h"
Chris Dalton3b412782021-06-01 13:40:03 -060022#include "src/gpu/tessellate/shaders/GrPathTessellationShader.h"
Chris Dalton70a0d2c2021-01-26 12:01:21 -070023
Chris Dalton917f9192021-06-08 14:32:37 -060024using PathFlags = GrTessellationPathRenderer::PathFlags;
Chris Dalton70a0d2c2021-01-26 12:01:21 -070025
Chris Dalton2f733ec2021-06-01 12:11:57 -060026namespace {
27
28// Fills a path's bounding box, with subpixel outset to avoid possible T-junctions with extreme
29// edges of the path.
30// NOTE: The emitted geometry may not be axis-aligned, depending on the view matrix.
Chris Dalton8aec1242021-07-19 11:10:45 -060031class BoundingBoxShader : public GrGeometryProcessor {
Chris Dalton2f733ec2021-06-01 12:11:57 -060032public:
Chris Daltone909e1e2021-07-27 13:23:18 -060033 BoundingBoxShader(SkPMColor4f color, const GrShaderCaps& shaderCaps)
Chris Dalton8aec1242021-07-19 11:10:45 -060034 : GrGeometryProcessor(kTessellate_BoundingBoxShader_ClassID)
Chris Dalton8aec1242021-07-19 11:10:45 -060035 , fColor(color) {
Chris Daltona05ccc32021-06-29 19:42:13 -060036 if (!shaderCaps.vertexIDSupport()) {
37 constexpr static Attribute kUnitCoordAttrib("unitCoord", kFloat2_GrVertexAttribType,
38 kFloat2_GrSLType);
39 this->setVertexAttributes(&kUnitCoordAttrib, 1);
40 }
Chris Daltone909e1e2021-07-27 13:23:18 -060041 constexpr static Attribute kInstanceAttribs[] = {
42 {"matrix2d", kFloat4_GrVertexAttribType, kFloat4_GrSLType},
43 {"translate", kFloat2_GrVertexAttribType, kFloat2_GrSLType},
44 {"pathBounds", kFloat4_GrVertexAttribType, kFloat4_GrSLType}
45 };
46 this->setInstanceAttributes(kInstanceAttribs, SK_ARRAY_COUNT(kInstanceAttribs));
Chris Dalton2f733ec2021-06-01 12:11:57 -060047 }
48
49private:
Chris Daltonb63711a2021-06-01 14:52:02 -060050 const char* name() const final { return "tessellate_BoundingBoxShader"; }
Brian Salomon13b28732021-08-06 15:33:58 -040051 void addToKey(const GrShaderCaps&, GrProcessorKeyBuilder*) const final {}
Brian Salomonf95940b2021-08-09 15:56:24 -040052 std::unique_ptr<ProgramImpl> makeProgramImpl(const GrShaderCaps&) const final;
Chris Dalton8aec1242021-07-19 11:10:45 -060053
Chris Dalton8aec1242021-07-19 11:10:45 -060054 const SkPMColor4f fColor;
Chris Dalton2f733ec2021-06-01 12:11:57 -060055};
56
Brian Salomonf95940b2021-08-09 15:56:24 -040057std::unique_ptr<GrGeometryProcessor::ProgramImpl> BoundingBoxShader::makeProgramImpl(
58 const GrShaderCaps&) const {
59 class Impl : public ProgramImpl {
Chris Dalton8aec1242021-07-19 11:10:45 -060060 void onEmitCode(EmitArgs& args, GrGPArgs* gpArgs) final {
61 args.fVaryingHandler->emitAttributes(args.fGeomProc);
62
63 // Vertex shader.
Chris Dalton8aec1242021-07-19 11:10:45 -060064 if (args.fShaderCaps->vertexIDSupport()) {
Chris Daltona05ccc32021-06-29 19:42:13 -060065 // If we don't have sk_VertexID support then "unitCoord" already came in as a vertex
66 // attrib.
Chris Daltone909e1e2021-07-27 13:23:18 -060067 args.fVertBuilder->codeAppend(R"(
Chris Daltona05ccc32021-06-29 19:42:13 -060068 float2 unitCoord = float2(sk_VertexID & 1, sk_VertexID >> 1);)");
69 }
Chris Daltone909e1e2021-07-27 13:23:18 -060070 args.fVertBuilder->codeAppend(R"(
Chris Dalton8aec1242021-07-19 11:10:45 -060071 // Bloat the bounding box by 1/4px to be certain we will reset every stencil value.
Chris Daltone909e1e2021-07-27 13:23:18 -060072 float2x2 M_ = inverse(float2x2(matrix2d));
Chris Dalton2f733ec2021-06-01 12:11:57 -060073 float2 bloat = float2(abs(M_[0]) + abs(M_[1])) * .25;
74
75 // Find the vertex position.
Chris Daltona05ccc32021-06-29 19:42:13 -060076 float2 localcoord = mix(pathBounds.xy - bloat, pathBounds.zw + bloat, unitCoord);
Chris Daltone909e1e2021-07-27 13:23:18 -060077 float2 vertexpos = float2x2(matrix2d) * localcoord + translate;)");
Chris Dalton2f733ec2021-06-01 12:11:57 -060078 gpArgs->fLocalCoordVar.set(kFloat2_GrSLType, "localcoord");
79 gpArgs->fPositionVar.set(kFloat2_GrSLType, "vertexpos");
Chris Dalton8aec1242021-07-19 11:10:45 -060080
81 // Fragment shader.
82 const char* color;
83 fColorUniform = args.fUniformHandler->addUniform(nullptr, kFragment_GrShaderFlag,
84 kHalf4_GrSLType, "color", &color);
85 args.fFragBuilder->codeAppendf("half4 %s = %s;", args.fOutputColor, color);
86 args.fFragBuilder->codeAppendf("const half4 %s = half4(1);", args.fOutputCoverage);
Chris Dalton2f733ec2021-06-01 12:11:57 -060087 }
Chris Dalton8aec1242021-07-19 11:10:45 -060088
89 void setData(const GrGLSLProgramDataManager& pdman, const GrShaderCaps&,
90 const GrGeometryProcessor& gp) override {
Chris Daltone909e1e2021-07-27 13:23:18 -060091 const SkPMColor4f& color = gp.cast<BoundingBoxShader>().fColor;
Chris Dalton8aec1242021-07-19 11:10:45 -060092 pdman.set4f(fColorUniform, color.fR, color.fG, color.fB, color.fA);
93 }
94
Chris Dalton8aec1242021-07-19 11:10:45 -060095 GrGLSLUniformHandler::UniformHandle fColorUniform;
Chris Dalton2f733ec2021-06-01 12:11:57 -060096 };
Chris Dalton8aec1242021-07-19 11:10:45 -060097
Brian Salomonf95940b2021-08-09 15:56:24 -040098 return std::make_unique<Impl>();
Chris Dalton2f733ec2021-06-01 12:11:57 -060099}
100
101} // namespace
102
Robert Phillips294723d2021-06-17 09:23:58 -0400103void GrPathStencilCoverOp::visitProxies(const GrVisitProxyFunc& func) const {
Chris Dalton031d76b2021-06-08 16:32:00 -0600104 if (fCoverBBoxProgram) {
Robert Phillips294723d2021-06-17 09:23:58 -0400105 fCoverBBoxProgram->pipeline().visitProxies(func);
Chris Dalton70a0d2c2021-01-26 12:01:21 -0700106 } else {
Robert Phillips294723d2021-06-17 09:23:58 -0400107 fProcessors.visitProxies(func);
Chris Dalton70a0d2c2021-01-26 12:01:21 -0700108 }
109}
110
Chris Dalton031d76b2021-06-08 16:32:00 -0600111GrDrawOp::FixedFunctionFlags GrPathStencilCoverOp::fixedFunctionFlags() const {
Chris Dalton70a0d2c2021-01-26 12:01:21 -0700112 auto flags = FixedFunctionFlags::kUsesStencil;
113 if (fAAType != GrAAType::kNone) {
114 flags |= FixedFunctionFlags::kUsesHWAA;
115 }
116 return flags;
117}
118
Chris Dalton031d76b2021-06-08 16:32:00 -0600119GrProcessorSet::Analysis GrPathStencilCoverOp::finalize(const GrCaps& caps,
120 const GrAppliedClip* clip,
121 GrClampType clampType) {
Chris Dalton57ab06c2021-04-22 12:57:28 -0600122 return fProcessors.finalize(fColor, GrProcessorAnalysisCoverage::kNone, clip, nullptr, caps,
123 clampType, &fColor);
Chris Dalton70a0d2c2021-01-26 12:01:21 -0700124}
125
Chris Dalton031d76b2021-06-08 16:32:00 -0600126void GrPathStencilCoverOp::prePreparePrograms(const GrTessellationShader::ProgramArgs& args,
127 GrAppliedClip&& appliedClip) {
Chris Dalton569c01b2021-05-25 10:11:46 -0600128 SkASSERT(!fTessellator);
Chris Dalton70a0d2c2021-01-26 12:01:21 -0700129 SkASSERT(!fStencilFanProgram);
130 SkASSERT(!fStencilPathProgram);
Chris Dalton031d76b2021-06-08 16:32:00 -0600131 SkASSERT(!fCoverBBoxProgram);
Chris Dalton70a0d2c2021-01-26 12:01:21 -0700132
Chris Dalton69669812021-07-27 10:00:12 -0600133 // We transform paths on the CPU. This allows for better batching.
134 const SkMatrix& shaderMatrix = SkMatrix::I();
Chris Dalton2f733ec2021-06-01 12:11:57 -0600135 const GrPipeline* stencilPipeline = GrPathTessellationShader::MakeStencilOnlyPipeline(
Chris Dalton917f9192021-06-08 14:32:37 -0600136 args, fAAType, fPathFlags, appliedClip.hardClip());
Chris Dalton8a1bbaa2021-07-28 14:43:07 -0600137 const GrUserStencilSettings* stencilSettings = GrPathTessellationShader::StencilPathSettings(
138 GrFillRuleForPathFillType(this->pathFillType()));
Chris Dalton569c01b2021-05-25 10:11:46 -0600139
Chris Dalton8a1bbaa2021-07-28 14:43:07 -0600140 if (fTotalCombinedPathVerbCnt > 50 &&
141 this->bounds().height() * this->bounds().width() > 256 * 256) {
Chris Daltond2b8ba32021-06-09 00:12:59 -0600142 // Large complex paths do better with a dedicated triangle shader for the inner fan.
143 // This takes less PCI bus bandwidth (6 floats per triangle instead of 8) and allows us
144 // to make sure it has an efficient middle-out topology.
Chris Dalton69669812021-07-27 10:00:12 -0600145 auto shader = GrPathTessellationShader::MakeSimpleTriangleShader(args.fArena,
146 shaderMatrix,
147 SK_PMColor4fTRANSPARENT);
148 fStencilFanProgram = GrTessellationShader::MakeProgram(args,
149 shader,
150 stencilPipeline,
Chris Dalton8a1bbaa2021-07-28 14:43:07 -0600151 stencilSettings);
Chris Dalton69669812021-07-27 10:00:12 -0600152 fTessellator = GrPathCurveTessellator::Make(args.fArena,
153 shaderMatrix,
Chris Daltond2b8ba32021-06-09 00:12:59 -0600154 SK_PMColor4fTRANSPARENT,
155 GrPathCurveTessellator::DrawInnerFan::kNo,
Chris Dalton8a1bbaa2021-07-28 14:43:07 -0600156 fTotalCombinedPathVerbCnt,
Chris Dalton69669812021-07-27 10:00:12 -0600157 *stencilPipeline,
Chris Dalton198ac152021-06-09 13:49:43 -0600158 *args.fCaps);
Chris Dalton917f9192021-06-08 14:32:37 -0600159 } else {
Chris Dalton69669812021-07-27 10:00:12 -0600160 fTessellator = GrPathWedgeTessellator::Make(args.fArena,
161 shaderMatrix,
162 SK_PMColor4fTRANSPARENT,
Chris Dalton8a1bbaa2021-07-28 14:43:07 -0600163 fTotalCombinedPathVerbCnt,
Chris Dalton69669812021-07-27 10:00:12 -0600164 *stencilPipeline,
165 *args.fCaps);
Chris Dalton70a0d2c2021-01-26 12:01:21 -0700166 }
Chris Dalton8a1bbaa2021-07-28 14:43:07 -0600167 fStencilPathProgram = GrTessellationShader::MakeProgram(args,
168 fTessellator->shader(),
169 stencilPipeline,
170 stencilSettings);
Chris Dalton569c01b2021-05-25 10:11:46 -0600171
Chris Dalton917f9192021-06-08 14:32:37 -0600172 if (!(fPathFlags & PathFlags::kStencilOnly)) {
Chris Dalton70a0d2c2021-01-26 12:01:21 -0700173 // Create a program that draws a bounding box over the path and fills its stencil coverage
174 // into the color buffer.
Chris Daltone909e1e2021-07-27 13:23:18 -0600175 auto* bboxShader = args.fArena->make<BoundingBoxShader>(fColor, *args.fCaps->shaderCaps());
Chris Dalton2f733ec2021-06-01 12:11:57 -0600176 auto* bboxPipeline = GrTessellationShader::MakePipeline(args, fAAType,
177 std::move(appliedClip),
178 std::move(fProcessors));
Chris Dalton8a1bbaa2021-07-28 14:43:07 -0600179 auto* bboxStencil = GrPathTessellationShader::TestAndResetStencilSettings(
180 SkPathFillType_IsInverse(this->pathFillType()));
Chris Dalton8aec1242021-07-19 11:10:45 -0600181 fCoverBBoxProgram = GrSimpleMeshDrawOpHelper::CreateProgramInfo(
182 args.fArena,
183 bboxPipeline,
184 args.fWriteView,
185 bboxShader,
186 GrPrimitiveType::kTriangleStrip,
187 args.fXferBarrierFlags,
188 args.fColorLoadOp,
189 bboxStencil);
Chris Dalton70a0d2c2021-01-26 12:01:21 -0700190 }
191}
192
Chris Dalton031d76b2021-06-08 16:32:00 -0600193void GrPathStencilCoverOp::onPrePrepare(GrRecordingContext* context,
194 const GrSurfaceProxyView& writeView, GrAppliedClip* clip,
195 const GrDstProxyView& dstProxyView,
196 GrXferBarrierFlags renderPassXferBarriers,
197 GrLoadOp colorLoadOp) {
Chris Dalton70a0d2c2021-01-26 12:01:21 -0700198 this->prePreparePrograms({context->priv().recordTimeAllocator(), writeView, &dstProxyView,
199 renderPassXferBarriers, colorLoadOp, context->priv().caps()},
200 (clip) ? std::move(*clip) : GrAppliedClip::Disabled());
201 if (fStencilFanProgram) {
202 context->priv().recordProgramInfo(fStencilFanProgram);
203 }
204 if (fStencilPathProgram) {
205 context->priv().recordProgramInfo(fStencilPathProgram);
206 }
Chris Dalton031d76b2021-06-08 16:32:00 -0600207 if (fCoverBBoxProgram) {
208 context->priv().recordProgramInfo(fCoverBBoxProgram);
Chris Dalton70a0d2c2021-01-26 12:01:21 -0700209 }
210}
211
Chris Daltona05ccc32021-06-29 19:42:13 -0600212GR_DECLARE_STATIC_UNIQUE_KEY(gUnitQuadBufferKey);
213
Chris Dalton031d76b2021-06-08 16:32:00 -0600214void GrPathStencilCoverOp::onPrepare(GrOpFlushState* flushState) {
Chris Dalton70a0d2c2021-01-26 12:01:21 -0700215 if (!fTessellator) {
216 this->prePreparePrograms({flushState->allocator(), flushState->writeView(),
217 &flushState->dstProxyView(), flushState->renderPassBarriers(),
218 flushState->colorLoadOp(), &flushState->caps()},
219 flushState->detachAppliedClip());
220 if (!fTessellator) {
221 return;
222 }
223 }
224
225 if (fStencilFanProgram) {
226 // The inner fan isn't built into the tessellator. Generate a standard Redbook fan with a
227 // middle-out topology.
228 GrEagerDynamicVertexAllocator vertexAlloc(flushState, &fFanBuffer, &fFanBaseVertex);
Chris Dalton8a1bbaa2021-07-28 14:43:07 -0600229 int maxCombinedFanEdges =
230 GrPathTessellator::MaxCombinedFanEdgesInPathDrawList(fTotalCombinedPathVerbCnt);
231 // A single n-sided polygon is fanned by n-2 triangles. Multiple polygons with a combined
232 // edge count of n are fanned by strictly fewer triangles.
233 int maxTrianglesInFans = std::max(maxCombinedFanEdges - 2, 0);
234 GrVertexWriter triangleVertexWriter = vertexAlloc.lock<SkPoint>(maxTrianglesInFans * 3);
235 int fanTriangleCount = 0;
236 for (auto [pathMatrix, path] : *fPathDrawList) {
237 int numTrianglesWritten;
238 triangleVertexWriter = GrMiddleOutPolygonTriangulator::WritePathInnerFan(
239 std::move(triangleVertexWriter),
240 0,
241 0,
242 pathMatrix,
243 path,
244 &numTrianglesWritten);
245 fanTriangleCount += numTrianglesWritten;
246 }
247 SkASSERT(fanTriangleCount <= maxTrianglesInFans);
248 fFanVertexCount = fanTriangleCount * 3;
Chris Dalton70a0d2c2021-01-26 12:01:21 -0700249 vertexAlloc.unlock(fFanVertexCount);
250 }
251
Chris Dalton8a1bbaa2021-07-28 14:43:07 -0600252 fTessellator->prepare(flushState, this->bounds(), *fPathDrawList, fTotalCombinedPathVerbCnt);
Chris Daltonc91dd692021-05-24 15:04:47 -0600253
Chris Dalton031d76b2021-06-08 16:32:00 -0600254 if (fCoverBBoxProgram) {
Chris Daltone909e1e2021-07-27 13:23:18 -0600255 size_t instanceStride = fCoverBBoxProgram->geomProc().instanceStride();
256 GrVertexWriter vertexWriter = flushState->makeVertexSpace(
257 instanceStride,
Chris Dalton8a1bbaa2021-07-28 14:43:07 -0600258 fPathCount,
Chris Daltone909e1e2021-07-27 13:23:18 -0600259 &fBBoxBuffer,
260 &fBBoxBaseInstance);
Chris Dalton8a1bbaa2021-07-28 14:43:07 -0600261 SkDEBUGCODE(int pathCount = 0;)
262 for (auto [pathMatrix, path] : *fPathDrawList) {
263 SkDEBUGCODE(auto end = vertexWriter.makeOffset(instanceStride));
264 vertexWriter.write(pathMatrix.getScaleX(),
265 pathMatrix.getSkewY(),
266 pathMatrix.getSkewX(),
267 pathMatrix.getScaleY(),
268 pathMatrix.getTranslateX(),
269 pathMatrix.getTranslateY());
270 if (path.isInverseFillType()) {
271 // Fill the entire backing store to make sure we clear every stencil value back to
272 // 0. If there is a scissor it will have already clipped the stencil draw.
273 auto rtBounds =
274 flushState->writeView().asRenderTargetProxy()->backingStoreBoundsRect();
275 SkASSERT(rtBounds == fOriginalDrawBounds);
276 SkRect pathSpaceRTBounds;
277 if (SkMatrixPriv::InverseMapRect(pathMatrix, &pathSpaceRTBounds, rtBounds)) {
278 vertexWriter.write(pathSpaceRTBounds);
279 } else {
280 vertexWriter.write(path.getBounds());
281 }
Chris Daltonbaae2dd2021-06-25 14:52:49 -0600282 } else {
Chris Dalton8a1bbaa2021-07-28 14:43:07 -0600283 vertexWriter.write(path.getBounds());
Chris Daltonbaae2dd2021-06-25 14:52:49 -0600284 }
Chris Dalton8a1bbaa2021-07-28 14:43:07 -0600285 SkASSERT(vertexWriter == end);
286 SkDEBUGCODE(++pathCount;)
Chris Daltonbaae2dd2021-06-25 14:52:49 -0600287 }
Chris Dalton8a1bbaa2021-07-28 14:43:07 -0600288 SkASSERT(pathCount == fPathCount);
Chris Daltonc91dd692021-05-24 15:04:47 -0600289 }
Chris Daltona05ccc32021-06-29 19:42:13 -0600290
291 if (!flushState->caps().shaderCaps()->vertexIDSupport()) {
292 constexpr static SkPoint kUnitQuad[4] = {{0,0}, {0,1}, {1,0}, {1,1}};
293
294 GR_DEFINE_STATIC_UNIQUE_KEY(gUnitQuadBufferKey);
295
296 fBBoxVertexBufferIfNoIDSupport = flushState->resourceProvider()->findOrMakeStaticBuffer(
297 GrGpuBufferType::kVertex, sizeof(kUnitQuad), kUnitQuad, gUnitQuadBufferKey);
298 }
Chris Dalton70a0d2c2021-01-26 12:01:21 -0700299}
300
Chris Dalton031d76b2021-06-08 16:32:00 -0600301void GrPathStencilCoverOp::onExecute(GrOpFlushState* flushState, const SkRect& chainBounds) {
Chris Dalton70a0d2c2021-01-26 12:01:21 -0700302 if (!fTessellator) {
303 return;
304 }
305
306 // Stencil the inner fan, if any.
307 if (fFanVertexCount > 0) {
308 SkASSERT(fStencilFanProgram);
309 SkASSERT(fFanBuffer);
310 flushState->bindPipelineAndScissorClip(*fStencilFanProgram, this->bounds());
311 flushState->bindBuffers(nullptr, nullptr, fFanBuffer);
312 flushState->draw(fFanVertexCount, fFanBaseVertex);
313 }
314
315 // Stencil the rest of the path.
316 SkASSERT(fStencilPathProgram);
317 flushState->bindPipelineAndScissorClip(*fStencilPathProgram, this->bounds());
318 fTessellator->draw(flushState);
Chris Daltond9bdc322021-06-01 19:22:05 -0600319 if (flushState->caps().requiresManualFBBarrierAfterTessellatedStencilDraw()) {
320 flushState->gpu()->insertManualFramebufferBarrier(); // http://skbug.com/9739
321 }
Chris Dalton70a0d2c2021-01-26 12:01:21 -0700322
323 // Fill in the bounding box (if not in stencil-only mode).
Chris Dalton031d76b2021-06-08 16:32:00 -0600324 if (fCoverBBoxProgram) {
325 flushState->bindPipelineAndScissorClip(*fCoverBBoxProgram, this->bounds());
326 flushState->bindTextures(fCoverBBoxProgram->geomProc(), nullptr,
327 fCoverBBoxProgram->pipeline());
Chris Daltona05ccc32021-06-29 19:42:13 -0600328 flushState->bindBuffers(nullptr, fBBoxBuffer, fBBoxVertexBufferIfNoIDSupport);
Chris Dalton8a1bbaa2021-07-28 14:43:07 -0600329 flushState->drawInstanced(fPathCount, fBBoxBaseInstance, 4, 0);
Chris Dalton70a0d2c2021-01-26 12:01:21 -0700330 }
331}