From 8a42dc1e673501ca3a8ebce62dd18bb0a4bca65b Mon Sep 17 00:00:00 2001 From: Chris Dalton Date: Wed, 5 May 2021 11:26:26 -0600 Subject: [PATCH] Don't use drawVertices for blur masks Total DMSAA Multisample Render Passes: 190 -> 110 Bug: skia:11396 Change-Id: I721de497f497c40e854d219829e853765e2dc778 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/404856 Reviewed-by: Robert Phillips Commit-Queue: Chris Dalton --- src/core/SkBlurMF.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/core/SkBlurMF.cpp b/src/core/SkBlurMF.cpp index 7bfc19383f..0b8486a587 100644 --- a/src/core/SkBlurMF.cpp +++ b/src/core/SkBlurMF.cpp @@ -676,18 +676,8 @@ bool SkBlurMaskFilterImpl::directFilterMaskGPU(GrRecordingContext* context, if (!this->ignoreXform()) { SkRect srcProxyRect = srcRRect.rect(); srcProxyRect.outset(3.0f*fSigma, 3.0f*fSigma); - - SkVertices::Builder builder(SkVertices::kTriangles_VertexMode, 4, 6, 0); - srcProxyRect.toQuad(builder.positions()); - - static const uint16_t fullIndices[6] = { 0, 1, 2, 0, 2, 3 }; - memcpy(builder.indices(), fullIndices, sizeof(fullIndices)); - sk_sp vertices = builder.detach(); - paint.setCoverageFragmentProcessor(std::move(fp)); - SkSimpleMatrixProvider matrixProvider(viewMatrix); - surfaceDrawContext->drawVertices(clip, std::move(paint), matrixProvider, - std::move(vertices)); + surfaceDrawContext->drawRect(clip, std::move(paint), GrAA::kNo, viewMatrix, srcProxyRect); } else { SkMatrix inverse; if (!viewMatrix.invert(&inverse)) {